OFFSET
1,4
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).
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
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Oct 31 2018
STATUS
approved