OFFSET
0,15
COMMENTS
Number of partitions of n into parts 3, 7, and 11. - Hoang Xuan Thanh, Sep 06 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,1,0,0,0,1,0,0,-1,1,0,0,-1,0,0,0,-1,0,0,1).
FORMULA
a(n) = floor((n^2 + 21*n + 135)/462 + (5/42)*(((n+2) mod 3) - (n mod 3)) + ((2*n^2 + 6) mod 7)/7). - Hoang Xuan Thanh, Sep 06 2025
MATHEMATICA
CoefficientList[Series[1/((1-x^3)(1-x^7)(1-x^11)), {x, 0, 80}], x] (* or *) LinearRecurrence[{0, 0, 1, 0, 0, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, 0, 0, -1, 0, 0, 1}, {1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 2}, 80] (* Harvey P. Dale, Aug 28 2017 *)
PROG
(PARI) a(n)= (n^2 + 21*n + 135 + 55*((n+2)%3-n%3) + 66*((2*n^2+6)%7)) \462 \\ Hoang Xuan Thanh, Sep 06 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
