OFFSET
1,2
COMMENTS
All terms are distinct.
Is this sequence a permutation of the natural numbers?
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
PROG
(PARI) s=0; pp=p=1; for (n=1, 63, for (v=1, oo, if (!bittest(s, q=pp*p*v), print1 (q", "); s+=2^q; pp=p; p=v; break)))
(Python)
def aupton(terms):
A349227lst, plst, pset = [1, 1], [], set()
for n in range(terms):
p = p2 = A349227lst[-1]*A349227lst[-2]
while p in pset: p += p2
A349227lst.append(p//p2); plst.append(p); pset.add(p)
return plst
print(aupton(63)) # Michael S. Branicky, Nov 12 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Nov 11 2021
STATUS
approved