OFFSET
1,1
COMMENTS
Anderson (1987) reformulates the 3x+1 conjecture using this function.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
Stuart Anderson, Struggling with the 3x+1 problem, The Mathematical Gazette, Vol. 71, Issue 458, December 1987, p. 273 (see A005186 for a scanned copy).
Jeffrey C. Lagarias, The 3x + 1 Problem: An Annotated Bibliography (1963-1999), arXiv:math/0309224 [math.NT], 2011, p. 6.
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,2,0,0,0,0,0,-1).
MAPLE
a := n -> ifelse(irem(n, 3) = 0, iquo(n, 3), ifelse(irem(n, 2) = 0, iquo(n, 2), 3*n + 1)): seq(a(n), n = 1..69); # Peter Luschny, Aug 14 2024
MATHEMATICA
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo Xausa, Aug 08 2024
STATUS
approved