%I #22 May 01 2020 13:08:07
%S 37,37,14123267,47321411,5664619381
%N Final prime adjoined in the smallest term of A019518 divisible by 67^n.
%C Associated with A019518(i) at i = 12, 12, 917579, 2849864, ...
%e 23571113171923293137 is divisible by 67^2.
%o (Python)
%o from sympy import nextprime
%o def A185698(n):
%o p, k, m = 2, 67**n, 10
%o q, m2 = p % k, m % k
%o while True:
%o p = nextprime(p)
%o while p >= m:
%o m *= 10
%o m2 = m % k
%o q = (q*m2 + p) % k
%o if q == 0:
%o return p # _Chai Wah Wu_, May 01 2020
%Y Cf. A019518, A185656, A185659, A185662, A185665, A185671, A185677.
%K nonn,base,more
%O 1,1
%A _James G. Merickel_, Feb 05 2011
%E a(5) from _Chai Wah Wu_, May 01 2020
|