login
A005367
a(n) = 2*(2^n + 1)*(2^(n+1) - 1).
3
4, 18, 70, 270, 1054, 4158, 16510, 65790, 262654, 1049598, 4196350, 16781310, 67117054, 268451838, 1073774590, 4295032830, 17180000254, 68719738878, 274878431230, 1099512676350, 4398048608254, 17592190238718, 70368752566270, 281474993487870, 1125899940397054
OFFSET
0,1
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
Cf. A092431.
Sequence in context: A115112 A171074 A376072 * A050184 A263582 A034352
KEYWORD
nonn,easy
EXTENSIONS
An incorrect g.f. was deleted by N. J. A. Sloane, Sep 20 2008
STATUS
approved