OFFSET
0,10
COMMENTS
Number of partitions of n into parts 3, 8, and 9. - Hoang Xuan Thanh, Sep 06 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,1,0,0,0,0,1,1,0,-1,-1,0,0,0,0,-1,0,0,1).
FORMULA
a(n) = floor((n^2 + 4*n + 233)/432 + (n+2)*((n+2) mod 3)/27 + (((n+4) mod 8) - ((n+5) mod 8) + ((n+6) mod 8) - ((n+7) mod 8) + ((5*n^2 + 4*n + 7) mod 8))/16). - Hoang Xuan Thanh, Sep 06 2025
MATHEMATICA
CoefficientList[Series[1/((1-x^3)(1-x^8)(1-x^9)), {x, 0, 80}], x] (* Harvey P. Dale, Jul 19 2011 *)
PROG
(PARI) a(n) = (n^2 + 20*n + 211)/432 + (n+2)*[1, -1, 0][n%3+1]/27 + [7, 8, 3, 8, 7, 0, 3, 0][n%8+1]/16 - [0, 25, 21, 9, 25, 21, 9, 16, 12][n%9+1]/27 \\ Hoang Xuan Thanh, Sep 06 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
