OFFSET
0,2
COMMENTS
Smallest k such that A275866(k) is equal to n.
Conjecture: a(n) exists for any n.
LINKS
EXAMPLE
a(5)=7 because the trajectory of 7 is 7 -> 22 -> 11 -> 34 -> 17 -> 52 -> 26 -> 13 -> 40 -> 20 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1 and the 5 semiprimes of this trajectory are 22, 34, 26, 10 and 4.
MATHEMATICA
f[n_]:=n/2/; Mod[n, 2]==0; f[n_]:=3 n+1/; Mod[n, 2]==1; g[n_]:=Module[{i, p}, i=n; p=0; While[i>1, If[PrimeOmega[i]==2, p=p+1]; i=f[i]]; p]; Do[k=1; While[g[k]!=m, k++]; Print[m, " ", k], {m, 0, 53}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Aug 29 2016
STATUS
approved