|
|
A078417
|
|
Numbers k such that h(k) = h(k+1), where h(k) is the length of k, f(k), f(f(k)), ..., 1 in the Collatz (or 3x + 1) problem. (The earliest "1" is meant.)
|
|
4
|
|
|
12, 14, 18, 20, 22, 28, 29, 34, 36, 37, 44, 45, 49, 50, 52, 54, 60, 62, 65, 66, 68, 69, 76, 78, 82, 84, 86, 92, 94, 98, 99, 100, 101, 108, 109, 114, 116, 118, 124, 125, 130, 131, 132, 133, 140, 142, 145, 146, 148, 150, 156, 157, 162, 164, 165, 172, 173, 177, 178
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Recall that f(k) = k/2 if k is even, 3k + 1 if k is odd (A006370).
|
|
LINKS
|
|
|
EXAMPLE
|
The Collatz trajectories k, f(k), f(f(k)), ..., 1 for k = 12 and 13, respectively, are {12, 6, 3, 10, 5, 16, 8, 4, 2, 1} and {13, 40, 20, 10, 5, 16, 8, 4, 2, 1}, which are both of length 10. Hence h(12) = h(13) = 10, so 12 belongs to this sequence.
|
|
MAPLE
|
collatz:= proc(n) option remember; `if`(n=1, 0,
1 + collatz(`if`(n::even, n/2, 3*n+1)))
end:
q:= n-> is(collatz(n)=collatz(n+1)):
|
|
MATHEMATICA
|
h[n_] := Length@NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &];
okQ[n_] := h[n] == h[n+1];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|