OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..400
Index entries for linear recurrences with constant coefficients, signature (14,-63,140,-175,126,-49,8).
FORMULA
From Chai Wah Wu, Jul 10 2016: (Start)
a(n) = 14*a(n-1) - 63*a(n-2) + 140*a(n-3) - 175*a(n-4) + 126*a(n-5) - 49*a(n-6) + 8*a(n-7) for n > 6.
G.f.: (-9*x^6 - 201*x^5 - 517*x^4 - 122*x^3 + 3*x^2 + 7*x - 1)/((x - 1)^6*(8*x - 1)). (End)
MATHEMATICA
CoefficientList[Series[(-9*x^6 - 201*x^5 - 517*x^4 - 122*x^3 + 3*x^2 + 7*x - 1)/((x - 1)^6*(8*x - 1)), {x, 0, 20}], x] (* Wesley Ivan Hurt, Nov 12 2022 *)
Table[8^n-n^5, {n, 0, 30}] (* or *) LinearRecurrence[{14, -63, 140, -175, 126, -49, 8}, {1, 7, 32, 269, 3072, 29643, 254368}, 30] (* Harvey P. Dale, Nov 26 2025 *)
PROG
(Magma) [8^n-n^5: n in [0..20]]; // Vincenzo Librandi, Jul 05 2011
(PARI) a(n)=8^n-n^5 \\ Charles R Greathouse IV, May 29 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
