|
|
A185719
|
|
Final prime of the first member of A019518 that is divisible by 43^n.
|
|
0
|
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
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
|
|
|
STATUS
|
approved
|
|
|
|