OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..690
Index entries for linear recurrences with constant coefficients, signature (39,-351,729).
FORMULA
a(n) = binomial(3^n, 3), n >= 0. - Zerinvary Lajos, Jan 07 2008
From Elmo R. Oliveira, Apr 09 2026: (Start)
G.f.: x*(1 + 45*x)/((1 - 27*x)*(1 - 9*x)*(1 - 3*x)).
E.g.f.: (1/6)*(2 - 3*exp(6*x) + exp(24*x))*exp(3*x).
a(n) = 3*(13*a(n-1) - 117*a(n-2) + 243*a(n-3)). (End)
MAPLE
seq(binomial(3^n, 3), n=0..16); # Zerinvary Lajos, Jan 07 2008
MATHEMATICA
Binomial[3^Range[0, 20], 3] (* G. C. Greubel, Nov 08 2019 *)
PROG
(PARI) vector(21, n, binomial(3^(n-1), 3) ) \\ G. C. Greubel, Nov 08 2019
(Magma) [Binomial(3^n, 3): n in [0..20]]; // G. C. Greubel, Nov 08 2019
(SageMath) [binomial(3^n, 3) for n in (0..20)] # G. C. Greubel, Nov 08 2019
(GAP) List([0..20], n-> Binomial(3^n, 3) ); # G. C. Greubel, Nov 08 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
