login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A128132
A natural number transform, companion to A127701.
11
1, -1, 2, 0, -1, 3, 0, 0, -1, 4, 0, 0, 0, -1, 5, 0, 0, 0, 0, -1, 6, 0, 0, 0, 0, 0, -1, 7, 0, 0, 0, 0, 0, 0, -1, 8, 0, 0, 0, 0, 0, 0, 0, -1, 9, 0, 0, 0, 0, 0, 0, 0, 0, -1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 12
OFFSET
1,3
COMMENTS
Binomial transform is A128133.
FORMULA
T(n,n) = n.
T(n,n-1) = -1.
T(n,k) = 0 for k <> n, n-1.
EXAMPLE
Triangle T(n,k) (with rows n >= 1 and columns k = 1..n) begins:
1;
-1, 2;
0, -1, 3;
0, 0, -1, 4;
0, 0, 0, -1, 5;
0, 0, 0, 0, -1, 6;
...
MAPLE
A128132 := proc(n, k)
if n = k then
n;
elif k = n-1 then
-1 ;
else
0 ;
end if;
end proc: # R. J. Mathar, Apr 26 2016
MATHEMATICA
{1}~Join~Table[PadLeft[{-1, n}, n], {n, 2, 12}] // Flatten (* Michael De Vlieger, Apr 26 2016 *)
CROSSREFS
KEYWORD
tabl,sign,easy
AUTHOR
Gary W. Adamson, Feb 15 2007
STATUS
approved