OFFSET
0,2
LINKS
Muniru A Asiru, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (8,-28,56,-70,56,-28,8,-1).
FORMULA
G.f.: (1 - 6*x + 141*x^2 + 1156*x^3 + 2451*x^4 + 1170*x^5 + 127*x^6)/(1 - x)^8.
a(n) = 8*a(n-1) - 28*a(n-2) + 56*a(n-3) - 70*a(n-4) + 56*a(n-5) - 28*a(n-6) + 8*a(n-7) - a(n-8).
a(n) = (n + 1)*(n^6 - n^5 + n^4 - n^3 + n^2 - n + 1).
a(n) = Sum_{k=0..n} A300785(n,k). - Kolosov Petro, Oct 23 2018
E.g.f.: (1 +x +63*x^2 +301*x^3 +350*x^4 +140*x^5 +*21*x^6 +x^7)*exp(x). - G. C. Greubel, Oct 24 2018
MAPLE
seq(n^7+1, n=0..30); # Muniru A Asiru, Oct 24 2018
MATHEMATICA
Table[n^7 + 1, {n, 0, 40}] (* or *) LinearRecurrence[{8, -28, 56, -70, 56, -28, 8, -1}, {1, 2, 129, 2188, 16385, 78126, 279937, 823544}, 40]
PROG
(Magma) [n^7+1: n in [0..40]] /* or */ I:=[1, 2, 129, 2188, 16385, 78126, 279937, 823544]; [n le 8 select I[n] else 8*Self(n-1) - 28*Self(n-2)+56*Self(n-3)-70*Self(n-4)+56*Self(n-5) -28*Self(n-6) + 8*Self(n-7)-Self(n-8): n in [1..40]];
(Sage) [n^7+1 for n in (1..40)] # Bruno Berselli, Jun 11 2015
(PARI) a(n)=n^7+1 \\ Charles R Greathouse IV, Jun 11 2015
(GAP) List([0..30], n->n^7+1); # Muniru A Asiru, Oct 24 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jun 11 2015
STATUS
approved