OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (4, -6, 4, -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
KEYWORD
nonn,easy
AUTHOR
STATUS
approved