A024106 a(n) = 9^n-n^5.
1, 8, 49, 486, 5537, 55924, 523665, 4766162, 43013953, 387361440, 3486684401, 31380898558, 282429287649, 2541865457036, 22876791917137, 205891131335274, 1853020187803265, 16677181698246712, 150094635295109553
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..400
- Index entries for linear recurrences with constant coefficients, signature (15,-69,155,-195,141,-55,9).
Programs
-
Magma
[9^n-n^5: n in [0..25]]; // Vincenzo Librandi, Jul 06 2011
-
Mathematica
Table[9^n-n^5,{n,0,20}] (* or *) LinearRecurrence[{15,-69,155,-195,141,-55,9},{1,8,49,486,5537,55924,523665},20] (* Harvey P. Dale, Sep 11 2019 *)
-
PARI
Vec(-(10*x^6+227*x^5+583*x^4+148*x^3-2*x^2-7*x+1)/((x-1)^6*(9*x-1)) + O(x^100)) \\ Colin Barker, Jan 25 2015
Formula
G.f.: -(10*x^6+227*x^5+583*x^4+148*x^3-2*x^2-7*x+1) / ((x-1)^6*(9*x-1)). - Colin Barker, Jan 25 2015