Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A009116
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A009116 Expansion of cos(x)/exp(x). +0
18
1, -1, 0, 2, -4, 4, 0, -8, 16, -16, 0, 32, -64, 64, 0, -128, 256, -256, 0, 512, -1024, 1024, 0, -2048, 4096, -4096, 0, 8192, -16384, 16384, 0, -32768, 65536, -65536, 0, 131072, -262144, 262144, 0, -524288, 1048576, -1048576, 0, 2097152, -4194304 (list; graph; listen)
OFFSET

0,4

COMMENT

Apart from signs, generated by 1,1 position of H_2^n=[1,1;-1,1]^n; and a(n)=2^(n/2)cos(pi*n/2) - Paul Barry (pbarry(AT)wit.ie), Feb 18 2004

FORMULA

Real part of (-1-i)^n - Marc LeBrun (mlb(AT)well.com)

a(n)=-2*(a(n-1)+a(n-2)), a(0)=1, a(1)=-1 - Michael Somos

Sum_{j=0..[n/2]} (-1)^j*binomial(n, 2*j).

G.f.: (1+x)/(1+2x+2x^2). E.g.f.: cos(x)/exp(x).

a(n)= Sum_{k, 0<=k<=n}(-1)^k*A098158(n,k) . - Philippe DELEHAM (kolotoko(AT)wanadoo.fr), Dec 04 2006

a(n)*(-1)^n=A099087(n)-A099087(n-1). - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Nov 18 2007

MAPLE

A009116 := n->add((-1)^j*binomial(n, 2*j), j=0..floor(n/2));

MATHEMATICA

Cos[ x ]/Exp[ x ]

PROGRAM

(PARI) a(n)=if(n<0, 0, polcoeff((1+x)/(1+2*x+2*x^2)+x*O(x^n), n))

CROSSREFS

Cf. A009545.

Cf. A090132.

(With different signs) Row sums of triangle A104597.

Adjacent sequences: A009113 A009114 A009115 this_sequence A009117 A009118 A009119

Sequence in context: A053124 A071970 A111172 this_sequence A118434 A090132 A099211

KEYWORD

sign,easy,nice

AUTHOR

R. H. Hardin (rhh(AT)cadence.com)

EXTENSIONS

Extended with signs Mar 15 1997 by Olivier Gerard.

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified May 16 19:35 EDT 2008. Contains 139737 sequences.


AT&T Labs Research