OFFSET
0,10
COMMENTS
Number of partitions of n into parts 2, 5, and 9. - Hoang Xuan Thanh, Aug 28 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,1,0,0,1,0,-1,0,1,0,-1,0,0,-1,0,1).
FORMULA
a(n) = floor((n^2 + 16*n + 234 - 45*(n mod 2) + 18*( ((n+2) mod 5) - ((n+3) mod 5) - 8*(n mod 5) + 2*(n mod 5)^2 ))/180). - Hoang Xuan Thanh, Aug 28 2025
MATHEMATICA
CoefficientList[Series[1/((1-x^2)(1-x^5)(1-x^9)), {x, 0, 100}], x] (* or *) LinearRecurrence[{0, 1, 0, 0, 1, 0, -1, 0, 1, 0, -1, 0, 0, -1, 0, 1}, {1, 0, 1, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3}, 100] (* Harvey P. Dale, Aug 24 2016 *)
PROG
(PARI) a(n) = (n^2 +16*n +108 -45*(n%2) + 36*[2, 0, 1, 0, 2][n%5+1])\180 \\ Hoang Xuan Thanh, Aug 28 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved
