OFFSET
0,13
COMMENTS
Number of partitions of n into parts 3, 10, and 12. - Hoang Xuan Thanh, Sep 09 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,1,0,0,0,0,0,0,1,0,1,-1,0,-1,0,0,0,0,0,0,-1,0,0,1).
FORMULA
a(n) = floor((n^2 + 3*n*(15+(-1)^n) + 720)/720 - (n+12)*(n mod 3)/36). - Hoang Xuan Thanh, Sep 09 2025
MATHEMATICA
CoefficientList[Series[1/((1-x^3)(1-x^10)(1-x^12)), {x, 0, 80}], x] (* Harvey P. Dale, May 26 2011 *)
LinearRecurrence[{0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, -1, 0, -1, 0, 0, 0, 0, 0, 0, -1, 0, 0, 1}, {1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 2, 1, 0, 2, 1, 0, 2, 1, 1, 2, 2, 1, 3}, 80] (* Harvey P. Dale, Jun 29 2021 *)
PROG
(PARI) a(n) = (n^2 + 3*n*(15+(-1)^n) + 720 - 20*(n+12)*(n%3))\720 \\ Hoang Xuan Thanh, Sep 09 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
