login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A097163 Expansion of (1+x-x^2)/((1-x)*(1-4*x^2)). 3
1, 2, 5, 9, 21, 37, 85, 149, 341, 597, 1365, 2389, 5461, 9557, 21845, 38229, 87381, 152917, 349525, 611669, 1398101, 2446677, 5592405, 9786709, 22369621, 39146837, 89478485, 156587349, 357913941, 626349397, 1431655765, 2505397589 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

COMMENTS

Interleave (4*4^n-1)/2 (see A002450) and (7*4^n-1)/3 (A206374).

FORMULA

G.f.: (1+x-x^2)/((1-x)*(1-4*x^2)).

a(n) = 5*2^n/4+(-2)^n/12-1/3.

a(n) = a(n-1)+4*a(n-2)-4*a(n-3).

a(2*n) = A002450(n+1).

a(n) = A097164(n+1)/4.

a(n) = (15*2^n-(-2)^n-8)/24. [From Harvey P. Dale, June 17 2011]

MAPLE

a[0]:=0:a[1]:=1:for n from 2 to 100 do a[n]:=4*a[n-2]+4 od: seq(a[n]/4, n=2..33); - Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Mar 17 2008

MATHEMATICA

CoefficientList[Series[(1+x-x^2)/((1-x)(1-4x^2)), {x, 0, 40}], x] (* or *) LinearRecurrence[{1, 4, -4}, {1, 2, 5}, 41] (* or *) f[n_]:=(15*2^n-(-2)^n - 8)/24; Array[f, 40] (* From Harvey P. Dale, June 17 2011 *)

CROSSREFS

Sequence in context: A030137 A105309 A192572 * A117186 A155042 A001851

Adjacent sequences:  A097160 A097161 A097162 * A097164 A097165 A097166

KEYWORD

nonn,easy,changed

AUTHOR

Paul Barry (pbarry(AT)wit.ie), Jul 30 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 04:23 EST 2012. Contains 205694 sequences.