OFFSET
0,9
COMMENTS
Number of partitions of n into parts 2, 7, and 8. - Hoang Xuan Thanh, Aug 30 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,1,0,0,0,0,1,1,-1,-1,0,0,0,0,-1,0,1).
FORMULA
a(n) = floor((n^2 + 17*n + 168 + 7*(n+9)*(-1)^n +19*( ((n+2) mod 7) - (n mod 7) )) /224). - Hoang Xuan Thanh, Aug 30 2025
MATHEMATICA
CoefficientList[Series[1/((1-x^2)(1-x^7)(1-x^8)), {x, 0, 70}], x] (* Harvey P. Dale, Jun 05 2018 *)
(* Alternative: *)
LinearRecurrence[{0, 1, 0, 0, 0, 0, 1, 1, -1, -1, 0, 0, 0, 0, -1, 0, 1}, {1, 0, 1, 0, 1, 0, 1, 1, 2, 1, 2, 1, 2, 1, 3, 2, 4}, 70] (* Harvey P. Dale, Jun 05 2018 *)
PROG
(PARI) Vec(1/((1-x^2)*(1-x^7)*(1-x^8)) + O(x^75)) \\ Jinyuan Wang, Feb 28 2020
(PARI) a(n) = (n^2 +17*n +168 +7*(n+9)*(-1)^n +19*((n+2)%7-n%7)) \224 \\ Hoang Xuan Thanh, Aug 30 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
