

A185719


Final prime of the first member of A019518 that is divisible by 43^n.


0




OFFSET

1,1


LINKS

Table of n, a(n) for n=1..5.


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

Cf. A019518, A183194A183196, A185656.
Sequence in context: A330426 A071367 A271979 * A224101 A013529 A229519
Adjacent sequences: A185716 A185717 A185718 * A185720 A185721 A185722


KEYWORD

nonn,base,more


AUTHOR

James G. Merickel, Feb 05 2011


STATUS

approved



