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!)
A257699 Number of steps from n to 0 using this algorithm: x -> floor(r*x) if x is odd, and x -> floor(x/r) if x is even, where r = 5/2. 3
2, 1, 7, 3, 5, 2, 6, 8, 10, 4, 14, 4, 6, 6, 10, 3, 5, 7, 13, 9, 11, 9, 13, 11, 13, 5, 13, 15, 17, 5, 9, 5, 7, 7, 13, 7, 9, 11, 15, 4, 6, 4, 18, 6, 8, 8, 12, 14, 16, 10, 16, 10, 12, 12, 16, 10, 12, 14, 22, 12, 14, 12, 16, 14, 16, 6, 12, 14, 16, 16, 20, 16, 18 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
5->12->4->1->2->0, total of 5 steps, so that a(5) = 5.
MATHEMATICA
r = 5/2; f[x_] := If[OddQ[x], Floor[r *x], Floor[x/r]]
g[x_] := Drop[FixedPointList[f, x], -1];
Table[-1 + Length[g[n]], {n, 1, 200}]
CROSSREFS
Sequence in context: A214550 A120903 A180335 * A160535 A258235 A330877
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 04 2015
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 May 13 06:37 EDT 2024. Contains 372498 sequences. (Running on oeis4.)