OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1,2,-4,2,-1,2,-1).
FORMULA
a(n) = Sum_{k=1..n} k*A143097(k).
G.f.: x*(1 + 3*x + 8*x^2 - 2*x^3 + 7*x^4 + x^5 + x^6 - x^7)/((1 - x)^4*(1 + x + x^2)^2). - Andrew Howroyd, Sep 21 2025
EXAMPLE
PROG
(PARI) Vec((1 + 3*x + 8*x^2 - 2*x^3 + 7*x^4 + x^5 + x^6 - x^7)/((1 - x)^4*(1 + x + x^2)^2) + O(x^50)) \\ Andrew Howroyd, Sep 21 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson, Jul 24 2008
EXTENSIONS
a(15) onwards from Andrew Howroyd, Sep 21 2025
STATUS
approved
