OFFSET
0,5
COMMENTS
Number of partitions of n into parts 1, 4, 7 and 10. - Ilya Gutkovskiy, May 18 2017
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,1,-1,0,1,-1,0,1,-2,1,0,-1,1,0,-1,1,0,0,1,-1).
FORMULA
a(n) = floor((n^3 + 33*n^2 + 311*n + 1776)/1680 + (n/80)*[(n mod 2)=0] + (1/7)*([(n mod 7)=0] - [(n mod 7)=6])). - Hoang Xuan Thanh, Jul 07 2025
MATHEMATICA
CoefficientList[Series[1/((1-x)(1-x^4)(1-x^7)(1-x^10)), {x, 0, 60}], x] (* Harvey P. Dale, Mar 06 2017 *)
(* Alternative: *)
LinearRecurrence[{1, 0, 0, 1, -1, 0, 1, -1, 0, 1, -2, 1, 0, -1, 1, 0, -1, 1, 0, 0, 1, -1}, {1, 1, 1, 1, 2, 2, 2, 3, 4, 4, 5, 6, 7, 7, 9, 10, 11, 12, 14, 15, 17, 19}, 60] (* Harvey P. Dale, Mar 06 2017 *)
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
STATUS
approved
