OFFSET
0,3
REFERENCES
James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, Exercise 2.5.17 on page 77.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..4000
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1).
FORMULA
a(n) = 6*a(n-1) - 15*a(n-2) + 20*a(n-3) - 15*a(n-4) + 6*a(n-5) - a(n-6) for n > 5.
G.f.: x*(1 + 4*x + 14*x^2 + 4*x^3 + x^4)/(1 - x)^6.
E.g.f.: exp(x)*x*(15 + 60*x + 80*x^2 + 30*x^3 + 3*x^4)/15.
a(n) - a(n-1) = A058031(n) for n > 0.
MATHEMATICA
a[n_]:=n^5/5+n^3/3+7n/15; Array[a, 36, 0]
PROG
(Magma) [n^5/5 + n^3/3 + 7*n/15: n in [0..35]]; // Vincenzo Librandi, Jul 22 2025
(PARI) a(n)=n^5/5+n^3/3+7*n/15 \\ Charles R Greathouse IV, Sep 29 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Stefano Spezia, Jul 12 2025
STATUS
approved
