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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A135351 a(n) = (2^n + 3 - 7*(-1)^n + 3*0^n)/6; or a(0) = 0 and for n > 0, a(n) = A005578(n-1) - (-1)^n. 5
0, 2, 0, 3, 2, 7, 10, 23, 42, 87, 170, 343, 682, 1367, 2730, 5463, 10922, 21847, 43690, 87383, 174762, 349527, 699050, 1398103, 2796202, 5592407, 11184810, 22369623, 44739242, 89478487, 178956970 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

G. C. Greubel, Table of n, a(n) for n = 0..1000

FORMULA

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

E.g.f: (exp(2*x)+3*exp(x)-7*exp(-x)+3)/6.

MAPLE

G(x):=x*(1/(1-2*x)+2/(1-x)+1)/2/(1+x): f[0]:=G(x): for n from 1 to 30 do f[n]:=diff(f[n-1], x) od: x:=0: seq(f[n]/n!, n=0..30);

MATHEMATICA

Join[{0}, Table[(2^n + 3 - 7*(-1)^n + 3*0^n)/6, {n, 1, 25}]] (* G. C. Greubel, Oct 11 2016 *)

PROG

(MAGMA) a135351:=func< n | (2^n+3-7*(-1)^n+3*0^n)/6 >; [ a135351(n): n in [0..32] ]; // Klaus Brockhaus, Dec 05 2009

(PARI) a(n) = (2^n + 3 - 7*(-1)^n + 3*0^n)/6; \\ Michel Marcus, Oct 11 2016

CROSSREFS

Cf. A005578, A099754.

Sequence in context: A151929 A266691 A007492 * A079451 A049799 A087985

Adjacent sequences:  A135348 A135349 A135350 * A135352 A135353 A135354

KEYWORD

easy,nonn

AUTHOR

Miklos Kristof, Dec 07 2007

EXTENSIONS

First part of definition corrected by Klaus Brockhaus, Dec 05 2009

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 15 04:00 EST 2018. Contains 317225 sequences. (Running on oeis4.)