OFFSET
0,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-2).
FORMULA
a(n) = 2 + 2^(n+1) for n >= 1; a(0)=1. - Emeric Deutsch, Oct 24 2007
O.g.f.: (-1-3*x+6*x^2)/((1-x)*(-1+2*x)). - R. J. Mathar, Apr 02 2008
From Elmo R. Oliveira, Jul 06 2026: (Start)
E.g.f.: 2*exp(x)*(1 + exp(x)) - 3.
a(n) = 2*A048578(n-1) for n > 0.
a(n) = 3*a(n-1) - 2*a(n-2) for n > 2. (End)
EXAMPLE
a(3) = 18 = (1, 3, 3, 1) dot (1, 5, -1, 5) = (1 + 15 - 3 + 5).
MAPLE
1, seq(2^(n+1)+2, n=1..25); # Emeric Deutsch, Oct 24 2007
PROG
(PARI) a(n) = if(n==0, 1, 2 + 2^(n+1)) \\ Andrew Howroyd, Sep 14 2025
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Gary W. Adamson, Oct 21 2007
EXTENSIONS
More terms from Emeric Deutsch, Oct 24 2007
More terms from R. J. Mathar, Apr 02 2008
Offset corrected and more terms from Andrew Howroyd, Sep 14 2025
STATUS
approved
