login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A051632 Rows of triangle formed using Pascal's rule except we begin and end the n-th row with n-2. 1
-2, -1, -1, 0, -2, 0, 1, -2, -2, 1, 2, -1, -4, -1, 2, 3, 1, -5, -5, 1, 3, 4, 4, -4, -10, -4, 4, 4, 5, 8, 0, -14, -14, 0, 8, 5, 6, 13, 8, -14, -28, -14, 8, 13, 6, 7, 19, 21, -6, -42, -42, -6, 21, 19, 7, 8, 26, 40, 15, -48, -84, -48, 15, 40, 26, 8, 9, 34, 66, 55, -33, -132, -132 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Row sums are -2.
LINKS
FORMULA
-t(n,k)=((2*k + 1 - n)/(k + 1))*Binomial[n, k] + ((1 - n + 2 (-k + n))/(1 - k + n)) Binomial[n, -k + n]. [From Roger L. Bagula, Feb 17 2009]
EXAMPLE
Contribution from Roger L. Bagula, Feb 17 2009: (Start)
The rows of the triangle, negated, are:
{2},
{1, 1},
{0, 2, 0},
{-1, 2, 2, -1},
{-2, 1, 4, 1, -2},
{-3, -1, 5,5, -1, -3},
{-4, -4, 4, 10, 4, -4, -4},
{-5, -8, 0, 14, 14, 0, -8, -5},
{-6, -13, -8, 14, 28, 14, -8, -13, -6},
{-7, -19, -21, 6, 42,42, 6, -21, -19, -7},
{-8, -26, -40, -15, 48, 84, 48, -15, -40, -26, -8} (End)
MATHEMATICA
t[n_, k_] = ((2*k + 1 - n)/(k + 1))*Binomial[n, k] + ((1 - n + 2 (-k + n))/(1 - k + n)) Binomial[n, -k + n];
Table[Table[t[n, k], {k, 0, n}], {n, 0, 10}];
Flatten[%] (* Roger L. Bagula , Feb 17 2009 *)
PROG
(Haskell)
a051632 n k = a051632_tabl !! n !! k
a051632_list = concat a051632_tabl
a051632_tabl = iterate (\rs -> zipWith (+) ([1] ++ rs) (rs ++ [1])) [-2]
-- Reinhard Zumkeller, Aug 21 2011
CROSSREFS
A156644 [From Roger L. Bagula, Feb 17 2009]
Cf. A007318.
Sequence in context: A259875 A070821 A165890 * A278700 A122821 A054009
KEYWORD
easy,nice,sign,tabl
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 11:01 EDT 2024. Contains 371936 sequences. (Running on oeis4.)