OFFSET
0,2
COMMENTS
Sequence A221469 lists the number of increasing peaks.
LINKS
T. D. Noe, Table of n, a(n) for n = 0..60
EXAMPLE
The Collatz iteration starting at 7 is (7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1), which has 3 increasing peaks: 22, 34, and 52. No number smaller than 7 has 3 increasing peaks. Hence, a(3) = 7.
MATHEMATICA
Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]; nn = 20; t = Table[0, {nn}]; found = 0; n = 0; While[found < nn, n++; c = Collatz[n]; cnt = 0; mx = n; Do[If[k > mx, cnt++; mx = k], {k, c}]; If[cnt > 0 && cnt <= nn && t[[cnt]] == 0, t[[cnt]] = n; found++]]; Join[{1}, t]
PROG
(Haskell)
a221470 = (+ 1 ) . fromJust . (`elemIndex` (map a221469 [1..]))
-- Reinhard Zumkeller, Jan 18 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Jan 17 2013
STATUS
approved