OFFSET
0,5
COMMENTS
a(n) is the number of partitions of n into parts 2, 4, 5, and 7. - Hoang Xuan Thanh, Oct 08 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,1,0,1,1,-1,0,0,-2,0,0,-1,1,1,0,1,0,-1).
FORMULA
a(n) = floor((n^3+27*n^2+272*n+1344)/1680 - (n+6)*(n mod 2)/16 + ((4*n^3+3*n^2+3*n+1) mod 5)/5). - Hoang Xuan Thanh, Oct 08 2025
MATHEMATICA
CoefficientList[Series[1/((1-x^2)(1-x^4)(1-x^5)(1-x^7)), {x, 0, 60}], x] (* or *) LinearRecurrence[{0, 1, 0, 1, 1, -1, 0, 0, -2, 0, 0, -1, 1, 1, 0, 1, 0, -1}, {1, 0, 1, 0, 2, 1, 2, 2, 3, 3, 4, 4, 6, 5, 8, 7, 10, 9}, 60] (* Harvey P. Dale, Jan 03 2015 *)
PROG
(PARI) Vec(1/((1-x^2)*(1-x^4)*(1-x^5)*(1-x^7)) + O(x^68)) \\ Hoang Xuan Thanh, Oct 08 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Hoang Xuan Thanh, Oct 08 2025
STATUS
approved
