OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6, -15, 20, -15, 6, -1).
FORMULA
a(n) = 5*n^5 - 3*n^3 + 2*n^2.
G.f.: 4x*(1+30x+87x^2+32x^3)/(1-x)^6. - R. J. Mathar, Nov 14 2007
EXAMPLE
a(4)=4960 because 4^5=1024, 5*1024=5120, 4^3=64, 3*64=192, 4^2=16, 2*16=32 and we can write 5120 - 192 + 32 = 4960.
MATHEMATICA
Table[5n^5-3n^3+2n^2, {n, 0, 40}] (* or *) LinearRecurrence[{6, -15, 20, -15, 6, -1}, {0, 4, 144, 1152, 4960, 15300}, 40] (* Harvey P. Dale, Jan 20 2023 *)
PROG
(Magma)[5*n^5-3*n^3+2*n^2: n in [0..50]] // Vincenzo Librandi, Dec 14 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Nov 04 2007
EXTENSIONS
More terms from Vincenzo Librandi, Dec 14 2010
STATUS
approved