Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 4500 articles have referenced us, often saying "we would not have discovered this result without the OEIS".
C. A. Pickover, The Math Book, Sterling, NY, 2009; see p. 374.
Table of n, a(n) for n=0..97.
Index entries for sequences related to 3x+1 (or Collatz) problem
Index entries for linear recurrences with constant coefficients, signature (0, 0, 1).
f:=proc(n) if n mod 2 = 0 then n/2 else 3*n+1; fi; end; g:=proc(n) local i, t1; t1:=[n]; for i from 1 to 120 do t1:=[op(t1), f(t1[nops(t1)])]; od; t1; end; g(3);
Sequence in context: A045985 A247034 A035411 * A246777 A111127 A140948
Adjacent sequences: A033475 A033476 A033477 * A033479 A033480 A033481