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 (7,-14,8).
FORMULA
G.f.: 2*(2 - 5*x)/((1 - x)*(1 - 2*x)*(1 - 4*x)). - Ilya Gutkovskiy, Feb 24 2017
From G. C. Greubel, Oct 21 2017: (Start)
E.g.f.: 2*exp(x)*(2*exp(3*x) + exp(x) - 1).
a(n) = 7*a(n-1) - 14*a(n-2) + 8*a(n-3). (End)
a(n) = 2 * A092431(n+1). - Alois P. Heinz, Feb 02 2024
a(n) = 4^(n+1) + 2^(n+1) - 2. - Ramzan Guekhaev, Feb 02 2024
MATHEMATICA
Table[2*(2^n + 1)*(2^(n + 1) - 1), {n, 0, 50}] (* G. C. Greubel, Oct 21 2017 *)
PROG
(PARI) for(n=0, 50, print1(2*(2^n + 1)*(2^(n + 1) - 1), ", ")) \\ G. C. Greubel, Oct 21 2017
(Magma) [2*(2^n + 1)*(2^(n + 1) - 1): n in [0..50]]; // G. C. Greubel, Oct 21 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
An incorrect g.f. was deleted by N. J. A. Sloane, Sep 20 2008
STATUS
approved