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”).

A087974
Largest value of number of distinct prime factors arising in the 3x+1 iteration trajectory started with n.
3
0, 1, 2, 1, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2, 3, 1, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 2, 3, 3, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 2, 2, 3, 3, 2, 2, 2, 3, 2, 2, 3, 3, 2, 3, 2, 2, 3, 3, 3, 3, 1, 2, 3, 2, 2, 2, 3, 3, 2, 3, 2, 3, 2, 2, 3, 3, 2, 3, 3, 3, 3, 2, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, 2, 3, 2, 2, 2, 2, 3, 3, 2, 3
OFFSET
1,3
LINKS
EXAMPLE
n=27:iteration-list={27,82,41,124,62,31,....,4,2,1};
A001221 applied to list = L={1,2,1,2,2,...,3,2,2,1,2,2,2,2,2,1,1,1,1,1,0};
a(27)=Max[L]=3 with multiple occurrence.
MATHEMATICA
fip[x_] := Length[FactorInteger[x]]; 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]]; pff[x_] := Table[fip[Part[fpl[x], j]], {j, 1, lf[x]}]; Table[Max[pff[w]], {w, 1, 256}]
CROSSREFS
Sequence in context: A353656 A196062 A283682 * A008679 A029435 A089643
KEYWORD
nonn
AUTHOR
Labos Elemer, Sep 25 2003
STATUS
approved