Number of 3 X 3 matrices with elements from {0,...,n-1} such that the middle element of each of the eight lines of three (rows, columns and diagonals) is the square (mod n) of the difference of the end elements.

A059479

Number of 3 X 3 matrices with elements from {0,...,n-1} such that the middle element of each of the eight lines of three (rows, columns and diagonals) is the square (mod n) of the difference of the end elements.

Terms

    a(0) =1a(1) =4a(2) =9a(3) =64a(4) =25a(5) =36a(6) =49a(7) =256a(8) =729a(9) =100a(10) =121a(11) =576a(12) =169a(13) =196a(14) =225a(15) =4096a(16) =289a(17) =2916a(18) =361a(19) =1600a(20) =441a(21) =484a(22) =529a(23) =2304a(24) =15625a(25) =676a(26) =6561a(27) =3136a(28) =841a(29) =900

External references