login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A024107
a(n) = 9^n - n^6.
2
1, 8, 17, 0, 2465, 43424, 484785, 4665320, 42784577, 386889048, 3485784401, 31379288048, 282426550497, 2541861001520, 22876784925425, 205891120704024, 1853020172074625, 16677181675529000, 150094635262986897
OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (16, -84, 224, -350, 336, -196, 64, -9).
FORMULA
a(n) = 16*a(n-1) - 84*a(n-2) + 224*a(n-3) - 350*a(n-4) + 336*a(n-5) - 196*a(n-6) + 64*a(n-7) - 9*a(n-8); a(0)=1, a(1)=8, a(2)=17, a(3)=0, a(4)=2465, a(5)=43424, a(6)=484785, a(7)=4665320. - Harvey P. Dale, Oct 15 2012
MATHEMATICA
Table[9^n-n^6, {n, 0, 20}] (* or *) LinearRecurrence[ {16, -84, 224, -350, 336, -196, 64, -9}, {1, 8, 17, 0, 2465, 43424, 484785, 4665320}, 20] (* Harvey P. Dale, Oct 15 2012 *)
PROG
(Magma) [9^n-n^6: n in [0..25]]; // Vincenzo Librandi, Jul 06 2011
(PARI) a(n) = 9^n-n^6; \\ Altug Alkan, Oct 08 2018
CROSSREFS
Sequence in context: A247850 A024280 A115434 * A234839 A066554 A302976
KEYWORD
nonn,easy
STATUS
approved