OFFSET
0,9
COMMENTS
Number of partitions of n into parts 4, 6, 7, and 8. - Hoang Xuan Thanh, May 08 2026
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,0,1,0,1,1,1,0,-1,-1,-1,-1,-1,-1,0,1,1,1,0,1,0,0,0,-1).
FORMULA
a(n) = floor((n^3+48*n^2+564*n+3456)/8064 - (n mod 2)*(n^2+25*n+176)/384 + ((n^2+n+2) mod 4)*n/64 + ((5*n^3+2*n^2+6*n+4) mod 7)/7). - Hoang Xuan Thanh, May 08 2026
MATHEMATICA
CoefficientList[Series[1/((1-x^4)(1-x^6)(1-x^7)(1-x^8)), {x, 0, 100}], x] (* Jinyuan Wang, Mar 11 2020 *)
(* Alternative: *)
LinearRecurrence[{0, 0, 0, 1, 0, 1, 1, 1, 0, -1, -1, -1, -1, -1, -1, 0, 1, 1, 1, 0, 1, 0, 0, 0, -1}, {1, 0, 0, 0, 1, 0, 1, 1, 2, 0, 1, 1, 3, 1, 3, 2, 4, 1, 4, 3, 6, 3, 6, 4, 8}, 70] (* Harvey P. Dale, Oct 16 2025 *)
(* Alternative: *)
a[n_]:=Floor[(n^3+48*n^2+564*n+3456)/8064-Mod[n, 2]*(n^2+25*n+176) /384+Mod[n^2+n+2, 4]*n/64+Mod[5*n^3+2*n^2+6*n+4, 7]/7]; Table[a[n], {n, 0, 100}] (* Vincenzo Librandi, May 09 2026 *)
PROG
(Magma) m:=90; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((1/((1-x^4)*(1-x^6)*(1-x^7)*(1-x^8))))); // Vincenzo Librandi, May 09 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, May 09 2026
STATUS
approved
