OFFSET
0,8
COMMENTS
Number of partitions of n into parts 2, 5, and 7. - Hoang Xuan Thanh, Aug 26 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,1,0,0,1,0,0,0,-1,0,0,-1,0,1).
FORMULA
a(n) = floor((n^2 +14*n +123 +17*(-1)^n +28*[(n mod 5) in {2,4}] -56*[(n mod 5)=3])/140). - Hoang Xuan Thanh, Aug 26 2025
MATHEMATICA
CoefficientList[Series[1/((1-x^2)(1-x^5)(1-x^7)), {x, 0, 70}], x] (* Harvey P. Dale, Sep 05 2017 *)
(* Alternative: *)
LinearRecurrence[{0, 1, 0, 0, 1, 0, 0, 0, -1, 0, 0, -1, 0, 1}, {1, 0, 1, 0, 1, 1, 1, 2, 1, 2, 2, 2, 3, 2}, 70] (* Harvey P. Dale, Sep 05 2017 *)
PROG
(PARI) a(n) = (n^2 + 14*n + 84 -35*(n%2) +28*[2, 2, 3, 0, 3][n%5+1])\140 \\ Hoang Xuan Thanh, Aug 26 2025
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
STATUS
approved
