OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 201
Index entries for linear recurrences with constant coefficients, signature (2, 0, -2, 1, 1, -2, 0, 2, -1, 1, -2, 0, 2, -1, -1, 2, 0, -2, 1, 1, -2, 0, 2, -1, -1, 2, 0, -2, 1, -1, 2, 0, -2, 1, 1, -2, 0, 2, -1).
FORMULA
G.f.: 1/((1-x)^2*(1-x^2)*(1-x^5)*(1-x^10)*(1-x^20)).
MATHEMATICA
CoefficientList[Series[1/((1-x)^2*(1-x^2)*(1-x^5)*(1-x^10)*(1-x^20)), {x, 0, 50}], x] (* Vincenzo Librandi, Feb 24 2012 *)
PROG
(Maxima) a(n):=block([f:divide((1-z^20)^5, (1-z)^2*(1-z^2)*(1-z^5)*(1-z^10), z)[1]], return(sum(binomial(k+5, 5)*coeff(f, z, n-20*k), k, max(0, ceiling((n-81)/20)), floor(n/20)))); /* Tani Akinari, May 12 2014 */
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved