OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..100
Index entries for linear recurrences with constant coefficients, signature (24,-128).
FORMULA
a(1)=1, a(2)=24, a(n) = 24*a(n-1) - 128*a(n-2). - Harvey P. Dale, Oct 20 2014
From G. C. Greubel, Aug 01 2024: (Start)
G.f.: x/((1 - 8*x)*(1 - 16*x)).
E.g.f.: (1/4)*exp(12*x)*sinh(4*x). (End)
MATHEMATICA
Table[8^(n-1) (2^n-1), {n, 20}] (* or *) LinearRecurrence[{24, -128}, {1, 24}, 20] (* Harvey P. Dale, Oct 20 2014 *)
PROG
(PARI) { for (n=1, 100, write("b060195.txt", n, " ", 8^(n - 1)*(2^n - 1)); ) } \\ Harry J. Smith, Jul 02 2009
(Magma) [8^(n-1)*(2^n-1): n in [1..40]]; // G. C. Greubel, Aug 01 2024
(SageMath) [8^(n-1)*(2^n-1) for n in range(1, 41)] # G. C. Greubel, Aug 01 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Manish Kumar Gupta (M.Gupta(AT)math.canterbury.ac.nz), Mar 21 2001
EXTENSIONS
More terms from Jason Earls and Larry Reeves (larryr(AT)acm.org), Mar 21 2001
STATUS
approved