OFFSET
1,1
FORMULA
a(n) = Min_{ prime(k) | A019518(k) = 0 (mod 43^n) }. - M. F. Hasler, Feb 08 2011
EXAMPLE
The number 2357...199211 is the first term in A019518 divisible by 43^1, therefore a(1) = 211.
PROG
(PARI) a(n, m=43)={ my(s=10, p=2); n=Mod(0, m^n); while(n=n*s+p, (p=nextprime(p+1))>s & s*=10) ; p} \\ M. F. Hasler, Feb 08 2011
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
James G. Merickel, Feb 05 2011
STATUS
approved