OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
E. J. Friedman, Math. Magic
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = (n^4 + 22*n^3 + 105*n^2 - 56*n - 8)/4.
G.f.: x*(-16 - 43*x + 94*x^2 - 43*x^3 + 2*x^4) / (x-1)^5. - R. J. Mathar, Jan 30 2011
MAPLE
for n from 1 to 50 do printf(`%d, `, (n^4+22*n^3+105*n^2-56*n-8)/4) od:
MATHEMATICA
Table[(n^4 + 22 n^3 + 105 n^2 - 56 n - 8) / 4, {n, 40}] (* Vincenzo Librandi, Jul 03 2018 *)
LinearRecurrence[{5, -10, 10, -5, 1}, {16, 123, 361, 778, 1428}, 50] (* Harvey P. Dale, Dec 24 2019 *)
PROG
(PARI) a(n)={(n^4 + 22*n^3 + 105*n^2 - 56*n - 8)/4} \\ Harry J. Smith, Jul 08 2009
(Magma) [(n^4 + 22*n^3 + 105*n^2 - 56*n - 8)/4: n in [1..40]]; // Vincenzo Librandi, Jul 03 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Apr 15 2001
EXTENSIONS
More terms from James A. Sellers, Apr 16 2001
STATUS
approved