OFFSET
0,10
COMMENTS
Number of partitions of n into parts 3, 7, and 9. - Hoang Xuan Thanh, Sep 05 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,1,0,0,0,1,0,1,-1,0,-1,0,0,0,-1,0,0,1).
FORMULA
G.f.: 1/((1-x^3)*(1-x^7)*(1-x^9)).
a(n) = floor((n^2 + 33*n + 273)/378 - (n+4)*(n mod 3)/27 + (4/27)*((n+2) mod 3) + (2/63)*(((n+7) mod 9)-((n+6) mod 9))). - Hoang Xuan Thanh, Sep 05 2025
MATHEMATICA
CoefficientList[Series[1/((1-x^3)(1-x^7)(1-x^9)), {x, 0, 80}], x] (* Harvey P. Dale, Sep 07 2011 *)
PROG
(PARI) a(n) = (n^2 + 33*n + 273 - 14*(n+4)*(n%3) + 56*((n+2)%3) + 12*(((n+7)%9) - ((n+6)%9))) \378 \\ Hoang Xuan Thanh, Sep 05 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
