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+3, 3).
a(n) = 3*a(n-1) -2*a(n-2) with a(0)=16, a(1)=24. - Vincenzo Librandi, Dec 28 2010
G.f.: 8*(2 - 3*x)/((1-x)*(1-2*x)). - Chai Wah Wu, Jun 20 2020
a(n) = 8 * A000051(n). - Alois P. Heinz, Jun 20 2020
E.g.f.: 8*(exp(2*x) + exp(x)). - G. C. Greubel, Jul 08 2021
MATHEMATICA
8*(2^Range[0, 40] + 1) (* G. C. Greubel, Jul 08 2021 *)
LinearRecurrence[{3, -2}, {16, 24}, 40] (* Harvey P. Dale, Feb 10 2022 *)
PROG
(Magma) I:=[16, 24]; [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) [8*(2^n +1) for n in (0..40)] # G. C. Greubel, Jul 08 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Feb 28 2010
STATUS
approved