OFFSET
0,2
FORMULA
G.f.: A(x) = -3x/(4x^3 - 9x^2 + 6x - 1).
a(n) = (1/3)*(4^(n+1) - 3*n - 4).
a(n) = 3*A014825(n). - Zerinvary Lajos, Jun 27 2007
MAPLE
a:=n->sum (4^j-1, j=1..n): seq(a(n), n=0..23); # Zerinvary Lajos, Jun 27 2007
MATHEMATICA
s=0; lst={}; Do[s+=2^n-1; AppendTo[lst, s], {n, 0, 6!, 2}]; lst (* Vladimir Joseph Stephan Orlovsky, Nov 07 2008 *)
PROG
(PARI) a(n)=(1/3)*(4^(n+1)-3*n-4)
(Sage) [gaussian_binomial(n, 1, 4)-n for n in range(1, 25)] # Zerinvary Lajos, May 29 2009
(Python)
def A078904(n): return ((1<<(n+1<<1))-4)//3-n # Chai Wah Wu, Nov 12 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Dec 12 2002
EXTENSIONS
Additional formulas from Ralf Stephan, Dec 19 2002
STATUS
approved