login
A098878
a(n) = (2^n - 1)^3 - 2.
4
-2, -1, 25, 341, 3373, 29789, 250045, 2048381, 16581373, 133432829, 1070599165, 8577357821, 68669157373, 549554511869, 4397241253885, 35181150961661, 281462092005373, 2251748274470909, 18014192351838205
OFFSET
0,1
FORMULA
G.f.: (136*x^3-100*x^2+29*x-2) / ((x-1)*(2*x-1)*(4*x-1)*(8*x-1)). - Colin Barker, Apr 30 2013
EXAMPLE
a(2) = (2^2 - 1)^3 - 2 = 25.
MATHEMATICA
Table[(2^n - 1)^3 - 2, {n, 0, 20}] (* Stefan Steinerberger, Feb 15 2006 *)
(2^Range[0, 20]-1)^3-2 (* or *) LinearRecurrence[{15, -70, 120, -64}, {-2, -1, 25, 341}, 30] (* Harvey P. Dale, Jan 29 2016 *)
PROG
(PARI) a(n) = (2^n - 1)^3 - 2; \\ Joerg Arndt, Apr 30 2013
CROSSREFS
See A091515.
Sequence in context: A087452 A317385 A366048 * A235031 A138955 A089963
KEYWORD
sign,easy
AUTHOR
Parthasarathy Nambi, Oct 13 2004
EXTENSIONS
More terms from Stefan Steinerberger, Feb 15 2006
STATUS
approved