OFFSET
1,2
COMMENTS
Computed by Jean-Marc Falcoz.
From a(269) = 1010001010 on, there starts a pattern of 104 terms, which then repeats indefinitely (with 6 digits in the middle of each term duplicated). - M. F. Hasler, Oct 16 2009
LINKS
Eric Angelini, Chiffres consecutifs dans quelques suites
E. Angelini, Chiffres consecutifs dans quelques suites [Cached copy, with permission]
PROG
(PARI) a(n, show_all=0, s=[1, 2, 3, 4, 5, 8, 9, 21, 45, 83, 89, 450, 503, 630, 701, 810, 901, 2101, 2103, 4121, 6301, 6303, 6503, 6901, 43030])={ my(a, nd=#Str(s[ #s])); for(i=1, n, if( i<=#s, a=s[i], my(ld=a%10^nd); while(a++, my(t=a+ld*10^#Str(a)); forstep(d=#Str(a)-1, 0, -1, isprime(sum(j=d, d+nd, t\10^j%10))&next; a+=10^d-a%10^d-1; next(2)); break)); show_all & print1(a", ")); a} \\ M. F. Hasler, Oct 16 2009
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Sep 23 2009
STATUS
approved