editing
approved
editing
approved
Name corrected by _Peter Luschny_ and _Andrey Zabolotskiy_, Oct 10 2023
proposed
editing
editing
proposed
Numerators of fractions arranged (1/1, 2/1, 1/2, 1/3, 3/1, 4/1, 3/2, 2/3, 1/4, 1/5, 5/1, 6/1, 5/2, ...) in "antidiagonal boustrophedon" ordering with equivalent fractions removed: (1/1, 2/1, 1/2, 1/3, 3/1, 4/1, 3/2, 2/3, 1/4, 1/5, 5/1, 6/1, 5/2, ...).
Misleading name Name corrected by Peter Luschny, and _Andrey Zabolotskiy_, Oct 10 2023
proposed
editing
editing
proposed
Numerators of fractions arranged in Cantor's ordering (1/1, 2/1, 1/2, 1/3, 3/1, 4/1, 3/2, 2/3, 1/4, 1/5, 5/1, 6/1, 5/2, ...) with equivalent fractions removed.
Misleading name corrected by Peter Luschny, Oct 10 2023
approved
editing
proposed
approved
editing
proposed
from fractions math import gcd
.. for i in range(1, s):
.... if gcd(i, s - i) != 1: continue
.... print(i)
.. for i in range(s, 0, -1):
.... if gcd(i, s + 1 - i) != 1: continue
.... print(i)
approved
editing
Robert Israel, <a href="/A157807/b157807_1.txt">Table of n, a(n) for n = 1..10000</a>