OFFSET
0,4
COMMENTS
Number of partitions of n into parts 1, 3, 5 and 12. - Ilya Gutkovskiy, May 14 2017
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,1,-1,1,-1,0,-1,1,0,0,1,-1,0,-1,1,-1,1,0,1,-1).
FORMULA
a(n) = floor((2*n^3 + 63*n^2 + 552*n + 60*n*[(n mod 3)=0] + 2295)/2160) + [(n mod 60)=30]. - Hoang Xuan Thanh, Jul 02 2025
MATHEMATICA
CoefficientList[Series[1/((1 - x) (1 - x^3) (1 - x^5) (1 - x^12)), {x, 0, 60}], x] (* Vincenzo Librandi, Jun 26 2014 *)
LinearRecurrence[{1, 0, 1, -1, 1, -1, 0, -1, 1, 0, 0, 1, -1, 0, -1, 1, -1, 1, 0, 1, -1}, {1, 1, 1, 2, 2, 3, 4, 4, 5, 6, 7, 8, 10, 11, 12, 15, 16, 18, 21, 22, 25}, 61] (* Harvey P. Dale, Nov 09 2016 *)
PROG
(PARI) a(n)=floor((2*n^3+63*n^2+552*n+2155+10*(n%3<1)*(6*n+59+27*(-1)^(n\3)))/2160) \\ Tani Akinari, Jun 25 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
