OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
From Chai Wah Wu, Sep 12 2021: (Start)
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5) for n > 4.
G.f.: (-3*x^4 - 36*x^3 - 10*x^2 + 2*x - 1)/(x - 1)^5. (End)
PROG
(Python)
def A347319(n): return n*(n**2*(2*n - 3) + 3) + 1 # Chai Wah Wu, Sep 12 2021
(PARI) a(n)=2*n+1)*(n^3-2*n^2+n+1 \\ Charles R Greathouse IV, Oct 21 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Sep 12 2021
STATUS
approved