OFFSET
0,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (20,-96).
FORMULA
a(n) = 3*12^n - 2*8^n. - Bruno Berselli, Feb 09 2011
a(n) = 12*a(n-1) + 8^n, a(0)=1. - Vincenzo Librandi, Feb 09 2011
a(n) = 20*a(n-1) - 96*a(n-2), a(0)=1, a(1)=20. - Vincenzo Librandi, Feb 09 2011
E.g.f.: 3*exp(12*x) - 2*exp(8*x). - G. C. Greubel, Nov 14 2024
MATHEMATICA
LinearRecurrence[{20, -96}, {1, 20}, 20] (* Paolo Xausa, Feb 08 2024 *)
PROG
(Magma) [4^n*(3^(n+1)-2^(n+1)): n in [0..40]]; // G. C. Greubel, Nov 14 2024
(SageMath)
A016188=BinaryRecurrenceSequence(20, -96, 1, 20)
print([A016188(n) for n in range(41)]) # G. C. Greubel, Nov 14 2024
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
STATUS
approved