OFFSET
1,3
COMMENTS
See A360599 for the corresponding ratios.
EXAMPLE
The first terms, alongside the corresponding ratios, are:
n a(n) Ratio between a(n) and a(n+1)
-- ---- -----------------------------
1 1 1
2 1 2
3 2 3
4 6 6
5 1 4
6 4 5
7 20 20
8 1 7
9 7 8
10 56 56
11 1 9
12 9 10
PROG
(PARI) See Links section.
(Python)
from itertools import islice
def agen(): # generator of terms
an, ratios = 1, set()
while True:
yield an
k = 1
q, r = divmod(max(k, an), min(k, an))
while r != 0 or q in ratios:
k += 1
q, r = divmod(max(k, an), min(k, an))
an = k
ratios.add(q)
print(list(islice(agen(), 66))) # Michael S. Branicky, Feb 13 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Feb 13 2023
STATUS
approved