login
A017187
a(n) = (9*n + 2)^3.
1
8, 1331, 8000, 24389, 54872, 103823, 175616, 274625, 405224, 571787, 778688, 1030301, 1331000, 1685159, 2097152, 2571353, 3112136, 3723875, 4410944, 5177717, 6028568, 6967871, 8000000, 9129329
OFFSET
0,1
FORMULA
G.f.: (8 + 1299*x + 2724*x^2 + 343*x^3)/(-1+x)^4. - R. J. Mathar, Jun 24 2009
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4); a(0)=8, a(1)=1331, a(2)=8000, a(3)=24389. - Harvey P. Dale, Jan 27 2014
MAPLE
seq((9*n+2)^3, n=0..30); # Muniru A Asiru, Oct 20 2018
MATHEMATICA
(9*Range[0, 30]+2)^3 (* or *) LinearRecurrence[{4, -6, 4, -1}, {8, 1331, 8000, 24389}, 30] (* Harvey P. Dale, Jan 27 2014 *)
PROG
(Magma) [(9*n+2)^3: n in [0..35]]; // Vincenzo Librandi, Jul 23 2011
(GAP) List([0..30], n->(9*n+2)^3); # Muniru A Asiru, Oct 20 2018
CROSSREFS
Sequence in context: A091868 A247732 A162090 * A168575 A286315 A270112
KEYWORD
nonn,easy
STATUS
approved