OFFSET
0,10
COMMENTS
Number of partitions of n into parts 3, 9, and 11. - Hoang Xuan Thanh, Sep 08 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,1,0,0,0,0,0,1,0,1,-1,0,-1,0,0,0,0,0,-1,0,0,1).
FORMULA
G.f.: 1/((1-x^3)*(1-x^9)*(1-x^11)).
a(n) = a(n-3) + a(n-9) + a(n-11) - a(n-12) - a(n-14) - a(n-20) + a(n-23). - Wesley Ivan Hurt, Jan 20 2024
a(n) = floor((n^2 + n + 22*(n+8)*((n+2) mod 3) + 54*((n^2+n+5) mod 11))/594). - Hoang Xuan Thanh, Sep 08 2025
MATHEMATICA
CoefficientList[Series[1/((1-x^3)(1-x^9)(1-x^11)), {x, 0, 80}], x] (* or *) LinearRecurrence[ {0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, -1, 0, -1, 0, 0, 0, 0, 0, -1, 0, 0, 1}, {1, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 1, 2, 0, 1, 2, 0, 1, 3, 0, 2, 3, 1}, 80] (* Harvey P. Dale, Nov 07 2022 *)
PROG
(PARI) a(n) = (n^2+n+22*(n+8)*((n+2)%3)+54*((n^2+n+5)%11))\594 \\ Hoang Xuan Thanh, Sep 08 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
