OFFSET
1,3
COMMENTS
This variation of the "3x+1" problem with a class of rational negative numbers is as follows: start with any number 1/(2n+1), n= -1, -2, -3, .... If the numerator is even, divide it by 2, otherwise multiply it by 3 and add 1. Do we always reach the end of a cycle with a rational number? It is conjectured that the answer is yes. This sequence is an extension of A210468 with n negative.
LINKS
Falk Hüffner, Table of n, a(n) for n = 1..10000 (correcting table by Michel Lagneau)
J. C. Lagarias, The set of rational cycles for the 3x+1 problem, Acta Arith. 56 (1990), 33-53.
EXAMPLE
For n = 4, a(4) = 9 because the corresponding trajectory of 1/(2*(-4)+1) = -1/7 requires 9 iterations to reach the last term of the cycle: -1/7 -> 4/7 -> 2/7 -> 1/7 -> 10/7 -> 5/7 -> 22/7 -> 11/7 -> 40/7 -> 20/7 and 20/7 is the last term because 20/7 -> 10/7 is already in the trajectory. [Corrected by Sean A. Irvine, Mar 19 2026]
MATHEMATICA
PROG
(Python)
from fractions import Fraction
def A224299(n):
if n == 0: return 0
x = Fraction(1, 2*-n - 1)
seen = set()
while x not in seen:
seen.add(x)
x = x/2 if x.numerator % 2 == 0 else 3*x + 1
return len(seen) - 1 - (x == 2) # Falk Hüffner, Mar 19 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Apr 03 2013
EXTENSIONS
Offset fixed and a(40), a(1093), and a(9841) corrected by Falk Hüffner, Mar 19 2026
STATUS
approved
