![]() |
- -|
.......1
.....4....2 ...7...5...3 .....8....6 .......9 .......1 .....4....2 [COLOR=red][COLOR=black]...[/COLOR][B]3[/B][/COLOR][COLOR=black]...5...[/COLOR][B][COLOR=red]7[/B][/COLOR] .....8....6 .......9 [COLOR=red][COLOR=black]........[/COLOR][B]9[/B][/COLOR] .....4....2 [COLOR=red][COLOR=black]...[/COLOR][B]3[/B][/COLOR][COLOR=black]...5...[/COLOR][COLOR=red][B]7[/B][/COLOR] .....8....6 [COLOR=red][COLOR=black]........[/COLOR][B]1[/B][/COLOR] [COLOR=red][B] 4[/B][/COLOR] [B][COLOR=red]9 2[/COLOR][/B] [COLOR=red][B] 3[/B][/COLOR] 5 [COLOR=red][B]7[/B][/COLOR] [COLOR=red][B] 8[/B][/COLOR] [B][COLOR=red]1 6[/COLOR][/B] [COLOR=#ff0000][COLOR=red][B] 4[/B][/COLOR][B] [COLOR=red]9 2[/COLOR][/B][/COLOR] [COLOR=#ff0000][COLOR=red][B] 3[/B][/COLOR][B] 5 [COLOR=red]7[/COLOR][/B] [COLOR=red][B] 8[/B][/COLOR][B] [COLOR=red]1 6[/COLOR][/B] [/COLOR] |
use [ code ] [ / code ] tags for fixed width text.
[code] 1 2 3 4 5 6 7 8 [/code] |
OK, now what's the actual puzzle?
|
I'm sorry, I can't understand what's going on unless you start posting schizophrenic musings in broken Italian, mwxdbcr-ux
|
I see a quick algorithm to generate a 3X3 magic square.
|
[quote=petrw1;158838]I see a quick algorithm to generate a 3X3 magic square.[/quote]
So it's strictly not a puzzle. Could a mod delete this thread or move it to Misc. Math? |
[QUOTE=petrw1;158838]I see a quick algorithm to generate a 3X3 magic square.[/QUOTE]
It's well-known. I also recall one for generating an N*N magic square for odd N. Starting with 1, write successive integers in a in row running diagonally downward from the centre cell of the top row, wrapping from side to side and bottom to top as necessary. When you reach a cell you've already filled it, continue from the cell immediately below it. |
[quote=Mr. P-1;158945]Starting with 1, write successive integers in a in row running diagonally downward from the centre cell of the top row, wrapping from side to side and bottom to top as necessary.[/quote]
Don't you mean diagonally upward? Downward doesn't work. I also know methods for 4n and 4n+2. |
[QUOTE=10metreh;158992]Don't you mean diagonally upward? Downward doesn't work.[/QUOTE]
It's been a long time. |
I remember seeing the odd-magic-square recipe in a children's book long, long ago, and not being able to get it to work.
Well, I am older and more foolish now, and I still can't get it to work: I get [code] 19 25 1 7 13 24 5 6 12 18 4 10 11 17 23 9 15 16 22 3 14 20 21 2 8 [/code] which has rows summing to 65, diagonals summing to 65, but columns are wrong |
I've learned it this way (odd n):
Start at the cell just above the center cell, move to top-left and, after each set, two cells upwards. For 5x5 this gives 15 02 19 06 23 22 14 01 18 10 09 21 13 05 17 16 08 25 12 04 03 20 07 24 11 Always works. Of course there are various ways. Use google for finding out about the even ones. They're a bit more complicated. In 1997, long before I knew about the internet (okay, not too long before that), I worked hard to find a magic 6x6 square. After about 100 trials and 99 errors, I found 01 35 34 33 02 06 25 08 28 09 11 30 24 23 15 16 20 13 18 14 21 22 17 19 12 26 10 27 29 07 31 05 03 04 32 36 |
| All times are UTC. The time now is 22:13. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.