|
|
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
The Pollack et al. reference lists a(4)-a(7) and conjectures that A365339(n) = A000720(n)+64 for n >= 31957 which in turns implies the conjecture that a(n) = A006880(n)+64 for n >= 5.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = A006880(n)+64 for n >= 5 (conjectured).
|
|
PROG
|
(Python)
from bisect import bisect
from sympy import totient
m = 10**n
plist, qlist, c = tuple(totient(i) for i in range(1, m+1)), [0]*(m+1), 0
for i in range(m):
qlist[a:=bisect(qlist, plist[i], lo=1, hi=c+1, key=lambda x:plist[x])]=i
c = max(c, a)
return c
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,hard,more
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|