OFFSET
0,1
COMMENTS
Obtained by simply fitting a fifth degree polynomial to the terms 6,39,78,95,82,4 (see A058897).
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1).
FORMULA
a(n) = 6 + 94/15*n + 183/4*n^2 - 187/8*n^3 + 19/4*n^4 - 47/120*n^5.
G.f.: (6+3*x-66*x^2+92*x^3-8*x^4-74*x^5)/(1-x)^6. [Colin Barker, Apr 23 2012]
MATHEMATICA
CoefficientList[Series[(6+3x-66x^2+92x^3-8x^4-74x^5)/(1-x)^6, {x, 0, 40}], x] (* or *) LinearRecurrence[ {6, -15, 20, -15, 6, -1}, {6, 39, 78, 95, 82, 4}, 40] (* Harvey P. Dale, Sep 14 2024 *)
PROG
(PARI) { for (n = 0, 200, a=6 + 33*n + 6*binomial(n, 2) - 28*binomial(n, 3) + 20*binomial(n, 4) - 47*binomial(n, 5); write("b058985.txt", n, " ", a); ) } \\ Harry J. Smith, Jun 24 2009
CROSSREFS
KEYWORD
sign,easy,changed
AUTHOR
N. J. A. Sloane, Jan 17 2001
STATUS
approved