OFFSET
1,2
LINKS
Stefano Spezia, Table of n, a(n) for n = 1..3300
Index entries for linear recurrences with constant coefficients, signature (3,-2).
FORMULA
a(1)=1; a(2)=3; a(3)=5; a(n) = 5 + 2^(n-2) for n > 3.
G.f.: x*(1 - 2*x^2 - 4*x^4)/((1 - x)*(1 - 2*x)). - Stefano Spezia, May 15 2023
MATHEMATICA
LinearRecurrence[{3, -2}, {1, 3, 5, 9, 13}, 40] (* Harvey P. Dale, May 10 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Aaron C. Horak, Oct 09 2014
EXTENSIONS
More terms from Harvey P. Dale, May 10 2019
STATUS
approved