OFFSET
1,3
LINKS
Jonathan Frech, Table of n, a(n) for n = 1..100000
EXAMPLE
n=61: trajectory = {61,184,92,46,23,70,35,...,20,10,5,16,8,4,2,1},
nonsquarefree terms = {184,92,160,80,40,20,16,8,4}, so a(61)=9.
MATHEMATICA
c[x_] := (1-Mod[x, 2])*(x/2)+Mod[x, 2]*(3*x+1); c[1]=1; fpl[x_] := Delete[FixedPointList[c, x], -1] lf[x_] := Length[fpl[x]] Table[Count[Table[MoebiusMu[Part[fpl[w], j]], {j, 1, lf[w]}], 0], {w, 1, 256}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 02 2003
STATUS
approved