The 3x3 array is shorter to write down:
By using indices similar to array
A152489;
0,0,0; 0,0,1; 0,0,2; 0,1,0; 0,1,1; 0,1,2;
the columns in
A051731 are shifted like in a slot machine;
1,0,0; 1,0,0; 1,0,1; 1,1,0; 1,1,0; 1,1,1;
1,1,0; 1,1,1; 1,1,0; 1,0,0; 1,0,1; 1,0,0;
1,0,1; 1,0,0; 1,0,0; 1,1,1; 1,1,0; 1,1,0;
and the determinants are then:
1; 0; -1; -1; 0; 1;