A094184 Triangle read by rows in which each term equals the entry above minus the entry left plus twice the entry left-above.
1, 1, 1, 1, 2, 0, 1, 3, 1, -1, 1, 4, 3, -2, 0, 1, 5, 6, -2, -2, 2, 1, 6, 10, 0, -6, 4, 0, 1, 7, 15, 5, -11, 3, 5, -5, 1, 8, 21, 14, -15, -4, 15, -10, 0, 1, 9, 28, 28, -15, -19, 26, -6, -14, 14, 1, 10, 36, 48, -7, -42, 30, 16, -42, 28, 0, 1, 11, 45, 75, 14, -70, 16, 60, -70, 14, 42, -42, 1, 12, 55, 110, 54, -96, -28, 120, -70, -56, 126, -84, 0, 1
Offset: 0
Examples
Table starts {1},{1,1},{1,2,0},{1,3,1,-1},{1,4,3,-2,0},{1,5,6,-2,-2,2}
Programs
-
Mathematica
T[, 0]:=1;T[0, 0]:=1;T[i, j_]/;j>i:=0;T[i_, j_]:=T[i, j]=T[i-1, j]-T[i, j-1]+2 T[i-1, j-1]
Formula
T(i, j)=T(i-1, j)-T(i, j-1)+2*T(i-1, j-1), with T(i, 0)=1 and T(i, j)=0 if j>i.
Comments