+---+---+---+---+---+---+---+---+
| K | | | | | | | |
+---+---+---+---+---+---+---+---+
| | | | | | | V | |
+---+---+---+---+---+---+---+---+
| | O | | | | | | |
+---+---+---+---+---+---+---+---+
| | | | | | M | | |
+---+---+---+---+---+---+---+---+
| | | | | | | | W |
+---+---+---+---+---+---+---+---+
| | | | X | | | | |
+---+---+---+---+---+---+---+---+
| | | Z | | | | | |
+---+---+---+---+---+---+---+---+
| | | | | N | | | |
+---+---+---+---+---+---+---+---+
Complete the above grid such that:
- Each of the letters K to Z represents a different integer from 1 to 16.
- Each of the columns, each of the rows and each of the main diagonals equals A.
- Each of the 16 letters from K to Z is repeated precisely four times in the above grid.
- A = P*T + R
- Z = 2*R
- N = V/3
- T = Y - (N + K)
- U = S + L
- M*Q + O + K = W + X