OFFSET
0,1
LINKS
Bruno Berselli, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (12,-47,72,-36).
FORMULA
G.f.: (12-119*x+341*x^2-294*x^3)/((1-x)*(1-2*x)*(1-3*x)*(1-6*x)).
Sum_{i=0..n} a(i) = (1/10)*(12*6^n+45*3^n+40*2^n+60*n+23).
MATHEMATICA
Table[(2 + 3^n) (3 + 2^n), {n, 0, 30}] (* Vincenzo Librandi, Mar 26 2013 *)
PROG
(Magma) [(2+3^n)*(3+2^n): n in [0..21]];
(PARI) for(n=0, 21, print1((2+3^n)*(3+2^n)", "));
(Python)
def a(n): return (2+3**n)*(3+2**n)
print([a(n) for n in range(23)]) # Michael S. Branicky, Dec 25 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Bruno Berselli, Sep 09 2011
STATUS
approved