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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A051666 Rows of triangle formed using Pascal's rule except begin and end n-th row with n^2. 6
0, 1, 1, 4, 2, 4, 9, 6, 6, 9, 16, 15, 12, 15, 16, 25, 31, 27, 27, 31, 25, 36, 56, 58, 54, 58, 56, 36, 49, 92, 114, 112, 112, 114, 92, 49, 64, 141, 206, 226, 224, 226, 206, 141, 64, 81, 205, 347, 432, 450, 450, 432, 347, 205, 81, 100, 286, 552, 779, 882, 900, 882, 779 (list; table; graph; refs; listen; history; text; internal format)
OFFSET

0,4

COMMENTS

Row sums give 6*2^n - 4*n - 6 (A051667).

Central terms: T(2*n,n) = 2 * A220101(n). - Reinhard Zumkeller, Aug 05 2013

For a closed-form formula for arbitrary left and right borders of Pascal like triangle see A228196. - Boris Putievskiy, Aug 19 2013

For a closed-form formula for generalized Pascal's triangle see A228576. - Boris Putievskiy, Sep 09 2013

LINKS

Reinhard Zumkeller, Rows n = 0..100 of table, flattened

EXAMPLE

Triangle begins:

   0;

   1,  1;

   4,  2,  4;

   9,  6,  6,  9;

  16, 15, 12, 15, 16;

  ...

MATHEMATICA

T[n_, 0] := n^2; T[n_, n_] := n^2;

T[n_, k_] := T[n, k] = T[n-1, k-1] + T[n-1, k];

Table[T[n, k], {n, 0, 10}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jul 13 2018 *)

PROG

(Haskell)

a051666 n k = a051666_tabl !! n !! k

a051666_row n = a051666_tabl !! n

a051666_tabl = map fst $ iterate

   (\(vs, w:ws) -> (zipWith (+) ([w] ++ vs) (vs ++ [w]), ws))

   ([0], [1, 3 ..])

-- Reinhard Zumkeller, Aug 05 2013

CROSSREFS

Cf. A007318, A000290, A005408, A228196, A228576.

Sequence in context: A128136 A048147 A203001 * A011382 A011302 A302603

Adjacent sequences:  A051663 A051664 A051665 * A051667 A051668 A051669

KEYWORD

easy,nonn,tabl

AUTHOR

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

EXTENSIONS

More terms from James A. Sellers

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 September 21 12:35 EDT 2019. Contains 327253 sequences. (Running on oeis4.)