OFFSET
0,1
FORMULA
Number triangle T(n, k)=if(n=k, 1, 0) OR if(n=2k+1, -1, 0).
EXAMPLE
Triangle begins:
1;
-1, 1;
0, 0, 1;
0, -1, 0, 1;
0, 0, 0, 0, 1;
0, 0, -1, 0, 0, 1;
0, 0, 0, 0, 0, 0, 1;
0, 0, 0, -1, 0, 0, 0, 1;
0, 0, 0, 0, 0, 0, 0, 0, 1;
0, 0, 0, 0, -1, 0, 0, 0, 0, 1;
...
PROG
(PARI) tabl(nn) = {T = matrix(nn, nn, n, k, n--; k--; if ((n==k), 1, if (n==2*k+1, -1, 0))); for (n=1, nn, for (k=1, n, print1(T[n, k], ", "); ); print(); ); } \\ Michel Marcus, Mar 28 2015
CROSSREFS
KEYWORD
AUTHOR
Paul Barry, Jan 21 2006
STATUS
approved