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!)
A257702 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 = sqrt(5). 3
2, 1, 3, 3, 7, 2, 12, 4, 6, 4, 6, 8, 12, 3, 11, 13, 15, 5, 7, 5, 7, 7, 11, 5, 9, 7, 9, 9, 11, 13, 17, 4, 10, 12, 14, 14, 16, 14, 18, 16, 24, 6, 8, 8, 10, 6, 10, 8, 16, 8, 10, 12, 14, 6, 8, 10, 16, 10, 14, 8, 10, 10, 12, 10, 14, 12, 18, 14, 16, 18, 20, 5, 9 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
5->11->24->10->4->1->2->0, total of 7 steps, so that a(5) = 7.
MATHEMATICA
r = Sqrt[5]; 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: A109522 A052959 A346473 * A338417 A034399 A005292
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 April 25 10:01 EDT 2024. Contains 371967 sequences. (Running on oeis4.)