n-by-n squares;
n is odd.
1 in the middle of the bottom row.
k has been placed in the (i, j) square,
k+1 into the square to the right and down, wrapping
around the borders.
However,
Here's the 5x5 square that you get if you
follow this method:
Write a program11 18 25 2 9 10 12 19 21 3 4 6 13 20 22 23 5 7 14 16 17 24 1 8 15
n and
n
if n is odd.