Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A158856
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A158856 A triangle of polynomial coefficients: p(x,n)=If[n == 0, 1, (Sum[x^i, {i, 0, Floor[(n - 1)/2] + 1}])(Sum[(-x)^i, {i, 0, Floor[n/2]}])]. +0
1
1, 1, 1, 1, 0, -1, 1, 0, 0, -1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, -1, 0, -1, 1, 0, 1, 0, 0, -1, 0, -1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, -1, 0, -1, 0, -1 (list; table; graph; listen)
OFFSET

0,1

COMMENT

Row sums are:

{1, 2, 0, 0, 3, 4, 0, 0, 5, 6, 0...}.

FORMULA

p(x,n)=If[n == 0, 1, (Sum[x^i, {i, 0, Floor[(n - 1)/2] + 1}])(Sum[(-x)^i, {i, 0, Floor[n/2]}])];

t(n,m)=coefficients(p(x,n),x)

EXAMPLE

{1},

{1, 1},

{1, 0, -1},

{1, 0, 0, -1},

{1, 0, 1, 0, 1},

{1, 0, 1, 1, 0, 1},

{1, 0, 1, 0, -1, 0, -1},

{1, 0, 1, 0, 0, -1, 0, -1},

{1, 0, 1, 0, 1, 0, 1, 0, 1},

{1, 0, 1, 0, 1, 1, 0, 1, 0, 1},

{1, 0, 1, 0, 1, 0, -1, 0, -1, 0, -1}

MATHEMATICA

Clear[p, x, n, m, a];

p[x_, n_] = If[n == 0, 1, (Sum[x^i, {i, 0, Floor[(n - 1)/2] + 1}])(Sum[(-x)^i, {i, 0, Floor[n/2]}])];

Table[ExpandAll[p[x, n]], {n, 0, 10}];

Table[CoefficientList[ExpandAll[p[x, n]], x], {n, 0, 10}];

Flatten[%]

CROSSREFS

A154957

Sequence in context: A103452 A131219 A127970 this_sequence A154957 A140865 A114000

Adjacent sequences: A158853 A158854 A158855 this_sequence A158857 A158858 A158859

KEYWORD

sign,tabl,uned

AUTHOR

Roger L. Bagula (rlbagulatftn(AT)yahoo.com), Mar 28 2009

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 December 20 16:13 EST 2009. Contains 171081 sequences.


AT&T Labs Research