OFFSET
0,3
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,0,-1,0,-2,2,0,1,0,-2,1).
FORMULA
G.f.: -x*(x^8+5*x^7+16*x^6+25*x^5+31*x^4+25*x^3+16*x^2+5*x+1) / ((x-1)^5*(x+1)^2*(x^2+1)*(x^2+x+1)).
EXAMPLE
For n=2, the 7 partitions of 10 are [6,1,1,1,1], [5,2,1,1,1], [4,3,1,1,1], [4,2,2,1,1], [3,3,2,1,1], [3,2,2,2,1] and [2,2,2,2,2].
MATHEMATICA
Length /@ (Length /@ IntegerPartitions[5 #, {5}] & /@ Range@ 39) (* Michael De Vlieger, Mar 20 2015 *)
PROG
(PARI)
concat(0, Vec(-x* (x^8+5*x^7+16*x^6+25*x^5+31*x^4+25*x^3+16*x^2+5*x+1) / ((x-1)^5*(x+1)^2*(x^2+1)*(x^2+x+1)) + O(x^100)))
(PARI)
concat(0, vector(40, n, k=0; forpart(p=5*n, k++, , [5, 5]); k)) \\ Colin Barker, Mar 21 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Mar 19 2015
STATUS
approved