OFFSET
1,3
COMMENTS
"Consecutive tripling steps" are repeated (3x+1)/2 operations that are not interrupted by a second division by 2.
This sequence attempts to measure the largest upward thrust in each Collatz sequence and so is correlated to some degree with the maximum value (A025586) and length (A006577) of Collatz sequences.
If n = 2^x * (2^y*z - 1), then a(n) >= y. - Charles R Greathouse IV, Oct 25 2022
LINKS
EXAMPLE
The Collatz sequence for n=7 has a streak of 3 consecutive tripling steps (at 7, 11, and 17), so a(7) = 3.
7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1
^ ^ ^
PROG
(PARI) a(n)=my(c, r); n>>=valuation(n, 2); while(n>1, n+=(n+1)/2; if(n%2, c++, r=max(r, c+1); n>>=valuation(n, 2); c=0)); max(r, c) \\ Charles R Greathouse IV, Oct 25 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Kevin P. Thompson, Dec 27 2021
STATUS
approved