I have a few question regarding magic squares.
According to wikipedia a magic square is defined as an
n x n matrix where the rows in each direction (horizontal, vertical, diagonal) sum up to the same number, the magic constant.
When generating such a magic square what conditions need to be met?
Can I generate a magic sqaure for any number in a 4x4 square where the magic constant d is > 4? If not, how to I figure out what's the smallest number I can generate a magic square for a sqaure of a certain size?
How many combinations do exist for a magic constant d in an
n x nsquare?
What's the most efficent algorithm to find all magic squares for for a given magic constant and a given square width?
Are their certain numbers for which you can not generate a magic square (except those where
d < n)
I hope someone can clarify this for me a bit.