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”).

A360599
Ratios of consecutive terms of A360598: a(n) = max(A360598(n), A360598(n+1)) / min(A360598(n), A360598(n+1)).
3
1, 2, 3, 6, 4, 5, 20, 7, 8, 56, 9, 10, 90, 11, 12, 132, 13, 14, 182, 15, 16, 240, 17, 18, 306, 19, 21, 399, 22, 23, 506, 24, 25, 600, 26, 27, 702, 28, 29, 812, 30, 31, 930, 32, 33, 1056, 34, 35, 1190, 36, 37, 1332, 38, 39, 1482, 40, 41, 1640, 42, 43, 1806, 44
OFFSET
1,2
COMMENTS
This sequence is a permutation of the positive integers with inverse A360600:
- we already know that all terms are distinct, so we just have to show that all integers appear,
- by contradiction: let r be the least value missing from this sequence,
- once the values 1..r-1 have appeared in this sequence, the sequence A360598 can only decrease finitely many times,
- the next increase in A360598 will correspond to the ratio r.
EXAMPLE
For n = 15:
A360598(15) = 11 and A360598(16) = 132,
so a(15) = 132 / 11 = 12.
For n = 16:
A360598(16) = 132 and A360598(17) = 1,
so a(16) = 132 / 1 = 132.
PROG
(PARI) See Links section.
(Python)
from itertools import islice
def agen(): # generator of terms
an, ratios = 1, set()
while True:
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)
yield q
print(list(islice(agen(), 66))) # Michael S. Branicky, Feb 13 2023
CROSSREFS
Cf. A360597, A360598, A360600 (inverse).
Sequence in context: A138153 A353590 A209775 * A306231 A125703 A349381
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Feb 13 2023
STATUS
approved