OFFSET
0,3
COMMENTS
Number of partitions of n into parts 1, 2, 3, and 9. - Joerg Arndt, Jul 07 2013
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (1,1,0,-1,-1,1,0,0,1,-1,-1,0,1,1,-1).
FORMULA
G.f.: 1/((1-x)*(1-x^2)*(1-x^3)*(1-x^9)).
a(n) = floor(2/27*(floor(n/3) + 1)*cos(2*Pi*n/3) + (2*n^3 + 45*n^2 + 290*n + 744)/648). - Tani Akinari, Jul 07 2013
MATHEMATICA
CoefficientList[Series[1/((1 - x) (1 - x^2) (1 - x^3) (1 - x^9)), {x, 0, 100}], x] (* Vincenzo Librandi, Jan 22 2017 *)
LinearRecurrence[{1, 1, 0, -1, -1, 1, 0, 0, 1, -1, -1, 0, 1, 1, -1}, {1, 1, 2, 3, 4, 5, 7, 8, 10, 13, 15, 18, 22, 25, 29}, 70] (* Harvey P. Dale, Jul 17 2018 *)
PROG
(PARI) Vec(1/((1-x)*(1-x^2)*(1-x^3)*(1-x^9))+O(x^66)) \\ Joerg Arndt, Jul 07 2013
(Magma) m:=60; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/((1-x)*(1-x^2)*(1-x^3)*(1-x^9)))); // Vincenzo Librandi, Jan 22 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved