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
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4); a(0)=729, a(1)=6859, a(2)=24389, a(3)=59319. - Harvey P. Dale, Nov 01 2011
MATHEMATICA
(10Range[0, 30]+9)^3 (* or *) LinearRecurrence[{4, -6, 4, -1}, {729, 6859, 24389, 59319}, 30] (* Harvey P. Dale, Nov 01 2011 *)
PROG
(Magma) [(10*n+9)^3: n in [0..40]]; // Vincenzo Librandi, Aug 31 2011
(PARI) vector(40, n, n--; (10*n + 9)^3) \\ G. C. Greubel, Nov 10 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved