OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..2000
Index entries for linear recurrences with constant coefficients, signature (3,-2).
FORMULA
a(n) = 2^(n-1) + 2, n>2.
From Elmo R. Oliveira, Jun 17 2026: (Start)
G.f.: x*(2 - 3*x + x^2 - 2*x^3)/((1 - x)*(1 - 2*x)).
E.g.f.: (exp(2*x) + 4*exp(x) - 5 - 2*x - x^2)/2.
a(n) = 3*a(n-1) - 2*a(n-2) for n > 4. (End)
MATHEMATICA
Join[{2, 3}, Rest[2^Range[40]+2]] (* Harvey P. Dale, Sep 19 2011 *)
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Ray Chandler, Nov 21 2003
STATUS
approved
