OFFSET
1,1
COMMENTS
This sequence gives all starting values a(n) (in increasing order) of Collatz sequences of length 9 following the pattern (ud)^4, with u (for `up'), mapping an odd number m to 3*m+1, and d (for `down'), mapping an even number m to m/2. The last entry of this sequence is required to be odd and it is given by 162*n-1.
This appears in Example 2.2. for x=y = 4 in the M. Trümper paper on p. 7, given as a link below.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Wolfdieter Lang, On Collatz' Words, Sequences, and Trees, J. of Integer Sequences, Vol. 17 (2014), Article 14.11.7.
Manfred Trümper, The Collatz Problem in the Light of an Infinite Free Semigroup, Chinese Journal of Mathematics, Vol. 2014, Article ID 756917, 21 pages.
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
O.g.f.: x*(31+x)/(1-x)^2.
EXAMPLE
a(1) = 31 because the Collatz sequence following the pattern udududud is [31, 94, 47, 142, 71, 214, 107, 322, 161], with length 9, ending in the odd number N(4,1) = 161 = 162*1 - 1 from the array A239127, and 31 is the smallest positive number whose Collatz sequence follows this pattern and ends in an odd number.
a(4) = 127 with the Collatz sequence [127, 382, 191, 574, 287, 862, 431, 1294, 647] ending in N(4,4) = 647 = 32*4 - 1. 127 is the fourth smallest positive number following this pattern with odd end number.
MATHEMATICA
CoefficientList[Series[(31 + x)/(1 - x)^2, {x, 0, 40}], x] (* Vincenzo Librandi, Mar 16 2014 *)
32*Range[50]-1 (* Harvey P. Dale, Jan 25 2021 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Mar 13 2014
STATUS
approved