OFFSET
0,1
LINKS
FORMULA
a(n) = 3*a(n-1)+2 for n > 0; a(0) = 3.
G.f.: (3-x)/((1-x)*(1-3*x)).
a(n) = A036543(n) + 2. - Philippe Deléham, Apr 13 2013
E.g.f.: exp(x)*(4*exp(2*x) - 1). - Stefano Spezia, Aug 04 2024
MATHEMATICA
NestList[3#+2&, 3, 30] (* Harvey P. Dale, Feb 25 2011 *)
PROG
(PARI) {m=25; v=concat([3], vector(m-1)); for(n=2, m, v[n]=3*v[n-1]+2); v}
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Dec 10 2009
EXTENSIONS
a(25)-a(27) from Stefano Spezia, Aug 04 2024
STATUS
approved