Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

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

0,12

COMMENT

Row sums are:

{1, 2, 3, 4, 8, 6, 12, 8, 16, 32, 64, 12, 24, 14, 28, 56}

FORMULA

p(x,n)=If[PrimeQ[n], Sum[x^i, {i, 0, n}], (x + 1)*p(x, n - 1)].

EXAMPLE

{1},

{1, 1},

{1, 1, 1},

{1, 1, 1, 1},

{1, 2, 2, 2, 1},

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

{1, 2, 2, 2, 2, 2, 1},

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

{1, 2, 2, 2, 2, 2, 2, 2, 1},

{1, 3, 4, 4, 4, 4, 4, 4, 3, 1},

{1, 4, 7, 8, 8, 8, 8, 8, 7, 4, 1},

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

{1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1},

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

{1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1},

{1, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 1}

MATHEMATICA

Clear[p, x, n, a];

p[x, 0] = 1; p[x, 1] = ((x + 1)); p[x, 2] = ((x^2 + x + 1));

p[x_, n_] := p[x, n] = If[PrimeQ[n], Sum[x^i, {i, 0, n}], (x + 1)*p[x, n - 1]];

a = Table[CoefficientList[FullSimplify[p[x, n]], x], {n, 0, 15}];

Flatten[a]

CROSSREFS

Sequence in context: A032548 A030597 A030599 this_sequence A102679 A025146 A067397

Adjacent sequences: A157340 A157341 A157342 this_sequence A157344 A157345 A157346

KEYWORD

nonn,tabl,uned

AUTHOR

Roger L. Bagula (rlbagulatftn(AT)yahoo.com), Feb 27 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 November 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research