OFFSET
1,2
COMMENTS
Matrix inverse of this triangle is A155103.
EXAMPLE
Table begins:
1,
-2,1,
0,0,1,
0,-3,0,1,
0,0,0,0,1,
0,0,-4,0,0,1,
0,0,0,0,0,0,1,
0,0,0,-5,0,0,0,1,
MATHEMATICA
t[n_, k_] := Which[n == k, 1, n == 2k, -k - 1, True, 0]; Flatten[ Table[t[n, k], {n, 1, 14}, {k, 1, n}]] (* Jean-François Alcover, Jul 19 2012 *)
PROG
(PARI) T(n, k)=if(n==k, 1, if(n==2*k, -(k+1))); for(n=1, 20, for(k=1, n, print1(T(n, k), ", ")); print())
(Excel) =if(row()=column(); 1; if(and(row()>=column()*2; row()<=column()*2); -1; 0))*(row()-column()+1)
CROSSREFS
KEYWORD
sign,tabl
AUTHOR
Mats Granvik, Jan 20 2009
EXTENSIONS
Definition clarified by Mats Granvik, Dec 05 2010
STATUS
approved