A024113 a(n) = 9^n-n^12.
1, 8, -4015, -530712, -16770655, -244081576, -2176250895, -13836504232, -68676430015, -282042115992, -996513215599, -3107047317112, -8633670911775, -20756219294152, -33817119920335, 76144794204024, 1571545212141185, 16094559462436808, 148937803915572945
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..300
- Index entries for linear recurrences with constant coefficients, signature (22,-195,988,-3289,7722,-13299,17160,-16731,12298,-6721,2652,-715,118,-9).
Programs
-
Magma
[9^n-n^12: n in [0..20]]; // Vincenzo Librandi, Jun 30 2011
-
Maple
A024113:=n->9^n - n^12; seq(A024113(n), n=0..20); # Wesley Ivan Hurt, May 25 2014
-
Mathematica
Table[9^n - n^12, {n, 0, 20}] (* Wesley Ivan Hurt, May 25 2014 *)
Formula
G.f.: (8*x^13 +36759*x^12 +4300278*x^11 +91211180*x^10 +586677866*x^9 +1396293387*x^8 +1300096572*x^7 +434355696*x^6 +25369404*x^5 -5882531*x^4 -441810*x^3 -3996*x^2 -14*x +1) / ((x -1)^13*(9*x -1)). - Colin Barker, May 26 2014