login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A217743
Excess of number of odds in the form 4k+1 over number of odds in the form 4k+3 in Collatz trajectory of n.
2
1, 1, 1, 1, 2, 1, 2, 1, 3, 2, 3, 1, 3, 2, 0, 1, 4, 3, 3, 2, 2, 3, 1, 1, 4, 3, -6, 2, 4, 0, -6, 1, 5, 4, 2, 3, 3, 3, 2, 2, -5, 2, 4, 3, 5, 1, -5, 1, 4, 4, 4, 3, 3, -6, -6, 2, 5, 4, 3, 0, 2, -6, -8, 1, 5, 5, 3, 4, 4, 2, -4, 3, -5, 3, 2, 3, 5, 2, 2, 2, 3, -5, -5
OFFSET
1,5
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
Cf. A217744 (n having equal numbers of 4k+1 and 4k+3 terms).
Sequence in context: A060682 A352897 A280363 * A238845 A093873 A353371
KEYWORD
sign
AUTHOR
Jayanta Basu, Mar 23 2013
STATUS
approved