login
A321232
Length of n-th term of A321225.
2
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,4
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
EXAMPLE
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
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 *)
CROSSREFS
Sequence in context: A061901 A376741 A322349 * A326015 A078822 A224980
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Oct 31 2018
STATUS
approved