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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A157343 Triangle T(n,k) read by rows: T(n,k)=1 if the row index n is prime or <=1, otherwise T(n,k) = T(n-1,k)+T(n-1,k-1). 0
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; refs; listen; history; internal format)
OFFSET

0,12

COMMENTS

Row sums are: 1, 2, 3, 4, 8, 6, 12, 8, 16, 32, 64, 12, 24, 14, 28, 56,...

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 * A102679 A025146 A067397

Adjacent sequences:  A157340 A157341 A157342 * A157344 A157345 A157346

KEYWORD

nonn,tabl,easy

AUTHOR

Roger L. Bagula (rlbagulatftn(AT)yahoo.com), Feb 27 2009

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 17 16:00 EST 2012. Contains 206050 sequences.