login

Revision History for A152604

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
a(1) = 1; thereafter a(n) is always the smallest integer > a(n-1) not leading to a contradiction, such that any four consecutive digits in the sequence sum up to a prime.
(history; published version)
#9 by Alois P. Heinz at Sun Feb 04 15:46:22 EST 2018
STATUS

proposed

approved

#8 by Jon E. Schoenfield at Sun Feb 04 15:39:09 EST 2018
STATUS

editing

proposed

#7 by Jon E. Schoenfield at Sun Feb 04 15:39:06 EST 2018
COMMENTS

From a(69)=1100110 on onward starts a repeating pattern of length 54. [From _- _M. F. Hasler_, Oct 16 2009]

PROG

(PARI) A152604(n, show_all=0)={my(a); for(i=1, n, if( i<8, a=i+(i>3)+(i>4), my(l3d=if(a>99, a%1000, [789, 951, 183][i-7])); while( a++, my(t=a+l3d*10^#Str(a)); forstep(d=#Str(a)-1, 0, -1, isprime(sum(j=d, d+3, t\10^j%10)) & next; a+=10^d-a%10^d-1; next(2)); break)); show_all&print1(a", ")); a} [From _\\ _M. F. Hasler_, Oct 16 2009]

CROSSREFS
STATUS

approved

editing

#6 by N. J. A. Sloane at Thu Jun 09 21:26:49 EDT 2016
STATUS

editing

approved

#5 by N. J. A. Sloane at Thu Jun 09 21:26:46 EDT 2016
LINKS

E. Angelini, <a href="/A152136/a152136.pdf">Chiffres consecutifs dans quelques suites</a> [Cached copy, with permission]

STATUS

approved

editing

#4 by Charles R Greathouse IV at Sat Jul 14 11:32:22 EDT 2012
COMMENTS

From a(69)=1100110 on starts a repeating pattern of length 54. [From _M. F. Hasler (www.univ-ag.fr/~mhasler), _, Oct 16 2009]

PROG

(PARI) A152604(n, show_all=0)={my(a); for(i=1, n, if( i<8, a=i+(i>3)+(i>4), my(l3d=if(a>99, a%1000, [789, 951, 183][i-7])); while( a++, my(t=a+l3d*10^#Str(a)); forstep(d=#Str(a)-1, 0, -1, isprime(sum(j=d, d+3, t\10^j%10)) & next; a+=10^d-a%10^d-1; next(2)); break)); show_all&print1(a", ")); a} [From _M. F. Hasler (www.univ-ag.fr/~mhasler), _, Oct 16 2009]

Discussion
Sat Jul 14
11:32
OEIS Server: https://oeis.org/edit/global/1815
#3 by Russ Cox at Fri Mar 30 16:51:08 EDT 2012
AUTHOR

_N. J. A. Sloane (njas(AT)research.att.com), _, Sep 23 2009

Discussion
Fri Mar 30
16:51
OEIS Server: https://oeis.org/edit/global/110
#2 by N. J. A. Sloane at Sun Jul 11 03:00:00 EDT 2010
COMMENTS

From a(69)=1100110 on starts a repeating pattern of length 54. [From M. F. Hasler (MHasler(AT)www.univ-ag.fr/~mhasler), Oct 16 2009]

PROG

(PARI) A152604(n, show_all=0)={my(a); for(i=1, n, if( i<8, a=i+(i>3)+(i>4), my(l3d=if(a>99, a%1000, [789, 951, 183][i-7])); while( a++, my(t=a+l3d*10^#Str(a)); forstep(d=#Str(a)-1, 0, -1, isprime(sum(j=d, d+3, t\10^j%10)) & next; a+=10^d-a%10^d-1; next(2)); break)); show_all&print1(a", ")); a} [From M. F. Hasler (MHasler(AT)www.univ-ag.fr/~mhasler), Oct 16 2009]

KEYWORD

nonn,base,new

#1 by N. J. A. Sloane at Tue Jun 01 03:00:00 EDT 2010
NAME

a(1) = 1; thereafter a(n) is always the smallest integer > a(n-1) not leading to a contradiction, such that any four consecutive digits in the sequence sum up to a prime.

DATA

1, 2, 3, 5, 7, 8, 9, 51, 83, 110, 111, 211, 301, 310, 311, 631, 703, 710, 911, 2111, 2113, 2117, 2119, 2153, 2155, 2159, 2171, 2173, 2177, 2179, 2513, 2515, 2519, 2531, 2533, 2537, 2539, 2573, 2575, 2579, 8513, 8515, 8519, 8573, 8579, 8591

OFFSET

1,2

COMMENTS

Computed by Jean-Marc Falcoz.

From a(69)=1100110 on starts a repeating pattern of length 54. [From M. F. Hasler (MHasler(AT)univ-ag.fr), Oct 16 2009]

LINKS

Eric Angelini, <a href="http://www.cetteadressecomportecinquantesignes.com/ConsecDig.htm">Chiffres consecutifs dans quelques suites</a>

PROG

(PARI) A152604(n, show_all=0)={my(a); for(i=1, n, if( i<8, a=i+(i>3)+(i>4), my(l3d=if(a>99, a%1000, [789, 951, 183][i-7])); while( a++, my(t=a+l3d*10^#Str(a)); forstep(d=#Str(a)-1, 0, -1, isprime(sum(j=d, d+3, t\10^j%10)) & next; a+=10^d-a%10^d-1; next(2)); break)); show_all&print1(a", ")); a} [From M. F. Hasler (MHasler(AT)univ-ag.fr), Oct 16 2009]

CROSSREFS
KEYWORD

nonn,base

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Sep 23 2009

STATUS

approved