OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-2).
FORMULA
a(n) = A173786(n+5, 5).
a(n) = 3*a(n-1) - 2*a(n-2), a(0)=64, a(1)=96. - Vincenzo Librandi, Dec 28 2010
G.f.: 32*(2 - 3*x)/((1 - x)*(1 - 2*x)). - Chai Wah Wu, Jul 24 2020
E.g.f.: 32*(exp(2*x) + exp(x)). - G. C. Greubel, Jul 08 2021
MATHEMATICA
32*(2^Range[0, 40] + 1) (* G. C. Greubel, Jul 08 2021 *)
PROG
(Magma) I:=[64, 96]; [n le 2 select I[n] else 3*Self(n-1) - 2*Self(n-2): n in [1..41]]; // G. C. Greubel, Jul 08 2021
(Sage) [32*(2^n +1) for n in (0..40)] # G. C. Greubel, Jul 08 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Feb 28 2010
STATUS
approved