OFFSET
1,3
COMMENTS
That is, the number of times that the Collatz iteration of n reaches a new maximum. See A221470 for the first occurrence of each peak count.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
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.
MATHEMATICA
Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]; Table[c = Collatz[n]; cnt = 0; mx = n; Do[If[k > mx, cnt++; mx = k], {k, c}]; cnt, {n, 100}]
PROG
(Haskell)
a221469 n = sum $ map fromEnum $ zipWith (>) (tail ts) ts where
ts = scanl1 max $ a070165_row n
-- Reinhard Zumkeller, Jan 18 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Jan 17 2013
STATUS
approved