OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3)=21 because it is the first integer divisible by 7 which is obtained from the beginning of the unused part of the decimal expansion of square root 2.
PROG
(PARI)
SeqDigits(v, pred)={my(L=List(), k=1); for(i=1, #v, my(t=fromdigits(v[k..i])); if(pred(t), listput(L, t); k=i+1)); Vec(L)}
{ my(N=250); SeqDigits(digits(sqrtint(2*10^(2*N))), t->t%7==0) } \\ Andrew Howroyd, Nov 06 2019
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Serhat Sevki Dincer (mesti_mudam(AT)yahoo.com), Oct 04 2004
EXTENSIONS
Terms a(9) and beyond from Andrew Howroyd, Nov 06 2019
STATUS
approved
