A153330 Differences in adjacent elements of the sequence quantifying the steps needed for n to converge to 1 in the Collatz Conjecture.
1, 6, -5, 3, 3, 8, -13, 16, -13, 8, -5, 0, 8, 0, -13, 8, 8, 0, -13, 0, 8, 0, -5, 13, -13, 101, -93, 0, 0, 88, -101, 21, -13, 0, 8, 0, 0, 13, -26, 101, -101, 21, -13, 0, 0, 88, -93, 13, 0, 0, -13, 0, 101, 0, -93, 13, -13, 13, -13, 0, 88, 0, -101, 21, 0, 0, -13, 0, 0, 88, -80, 93
Offset: 1
Links
- Ian Kent, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Differences[Table[Length[NestWhileList[If[EvenQ[#],#/2,3#+1]&,n,#>1&]], {n,80}]] (* Harvey P. Dale, Oct 10 2011 *)
-
Python
def A006577(n): ct = 0 while n != 1: n = 3*n + 1 if n%2 == 1 else n//2; ct += 1 return ct b = 0 for n in range(1, 73): b_next = A006577(n+1); a = b_next - b; print(a, end = ", "); b = b_next # Ya-Ping Lu, May 04 2024
Comments