A355406 Positive integers that are not powers of 2 and whose Collatz trajectory has maximum power of 2 different from 2^4.
21, 42, 75, 84, 85, 113, 150, 151, 168, 170, 201, 226, 227, 267, 300, 301, 302, 336, 340, 341, 401, 402, 403, 423, 452, 453, 454, 475, 534, 535, 537, 600, 602, 604, 605, 633, 635, 672, 680, 682, 713, 715, 802, 803, 804, 805, 806, 846, 847, 891, 904, 906, 908, 909, 950, 951, 953, 955
Offset: 1
Keywords
Examples
21 is a term since its trajectory 21 64 32 16 8 2 1 has 64 as the highest power of 2, which is more than 16 and 21 is not itself a power of 2.
Links
Crossrefs
Programs
-
Mathematica
collatz[n_] := Module[{}, If[OddQ[n], 3n+1, n/2]]; step[n_] := Module[{p=0, m=n, q}, While[!IntegerQ[q=Log[2, m]], m=collatz[m]; p++]; {p, q, n}]; Last/@Select[Table[step[n], {n, 1, 10^5}], #[[1]]>0 && #[[2]]!=4 &]
Comments