OFFSET
0,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6,-12,8).
FORMULA
From Andrew Howroyd, Sep 21 2025: (Start)
a(n) = Sum_{k=0..n} binomial(n,k)*floor(k/2+1)^2.
G.f.: (1 - 4*x + 7*x^2 - 6*x^3 + 2*x^4)/(1 - 2*x)^3. (End)
EXAMPLE
a(3) = 20 = sum of row 3 terms of A128182: (2 + 6 + 8 + 4).
PROG
(PARI) Vec((1 - 4*x + 7*x^2 - 6*x^3 + 2*x^4)/(1 - 2*x)^3 + O(x^31)) \\ Andrew Howroyd, Sep 21 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson, Feb 17 2007
EXTENSIONS
Offset corrected and a(10) onwards from Andrew Howroyd, Sep 21 2025
STATUS
approved
