login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A339134
Indices in A338884 where records occur.
0
1, 4, 12, 66, 346, 5876, 95078, 9411222, 1894078221
OFFSET
1,2
COMMENTS
It seems that A338884(a(n)) = n and 3*sqrt(log(a(n)))/n ~ O(1).
PROG
(Python)
from sympy import isprime
def search(n):
k = 1
while 1:
i = k*n + 1
while i < k*n + k:
if isprime(i) == 1: return i
i += 2
k = 2*k
a_rec = 0
n = 1
while 1:
m = search(n)
a = m.bit_length() - n.bit_length()
if a > a_rec:
print(n)
a_rec = a
n += 1
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Ya-Ping Lu, Nov 24 2020
STATUS
approved