login
A024104
a(n) = 9^n - n^3.
2
1, 8, 73, 702, 6497, 58924, 531225, 4782626, 43046209, 387419760, 3486783401, 31381058278, 282429534753, 2541865826132, 22876792452217, 205891132091274, 1853020188847745, 16677181699661656, 150094635296993289
OFFSET
0,2
LINKS
FORMULA
G.f.: (10*x^4 + 31*x^3 + 11*x^2 - 5*x + 1)/((1-9*x)*(1-x)^4). - M. F. Hasler, Jun 14 2008
PROG
(Magma) [9^n-n^3: n in [0..25]]; // Vincenzo Librandi, Jul 06 2011
(PARI) a(n) = 9^n-n^3; \\ Altug Alkan, Oct 08 2018
CROSSREFS
Sequence in context: A293151 A082764 A254150 * A152429 A234281 A176734
KEYWORD
nonn,easy
STATUS
approved