A375782 The 2-adic valuation of the result, starting from n, of Collatz steps x -> (3x+1)/2 while odd.
1, 1, 3, 2, 3, 1, 1, 3, 1, 1, 1, 2, 2, 1, 4, 4, 1, 1, 2, 2, 5, 1, 4, 3, 1, 1, 1, 2, 2, 1, 1, 5, 1, 1, 4, 2, 3, 1, 1, 3, 1, 1, 1, 2, 2, 1, 1, 4, 1, 1, 2, 2, 4, 1, 2, 3, 1, 1, 1, 2, 2, 1, 3, 6, 1, 1, 3, 2, 3, 1, 1, 3, 1, 1, 1, 2, 2, 1, 2, 4, 1, 1, 2, 2, 7, 1, 3
Offset: 1
Examples
7 -> 11 -> 17 -> 26, so a(7) = A007814(26) = 1.
Links
Programs
-
PARI
a(n)= valuation((3/2)^valuation(n+1, 2)*(n+1)-1, 2);
Comments