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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A051599 Rows of triangle formed using Pascal's rule except begin and end n-th row with (n+1)st prime. 4
2, 3, 3, 5, 6, 5, 7, 11, 11, 7, 11, 18, 22, 18, 11, 13, 29, 40, 40, 29, 13, 17, 42, 69, 80, 69, 42, 17, 19, 59, 111, 149, 149, 111, 59, 19, 23, 78, 170, 260, 298, 260, 170, 78, 23, 29, 101, 248, 430, 558, 558, 430, 248, 101, 29, 31, 130, 349, 678, 988, 1116, 988, 678, 349, 130, 31 (list; table; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Vincenzo Librandi, Rows n = 0..100, flattened

Index entries for triangles and arrays related to Pascal's triangle

EXAMPLE

Triangle begins:

2;

3,  3;

5,  6,   5;

7,  11,  11,  7;

11, 18,  22,  18,  11;

13, 29,  40,  40,  29,  13;

17, 42,  69,  80,  69,  42,   17;

19, 59,  111, 149, 149, 111,  59,  19;

23, 78,  170, 260, 298, 260,  170, 78,  23;

29, 101, 248, 430, 558, 558,  430, 248, 101, 29;

31, 130, 349, 678, 988, 1116, 988, 678, 349, 130, 31;

MATHEMATICA

t = {}; Do[r = {}; Do[If[k == 0 || k == n, m = Prime[n + 1], m = t[[n, k]] + t[[n, k + 1]]]; r = AppendTo[r, m], {k, 0, n}]; AppendTo[t, r], {n, 0, 10}]; t (* T. D. Noe, Jul 31 2013 *)

PROG

(Haskell)

a051599 n k = a051599_tabl !! n !! k

a051599_row n = a051599_tabl !! n

a051599_tabl = map fst $ iterate f ([2], a001223_list) where

   f (row, (d:ds)) =  (zipWith (+) ([d] ++ row) (row ++ [d]), ds)

-- Reinhard Zumkeller, Nov 23 2012

CROSSREFS

Cf. A001223; A000040 (left and right edges), A053210 (row sums).

Sequence in context: A141419 A072451 A023156 * A207292 A064464 A094585

Adjacent sequences:  A051596 A051597 A051598 * A051600 A051601 A051602

KEYWORD

easy,nonn,tabl

AUTHOR

Asher Auel (asher.auel(AT)reed.edu)

EXTENSIONS

Corrected by James A. Sellers, Dec 15 1999

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
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 25 12:01 EDT 2019. Contains 324352 sequences. (Running on oeis4.)