PROGRAMMING:upper right
upper right
###Input format:
The magic square of order n consists of the first n × An n-order square matrix composed of n natural numbers, the sum of N numbers contained in each row, column and two diagonal lines is equal.
Now, please use the following method to construct an odd magic square of order n named "upper right":
1: Place 1 in the middle column of the first row;
2: From 2 until n × n. The numbers are stored according to the following rules:
① Each number is stored at the top right of the previous number;
② If the range of row and column is beyond the range of matrix, wrap around it. For example, if 1 is in the first row, then 2 should be placed in the last row, and the number of columns is also increased by 1;
③ If there is a number in the position determined by the above rules, or the previous number is the first row and the nth column, the next number will be placed below the previous number.
If you still don't understand, please refer to the example.
###Output format:
For each group of data, output n-order magic square, each number occupies 4 spaces, right aligned 2
three
five
###Input example:
Here is a set of inputs. For example:
```in
two
three
five
```
###Output example:
The corresponding output is given here. For example:
```out
8 1 6
3 5 7
4 9 2
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
```
answer:If there is no answer, please comment
###Input format:
The magic square of order n consists of the first n × An n-order square matrix composed of n natural numbers, the sum of N numbers contained in each row, column and two diagonal lines is equal.
Now, please use the following method to construct an odd magic square of order n named "upper right":
1: Place 1 in the middle column of the first row;
2: From 2 until n × n. The numbers are stored according to the following rules:
① Each number is stored at the top right of the previous number;
② If the range of row and column is beyond the range of matrix, wrap around it. For example, if 1 is in the first row, then 2 should be placed in the last row, and the number of columns is also increased by 1;
③ If there is a number in the position determined by the above rules, or the previous number is the first row and the nth column, the next number will be placed below the previous number.
If you still don't understand, please refer to the example.
###Output format:
For each group of data, output n-order magic square, each number occupies 4 spaces, right aligned 2
three
five
###Input example:
Here is a set of inputs. For example:
```in
two
three
five
```
###Output example:
The corresponding output is given here. For example:
```out
8 1 6
3 5 7
4 9 2
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
```
answer:If there is no answer, please comment