|
|
A005676
|
|
a(n) = Sum_{k=0..n} C(n-k,4*k).
(Formerly M1610)
|
|
21
|
|
|
1, 1, 1, 1, 1, 2, 6, 16, 36, 71, 128, 220, 376, 661, 1211, 2290, 4382, 8347, 15706, 29191, 53824, 99009, 182497, 337745, 627401, 1167937, 2174834, 4046070, 7517368, 13951852, 25880583, 48009456, 89090436, 165392856, 307137901
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,6
|
|
REFERENCES
|
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (1-3x+3x^2-x^3)/(1-4x+6x^2-4x^3+x^4-x^5) = (1-x)^3/((1-x)^4-x^5).
a(n) = Sum_{k=0..floor(n/2)} binomial(n-k, 4k).
a(n) = 4a(n-1)-6a(n-2)+4a(n-3)-a(n-4)+a(n-5). (End)
|
|
MAPLE
|
|
|
MATHEMATICA
|
LinearRecurrence[{4, -6, 4, -1, 1}, {1, 1, 1, 1, 1}, 40] (* or *) CoefficientList[Series[(1 - x)^3 / ((1 - x)^4 - x^5), {x, 0, 40}], x] (* Vincenzo Librandi, Sep 08 2017 *)
|
|
PROG
|
(Magma) [&+[Binomial(n-k, 4*k): k in [0..n]]: n in [0..40]]; // Vincenzo Librandi, Sep 08 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|