The OEIS is supported by the many generous donors to the OEIS Foundation.

 Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”). Other ways to Give
 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A156055 Define a map f by f(0) = f(1) = 0, otherwise f(k) = A087712(k); then a(n) is the number of steps for the trajectory of n under repeated iteration of f to "terminate". 2
 1, 2, 3, 6, 4, 30, 7, 54, 3, 32, 5, 29, 31, 0, 3, 19, 8, 112, 55, 15, 27, 3, 3, 26, 1, 20, 223, 102, 33, 13, 6, 162, 1, 9, 10, 75, 30, 113, 21 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS Here "terminate" means reaching 0 or a cycle. From M. F. Hasler, Feb 11 2009: (Start) "Reaching a cycle" could be better defined: does it mean "reach a value that occured earlier" or "reach an element belonging to a cycle"? I think the second is the case, but the value 0 is currently listed at n=14, wouldn't it correspond to x=15 = least element of a nontrivial cycle? So would the offset be 2 ? or is there a missing term (since the first terms 1,2,3 seem well to correspond to x=1,2,3)? (End) LINKS EXAMPLE a(4) = 6 because 4 -> [{2,2}->{1,1}] ->[{11}->{5}] -> [{5}->{3}] -> [{3}->{2}] -> [{2}->{1}] -> [{1}->{0}]. MATHEMATICA f[n_] := FromDigits@ Flatten[ IntegerDigits@# & /@ (PrimePi@# & /@ Flatten[ Table[ First@#, {Last@#}] & /@ FactorInteger@n])]; g[n_] := Length@ NestWhileList[f, n, UnsameQ, All] - 2; Array[g, 39] CROSSREFS A variant of A098282, which is the official version of this sequence. Cf. A087712. Sequence in context: A229774 A137524 A282507 * A096357 A091507 A098282 Adjacent sequences: A156052 A156053 A156054 * A156056 A156057 A156058 KEYWORD base,nonn,more AUTHOR Robert G. Wilson v, Feb 02 2009 EXTENSIONS Edited by N. J. A. Sloane, Feb 10 2009 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.

Last modified December 10 02:09 EST 2022. Contains 358712 sequences. (Running on oeis4.)