http://mathworld.wolfram.com/PanmagicSquare.html
http://www.rimath.saitama-u.ac.jp/lab.jp/tsakurai/MagicSquare/PanMagic.pdf
http://www.daido-it.ac.jp/~oishi/TH5/ms4/ms4c.html
1 8 11 14
12 13 2 7
6 3 16 9
15 10 5 4
1 12 7 14
8 13 2 11
10 3 16 5
15 6 9 4
1 14 7 12
8 11 2 13
10 5 16 3
15 4 9 6
1 15 6 12
8 10 3 13
11 5 16 2
14 4 9 7
2 7 12 13
11 14 1 8
5 4 15 10
16 9 6 3
2 11 8 13
7 14 1 12
9 4 15 6
16 5 10 3
2 13 8 11
7 12 1 14
9 6 15 4
16 3 10 5
2 16 5 11
7 9 4 14
12 6 15 1
13 3 10 8
3 13 8 10
6 12 1 15
9 7 14 4
16 2 11 5
3 16 5 10
6 9 4 15
12 7 14 1
13 2 11 8
4 14 7 9
5 11 2 16
10 8 13 3
15 1 12 6
4 15 6 9
5 10 3 16
11 8 13 2
14 1 12 7
5 4 15 10
16 9 6 3
2 7 12 13
11 14 1 8
5 16 3 10
4 9 6 15
14 7 12 1
11 2 13 8
6 3 16 9
15 10 5 4
1 8 11 14
12 13 2 7
6 15 4 9
3 10 5 16
13 8 11 2
12 1 14 7
1 8 13 12
14 11 2 7
4 5 16 9
15 10 3 6
1 8 13 12
15 10 3 6
4 5 16 9
14 11 2 7
1 12 13 8
14 7 2 11
4 9 16 5
15 6 3 10
1 12 13 8
15 6 3 10
4 9 16 5
14 7 2 11
1 14 11 8
15 4 5 10
6 9 16 3
12 7 2 13
1 14 11 8
12 7 2 13
6 9 16 3
15 4 5 10
1 15 10 8
14 4 5 11
7 9 16 2
12 6 3 13
1 15 10 8
12 6 3 13
7 9 16 2
14 4 5 11
2 7 14 11
13 12 1 8
3 6 15 10
16 9 4 5
2 7 14 11
16 9 4 5
3 6 15 10
13 12 1 8
2 11 14 7
16 5 4 9
3 10 15 6
13 8 1 12
2 11 14 7
13 8 1 12
3 10 15 6
16 5 4 9
2 13 12 7
16 3 6 9
5 10 15 4
11 8 1 14
2 13 12 7
11 8 1 14
5 10 15 4
16 3 6 9
2 16 9 7
13 3 6 12
8 10 15 1
11 5 4 14
2 16 9 7
11 5 4 14
8 10 15 1
13 3 6 12
3 6 15 10
13 12 1 8
2 7 14 11
16 9 4 5
3 6 15 10
16 9 4 5
2 7 14 11
13 12 1 8
3 10 15 6
13 8 1 12
2 11 14 7
16 5 4 9
3 10 15 6
16 5 4 9
2 11 14 7
13 8 1 12
3 13 12 6
16 2 7 9
5 11 14 4
10 8 1 15
3 13 12 6
10 8 1 15
5 11 14 4
16 2 7 9
3 16 9 6
13 2 7 12
8 11 14 1
10 5 4 15
3 16 9 6
10 5 4 15
8 11 14 1
13 2 7 12
4 5 16 9
15 10 3 6
1 8 13 12
14 11 2 7
4 5 16 9
14 11 2 7
1 8 13 12
15 10 3 6
4 9 16 5
15 6 3 10
1 12 13 8
14 7 2 11
4 9 16 5
14 7 2 11
1 12 13 8
15 6 3 10
4 14 11 5
15 1 8 10
6 12 13 3
9 7 2 16
4 14 11 5
9 7 2 16
6 12 13 3
15 1 8 10
4 15 10 5
9 6 3 16
7 12 13 2
14 1 8 11
4 15 10 5
14 1 8 11
7 12 13 2
9 6 3 16
1-4-14-15 |
1-6-12-15 |
1-7-12-14 |
1-8-10-15 |
1-8-11-14 |
1-8-12-13
|
1 |
8 |
10 |
15
|
12 |
13 |
3 |
6
|
7 |
2 |
16 |
9
|
14 |
11 |
5 |
4
|
|
1 |
8 |
10 |
15
|
14 |
11 |
5 |
4
|
7 |
2 |
16 |
9
|
12 |
13 |
3 |
6
|
|
|
|
1 |
15 |
10 |
8
|
12 |
6 |
3 |
13
|
7 |
9 |
16 |
2
|
14 |
4 |
5 |
11
|
|
1 |
15 |
10 |
8
|
14 |
4 |
5 |
11
|
7 |
9 |
16 |
2
|
12 |
6 |
3 |
13
|
|
1 |
8 |
11 |
14
|
12 |
13 |
2 |
7
|
6 |
3 |
16 |
9
|
15 |
10 |
5 |
4
|
|
|
1 |
8 |
11 |
14
|
15 |
10 |
5 |
4
|
6 |
3 |
16 |
9
|
12 |
13 |
2 |
7
|
|
1 |
14 |
11 |
8
|
12 |
7 |
2 |
13
|
6 |
9 |
16 |
3
|
15 |
4 |
5 |
10
|
|
|
1 |
14 |
11 |
8
|
15 |
4 |
5 |
10
|
6 |
9 |
16 |
3
|
12 |
7 |
2 |
13
|
|
|
1 |
8 |
13 |
12
|
14 |
11 |
2 |
7
|
4 |
5 |
16 |
9
|
15 |
10 |
3 |
6
|
|
1 |
8 |
13 |
12
|
15 |
10 |
3 |
6
|
4 |
5 |
16 |
9
|
14 |
11 |
2 |
7
|
|
1 |
12 |
13 |
8
|
14 |
7 |
2 |
11
|
4 |
9 |
16 |
5
|
15 |
6 |
3 |
10
|
|
1 |
12 |
13 |
8
|
15 |
6 |
3 |
10
|
4 |
9 |
16 |
5
|
14 |
7 |
2 |
11
|
|
2-3-13-16 |
2-5-11-16 |
2-7-9-16 |
2-7-11-14 |
2-7-12-13 |
2-8-11-13
|
2 |
7 |
9 |
16
|
11 |
14 |
4 |
5
|
8 |
1 |
15 |
10
|
13 |
12 |
6 |
3
|
|
2 |
7 |
9 |
16
|
13 |
12 |
6 |
3
|
8 |
1 |
15 |
10
|
11 |
14 |
4 |
5
|
|
|
2 |
16 |
9 |
7
|
13 |
3 |
6 |
12
|
8 |
10 |
15 |
1
|
11 |
5 |
4 |
14
|
|
2 |
16 |
9 |
7
|
11 |
5 |
4 |
14
|
8 |
10 |
15 |
1
|
13 |
3 |
6 |
12
|
|
2 |
7 |
12 |
13
|
11 |
14 |
1 |
8
|
5 |
4 |
15 |
10
|
16 |
9 |
6 |
3
|
|
|
2 |
13 |
12 |
7
|
11 |
8 |
1 |
14
|
5 |
10 |
15 |
4
|
16 |
3 |
6 |
9
|
|
2 |
13 |
12 |
7
|
16 |
3 |
6 |
9
|
5 |
10 |
15 |
4
|
11 |
8 |
1 |
14
|
|
|
2 |
7 |
12 |
13
|
16 |
9 |
6 |
3
|
5 |
4 |
15 |
10
|
11 |
14 |
1 |
8
|
|
|
2 |
7 |
14 |
11
|
13 |
12 |
1 |
8
|
3 |
6 |
15 |
10
|
16 |
9 |
4 |
5
|
|
2 |
11 |
14 |
7
|
13 |
8 |
1 |
12
|
3 |
10 |
15 |
6
|
16 |
5 |
4 |
9
|
|
|
2 |
11 |
14 |
7
|
16 |
5 |
4 |
9
|
3 |
10 |
15 |
6
|
13 |
8 |
1 |
12
|
|
2 |
7 |
14 |
11
|
16 |
9 |
4 |
5
|
3 |
6 |
15 |
10
|
13 |
12 |
1 |
8
|
|
3-5-10-16 |
3-6-9-16 |
3-6-10-15 |
3-6-12-13 |
3-8-10-13 |
6-7-9-12
|
3 |
6 |
15 |
10
|
13 |
12 |
1 |
8
|
2 |
7 |
14 |
11
|
16 |
9 |
4 |
5
|
|
3 |
10 |
15 |
6
|
13 |
8 |
1 |
12
|
2 |
11 |
14 |
7
|
16 |
5 |
4 |
9
|
|
|
3 |
10 |
15 |
6
|
16 |
5 |
4 |
9
|
2 |
11 |
14 |
7
|
13 |
8 |
1 |
12
|
|
3 |
6 |
15 |
10
|
16 |
9 |
4 |
5
|
2 |
7 |
14 |
11
|
13 |
12 |
1 |
8
|
|
3 |
13 |
8 |
10
|
6 |
12 |
1 |
15
|
9 |
7 |
14 |
4
|
16 |
2 |
11 |
5
|
|
|
3 |
13 |
8 |
10
|
16 |
2 |
11 |
5
|
9 |
7 |
14 |
4
|
6 |
12 |
1 |
15
|
|
6 |
15 |
1 |
12
|
9 |
4 |
14 |
7
|
16 |
5 |
11 |
12
|
3 |
10 |
8 |
13
|
|
|
6 |
15 |
1 |
12
|
3 |
10 |
8 |
13
|
16 |
5 |
11 |
12
|
9 |
4 |
14 |
7
|
|
|
9 |
4 |
15 |
6
|
7 |
14 |
1 |
12
|
2 |
11 |
8 |
13
|
16 |
5 |
10 |
3
|
|
3 |
16 |
5 |
10
|
13 |
2 |
11 |
8
|
12 |
7 |
14 |
1
|
6 |
9 |
4 |
15
|
|
|
3 |
16 |
5 |
10
|
6 |
9 |
4 |
15
|
12 |
7 |
14 |
1
|
13 |
2 |
11 |
8
|
|
9 |
4 |
15 |
6
|
16 |
5 |
10 |
3
|
2 |
11 |
8 |
13
|
7 |
14 |
1 |
12
|
|
4-5-9-16 |
4-5-10-15 |
4-5-11-14 |
4-6-9-15 |
4-7-9-14 |
5-8-10-11
|
|
4 |
9 |
16 |
5
|
14 |
7 |
2 |
11
|
1 |
12 |
13 |
8
|
15 |
6 |
3 |
10
|
|
4 |
9 |
16 |
5
|
15 |
6 |
3 |
10
|
1 |
12 |
13 |
8
|
14 |
7 |
2 |
11
|
|
4 |
5 |
16 |
9
|
14 |
11 |
2 |
7
|
1 |
8 |
13 |
12
|
15 |
10 |
3 |
6
|
|
4 |
5 |
16 |
9
|
15 |
10 |
3 |
6
|
1 |
8 |
13 |
12
|
14 |
11 |
2 |
7
|
|
4 |
14 |
7 |
9
|
15 |
1 |
12 |
6
|
10 |
8 |
13 |
3
|
5 |
11 |
2 |
16
|
|
|
5 |
16 |
2 |
11
|
10 |
3 |
13 |
8
|
15 |
6 |
12 |
1
|
4 |
9 |
7 |
14
|
|
4 |
14 |
7 |
9
|
5 |
11 |
2 |
16
|
10 |
8 |
13 |
3
|
15 |
1 |
12 |
6
|
|
5 |
16 |
2 |
11
|
4 |
9 |
7 |
14
|
15 |
6 |
12 |
1
|
10 |
3 |
13 |
8
|
|
4 |
15 |
6 |
9
|
14 |
1 |
12 |
7
|
11 |
8 |
13 |
2
|
5 |
10 |
3 |
16
|
|
5 |
16 |
3 |
10
|
11 |
2 |
13 |
8
|
14 |
7 |
12 |
1
|
4 |
9 |
6 |
15
|
|
|
|
4 |
15 |
6 |
9
|
5 |
10 |
3 |
16
|
11 |
8 |
13 |
2
|
14 |
1 |
12 |
7
|
|
5 |
16 |
3 |
10
|
4 |
9 |
6 |
15
|
14 |
7 |
12 |
1
|
11 |
2 |
13 |
8
|
|
1 |
14 |
4 |
15 |
1 |
14 |
4
|
8 |
11 |
5 |
10 |
8 |
11 |
5
|
13 |
2 |
16 |
3 |
13 |
2 |
16
|
12 |
7 |
9 |
6 |
12 |
7 |
9
|
1 |
14 |
4 |
15 |
1 |
14 |
4
|
8 |
11 |
5 |
10 |
8 |
11 |
5
|
13 |
2 |
16 |
3 |
13 |
2 |
16
|
|
4 |
14 |
1 |
15 |
4 |
14 |
1
|
5 |
11 |
8 |
10 |
5 |
11 |
8
|
16 |
2 |
13 |
3 |
16 |
2 |
13
|
9 |
7 |
12 |
6 |
9 |
7 |
12
|
4 |
14 |
1 |
15 |
4 |
14 |
1
|
5 |
11 |
8 |
10 |
5 |
11 |
8
|
16 |
2 |
13 |
3 |
16 |
2 |
13
|
|
4 |
5 |
16 |
9 |
4 |
5 |
16
|
14 |
11 |
2 |
7 |
14 |
11 |
2
|
1 |
8 |
13 |
12 |
1 |
8 |
13
|
15 |
10 |
3 |
6 |
15 |
10 |
3
|
4 |
5 |
16 |
9 |
4 |
5 |
16
|
14 |
11 |
2 |
7 |
14 |
11 |
2
|
1 |
8 |
13 |
12 |
1 |
8 |
13
|
|
16 |
5 |
4 |
9 |
16 |
5 |
4
|
2 |
11 |
14 |
7 |
2 |
11 |
14
|
13 |
8 |
1 |
12 |
13 |
8 |
1
|
3 |
10 |
15 |
6 |
3 |
10 |
15
|
16 |
5 |
4 |
9 |
16 |
5 |
4
|
2 |
11 |
14 |
7 |
2 |
11 |
14
|
13 |
8 |
1 |
12 |
13 |
8 |
1
|
|
→
1 |
8 |
13 |
12 |
1 |
8 |
13
|
14 |
11 |
2 |
7 |
14 |
11 |
2
|
4 |
5 |
16 |
9 |
4 |
5 |
16
|
15 |
10 |
3 |
6 |
15 |
10 |
3
|
1 |
8 |
13 |
12 |
1 |
8 |
13
|
14 |
11 |
2 |
7 |
14 |
11 |
2
|
4 |
5 |
16 |
9 |
4 |
5 |
16
|
|
←
13 |
8 |
1 |
12 |
13 |
8 |
1
|
2 |
11 |
14 |
7 |
2 |
11 |
14
|
16 |
5 |
4 |
9 |
16 |
5 |
4
|
3 |
10 |
15 |
6 |
3 |
10 |
15
|
13 |
8 |
1 |
12 |
13 |
8 |
1
|
2 |
11 |
14 |
7 |
2 |
11 |
14
|
16 |
5 |
4 |
9 |
16 |
5 |
4
|
|
→
13 |
2 |
16 |
3 |
13 |
2 |
16
|
8 |
11 |
5 |
10 |
8 |
11 |
5
|
1 |
14 |
4 |
15 |
1 |
14 |
4
|
12 |
7 |
9 |
6 |
12 |
7 |
9
|
13 |
2 |
16 |
3 |
13 |
2 |
16
|
8 |
11 |
5 |
10 |
8 |
11 |
5
|
1 |
14 |
4 |
15 |
1 |
14 |
4
|
|
←
16 |
2 |
13 |
3 |
16 |
2 |
13
|
5 |
11 |
8 |
10 |
5 |
11 |
8
|
4 |
14 |
1 |
15 |
4 |
14 |
1
|
9 |
7 |
12 |
6 |
9 |
7 |
12
|
16 |
2 |
13 |
3 |
16 |
2 |
13
|
5 |
11 |
8 |
10 |
5 |
11 |
8
|
4 |
14 |
1 |
15 |
4 |
14 |
1
|
|
1 |
12 |
6 |
15 |
1 |
12 |
6
|
8 |
13 |
3 |
10 |
8 |
13 |
3
|
11 |
2 |
16 |
5 |
11 |
2 |
16
|
14 |
7 |
9 |
4 |
14 |
7 |
9
|
1 |
12 |
6 |
15 |
1 |
12 |
6
|
8 |
13 |
3 |
10 |
8 |
13 |
3
|
11 |
2 |
16 |
5 |
11 |
2 |
16
|
|
6 |
12 |
1 |
15 |
6 |
12 |
1
|
3 |
13 |
8 |
10 |
3 |
13 |
8
|
16 |
2 |
11 |
5 |
16 |
2 |
11
|
9 |
7 |
14 |
4 |
9 |
7 |
14
|
6 |
12 |
1 |
15 |
6 |
12 |
1
|
3 |
13 |
8 |
10 |
3 |
13 |
8
|
16 |
2 |
11 |
5 |
16 |
2 |
11
|
|
6 |
3 |
16 |
9 |
6 |
3 |
16
|
12 |
13 |
2 |
7 |
12 |
13 |
2
|
1 |
8 |
11 |
14 |
1 |
8 |
11
|
15 |
10 |
5 |
4 |
15 |
10 |
5
|
6 |
3 |
16 |
9 |
6 |
3 |
16
|
12 |
13 |
2 |
7 |
12 |
13 |
2
|
1 |
8 |
11 |
14 |
1 |
8 |
11
|
|
16 |
3 |
6 |
9 |
16 |
3 |
6
|
2 |
13 |
12 |
7 |
2 |
13 |
12
|
11 |
8 |
1 |
14 |
11 |
8 |
1
|
5 |
10 |
15 |
4 |
5 |
10 |
15
|
16 |
3 |
6 |
9 |
16 |
3 |
6
|
2 |
13 |
12 |
7 |
2 |
13 |
12
|
11 |
8 |
1 |
14 |
11 |
8 |
1
|
|
→
1 |
8 |
11 |
14 |
1 |
8 |
11
|
12 |
13 |
2 |
7 |
12 |
13 |
2
|
6 |
3 |
16 |
9 |
6 |
3 |
16
|
15 |
10 |
5 |
4 |
15 |
10 |
5
|
1 |
8 |
11 |
14 |
1 |
8 |
11
|
12 |
13 |
2 |
7 |
12 |
13 |
2
|
6 |
3 |
16 |
9 |
6 |
3 |
16
|
|
←
11 |
8 |
1 |
14 |
11 |
8 |
1
|
2 |
13 |
12 |
7 |
2 |
13 |
12
|
16 |
3 |
6 |
9 |
16 |
3 |
6
|
5 |
10 |
15 |
4 |
5 |
10 |
15
|
11 |
8 |
1 |
14 |
11 |
8 |
1
|
2 |
13 |
12 |
7 |
2 |
13 |
12
|
16 |
3 |
6 |
9 |
16 |
3 |
6
|
|
→
11 |
2 |
16 |
5 |
11 |
2 |
16
|
8 |
13 |
3 |
10 |
8 |
13 |
3
|
1 |
12 |
6 |
15 |
1 |
12 |
6
|
14 |
7 |
9 |
4 |
14 |
7 |
9
|
11 |
2 |
16 |
5 |
11 |
2 |
16
|
8 |
13 |
3 |
10 |
8 |
13 |
3
|
1 |
12 |
6 |
15 |
1 |
12 |
6
|
|
←
16 |
2 |
11 |
5 |
16 |
2 |
11
|
3 |
13 |
8 |
10 |
3 |
13 |
8
|
6 |
12 |
1 |
15 |
6 |
12 |
1
|
9 |
7 |
14 |
4 |
9 |
7 |
14
|
16 |
2 |
11 |
5 |
16 |
2 |
11
|
3 |
13 |
8 |
10 |
3 |
13 |
8
|
6 |
12 |
1 |
15 |
6 |
12 |
1
|
|
1 |
8 |
10 |
15 |
1 |
8 |
10
|
12 |
13 |
3 |
6 |
12 |
13 |
3
|
7 |
2 |
16 |
9 |
7 |
2 |
16
|
14 |
11 |
5 |
4 |
14 |
11 |
5
|
1 |
8 |
10 |
15 |
1 |
8 |
10
|
12 |
13 |
3 |
6 |
12 |
13 |
3
|
7 |
2 |
16 |
9 |
7 |
2 |
16
|
|
10 |
8 |
1 |
15 |
10 |
8 |
1
|
3 |
13 |
12 |
6 |
3 |
13 |
12
|
16 |
2 |
7 |
9 |
16 |
2 |
7
|
5 |
11 |
14 |
4 |
5 |
11 |
14
|
10 |
8 |
1 |
15 |
10 |
8 |
1
|
3 |
13 |
12 |
6 |
3 |
13 |
12
|
16 |
2 |
7 |
9 |
16 |
2 |
7
|
|
10 |
3 |
16 |
5 |
10 |
3 |
16
|
8 |
13 |
2 |
11 |
8 |
13 |
2
|
1 |
12 |
7 |
14 |
1 |
12 |
7
|
15 |
6 |
9 |
4 |
15 |
6 |
9
|
10 |
3 |
16 |
5 |
10 |
3 |
16
|
8 |
13 |
12 |
11 |
8 |
13 |
12
|
1 |
12 |
7 |
14 |
1 |
12 |
7
|
|
16 |
3 |
10 |
5 |
16 |
3 |
10
|
2 |
13 |
8 |
11 |
2 |
13 |
8
|
7 |
12 |
1 |
14 |
7 |
12 |
1
|
9 |
6 |
15 |
4 |
9 |
6 |
15
|
16 |
3 |
10 |
5 |
16 |
3 |
10
|
2 |
13 |
8 |
11 |
2 |
13 |
8
|
7 |
12 |
1 |
14 |
7 |
12 |
1
|
|
→
1 |
12 |
7 |
14 |
1 |
12 |
7
|
8 |
13 |
2 |
11 |
8 |
13 |
12
|
10 |
3 |
16 |
5 |
10 |
3 |
16
|
15 |
6 |
9 |
4 |
15 |
6 |
9
|
1 |
12 |
7 |
14 |
1 |
12 |
7
|
8 |
13 |
2 |
11 |
8 |
13 |
12
|
10 |
3 |
16 |
5 |
10 |
3 |
16
|
|
←
7 |
12 |
1 |
14 |
7 |
12 |
1
|
2 |
13 |
8 |
11 |
2 |
13 |
8
|
16 |
3 |
10 |
5 |
16 |
3 |
10
|
9 |
6 |
15 |
4 |
9 |
6 |
15
|
7 |
12 |
1 |
14 |
7 |
12 |
1
|
2 |
13 |
8 |
11 |
2 |
13 |
8
|
16 |
3 |
10 |
5 |
16 |
3 |
10
|
|
→
7 |
2 |
16 |
9 |
7 |
2 |
16
|
12 |
13 |
3 |
6 |
12 |
13 |
3
|
1 |
8 |
10 |
15 |
1 |
8 |
10
|
14 |
11 |
5 |
4 |
14 |
11 |
5
|
7 |
2 |
16 |
9 |
7 |
2 |
16
|
12 |
13 |
3 |
6 |
12 |
13 |
3
|
1 |
8 |
10 |
15 |
1 |
8 |
10
|
|
←
16 |
2 |
7 |
9 |
16 |
2 |
7
|
3 |
13 |
12 |
6 |
3 |
13 |
12
|
10 |
8 |
1 |
15 |
10 |
8 |
1
|
5 |
11 |
14 |
4 |
5 |
11 |
14
|
16 |
2 |
7 |
9 |
16 |
2 |
7
|
3 |
13 |
12 |
6 |
3 |
13 |
12
|
10 |
8 |
1 |
15 |
10 |
8 |
1
|
|