A321232 Length of n-th term of A321225.
1, 1, 1, 3, 2, 4, 4, 4, 5, 6, 6, 6, 8, 7, 9, 9, 9, 10, 11, 11, 11, 13, 12, 14, 14, 14, 15, 16, 16, 16, 18, 17, 19, 19, 19, 20, 21, 21, 21, 23, 22, 24, 24, 24, 25, 26, 26, 26, 28, 27, 29, 29, 29, 30, 31, 31, 31, 33, 32, 34, 34, 34, 35, 36, 36, 36, 38, 37, 39, 39, 39, 40
Offset: 1
Examples
n | A321225 | a(n) --+---------+----- 1 | 1 | 1 2 | 2 | 1 3 | 3 | 1 4 | 211 | 3 5 | 23 | 2 6 | 2112 | 4 7 | 3211 | 4 8 | 2321 | 4 9 | 12321 | 5
Links
- Seiichi Manyama, Table of n, a(n) for n = 1..10000
- Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,1,-1).
Programs
-
Mathematica
LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 1, -1}, {1, 1, 1, 3, 2, 4, 4, 4, 5, 6}, 100] (* Paolo Xausa, Apr 24 2024 *)
Formula
a(n) = a(n-9) + 5, for n > 9.
G.f.: x*(x^8 + 2*x^5 - x^4 + 2*x^3 + 1)/(x^10 - x^9 - x + 1). - Chai Wah Wu, Jan 06 2020