OFFSET
0,17
COMMENTS
Number of partitions of n into parts 4, 7, and 9. - Hoang Xuan Thanh, Sep 10 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,1,0,0,1,0,1,0,-1,0,-1,0,0,-1,0,0,0,1).
FORMULA
a(n) = floor((n^2 + 20*n + 288)/504 - (n mod 4)/9 + ((3*n^2+4*n+3) mod 7)/7). - Hoang Xuan Thanh, Sep 10 2025
MATHEMATICA
CoefficientList[Series[1/((1-x^4)(1-x^7)(1-x^9)), {x, 0, 80}], x] (* or *) LinearRecurrence[{0, 0, 0, 1, 0, 0, 1, 0, 1, 0, -1, 0, -1, 0, 0, -1, 0, 0, 0, 1}, {1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1}, 80] (* Harvey P. Dale, May 02 2025 *)
PROG
(PARI) a(n) = (n^2+20*n+288 - 56*(n%4) + 72*((3*n^2+4*n+3)%7))\504;
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
