The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A337144 n is the a(n)-th positive integer which takes its number of steps to reach 1 in the '3x+1' problem. 2
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 2, 2, 3, 1, 2, 1, 1, 2, 1, 1, 2, 3, 1, 2, 1, 1, 2, 1, 2, 3, 1, 2, 1, 3, 1, 2, 3, 4, 1, 1, 1, 2, 3, 2, 3, 1, 2, 2, 1, 3, 2, 4, 5, 1, 2, 2, 1, 2, 3, 2, 3, 4, 1, 1, 1, 2, 5, 3, 4, 1, 2, 3, 5, 1, 2, 4, 5, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,13
LINKS
FORMULA
Ordinal transform of A006577.
a(n) = |{ j in {1..n} : A006577(j) = A006577(n) }|.
EXAMPLE
a(13) = 2 because A006577(13) = A006577(12) = 9 != A006577(j) for j < 12.
MAPLE
collatz:= proc(n) option remember; `if`(n=1, 0,
1 + collatz(`if`(n::even, n/2, 3*n+1)))
end:
b:= proc() 0 end:
a:= proc(n) option remember; local t;
`if`(n=1, 0, a(n-1));
t:= collatz(n); b(t):= b(t)+1
end:
seq(a(n), n=1..120);
MATHEMATICA
collatz[n_] := collatz[n] = If[n == 1, 0,
1 + collatz[If[EvenQ[n], n/2, 3n+1]]];
b[_] = 0;
a[n_] := a[n] = Module[{t},
If[n == 1, 0, a[n-1]];
t = collatz[n]; b[t] = b[t]+1];
Array[a, 120] (* Jean-François Alcover, Jan 29 2021, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A333849 A140816 A029433 * A088203 A205649 A176510
KEYWORD
nonn,look
AUTHOR
Alois P. Heinz, Jan 27 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 1 10:29 EDT 2024. Contains 373016 sequences. (Running on oeis4.)