login
A180356
n^6+6n
3
0, 7, 76, 747, 4120, 15655, 46692, 117691, 262192, 531495, 1000060, 1771627, 2986056, 4826887, 7529620, 11390715, 16777312, 24137671, 34012332, 47045995, 64000120, 85766247, 113380036, 148036027, 191103120, 244140775, 308915932
OFFSET
0,2
FORMULA
a(n) = +7*a(n-1) -21*a(n-2) +35*a(n-3) -35*a(n-4) +21*a(n-5) -7*a(n-6) +a(n-7). G.f.: x*(-7-27*x-362*x^2-242*x^3-87*x^4+5*x^5)/(x-1)^7. [From R. J. Mathar, Sep 24 2010]
MATHEMATICA
Table[n^6+6n, {n, 0, 30}] (* or *) LinearRecurrence[{7, -21, 35, -35, 21, -7, 1}, {0, 7, 76, 747, 4120, 15655, 46692}, 30] (* Harvey P. Dale, Feb 14 2023 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Odimar Fabeny, Aug 30 2010
EXTENSIONS
First term corrected by Odimar Fabeny, Sep 23 2010
a(0) corrected by R. J. Mathar, Sep 24 2010
STATUS
approved