login
A024106
a(n) = 9^n-n^5.
2
1, 8, 49, 486, 5537, 55924, 523665, 4766162, 43013953, 387361440, 3486684401, 31380898558, 282429287649, 2541865457036, 22876791917137, 205891131335274, 1853020187803265, 16677181698246712, 150094635295109553
OFFSET
0,2
LINKS
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
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 *)
PROG
(Magma) [9^n-n^5: n in [0..25]]; // Vincenzo Librandi, Jul 06 2011
(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
CROSSREFS
Sequence in context: A188708 A317752 A273497 * A176626 A176674 A176694
KEYWORD
nonn,easy
AUTHOR
STATUS
approved