OFFSET
1,5
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
MATHEMATICA
Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3*# + 1] &, n, # > 1 &]; Table[Length[Select[Collatz[n], Mod[#, 4] == 1 &]] - Length[Select[Collatz[n], Mod[#, 4] == 3 &]], {n, 60}]
Table[m4=Mod[NestWhileList[If[EvenQ[#], #/2, 3*#+1]&, n, #>1&], 4]; Count[m4, 1]-Count[m4, 3], {n, 60}] (* Zak Seidov, Mar 23 2013 *)
CROSSREFS
KEYWORD
sign
AUTHOR
Jayanta Basu, Mar 23 2013
STATUS
approved