A343280 a(n) is the number of steps for the n-th vertex of the Collatz tree A088975 to reach a vertex t == 0 (mod 3).
7, 6, 0, 5, 2, 0, 3, 4, 0, 7, 6, 0, 5, 2, 0, 3, 4, 0, 7, 6, 0, 5, 2, 0, 3, 4, 0, 7, 6, 0, 5, 2, 0, 3, 4, 0, 7, 6, 0, 5, 2, 0, 3, 4, 0, 7, 6, 0, 5, 2, 0, 3, 4, 0, 7, 6, 0, 5, 2, 0, 3, 4, 0
Offset: 1
Links
- Stefan Andrei, Manfred Kudlek, and Radu Stefan Niculescu, Chains in Collatz's tree, Report 217, 1999, Dep. of Informatics, University of Hamburg.
- Index entries for sequences related to 3x+1 (or Collatz) problem
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,1).
Programs
-
BASIC
Function a(n As Long) Dim d As Long, k As Long d = 0 If ((n Mod 3) <> 0) Then k = n Do d = d + 1: k = k + k Loop Until ((k Mod 9) = 1) d = d + 1 End If a = d End Function
Formula
G.f.: -x*(4*x^7 + 3*x^6 + 2*x^4 + 5*x^3 + 6*x + 7)/(x^9 - 1). - Thomas Scheuerle, Apr 12 2021
Comments