login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A185695 Final prime adjoined in the smallest term of A019518 divisible by 61^n. 1

%I #14 May 02 2020 07:02:02

%S 23,41719,308537,270907253,28643801327

%N Final prime adjoined in the smallest term of A019518 divisible by 61^n.

%C Associated with A019518(i) at i = 9, 4363, 26688, 14758114, ...

%o (Python)

%o from sympy import nextprime

%o def A185695(n):

%o p, k, m = 2, 61**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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)