Magic Square Mathematical formula

ritmoloco's icon

Hi!

I'm building a Magic Square with 8 colums & 12 rows, as Musikalische Wurfelspiel of W.A.Mozart.
I have passed 2 hours to fill in numbers in a jit.cellblock.

Have somebody knows if there is an expresion or a mathematical formula (or object) to do this in a synthetic
way?

Thanks,

ritmoloco

Christopher Dobrian's icon

Don't mean to be flippant, but your matrix is not square. What exactly do mean by "magic square" in this context? As a general answer to question about filling a matrix algorithmically, see Jitter Tutorial 2, "Create a Matrix". (Useful for demonstrating the process, even if you don't have Jitter.)

Roman Thilenius's icon

a square of different sizes for colums and rows?
dont you mix it up with sudoku?

Francois Weber's icon

sudoku algorithmic ?

here is a solver !

ritmoloco's icon

@ Christopher, Yeah, that is truth, is not a square! Sorry , the matrix consist of 8X8. Thank for your advice I will check-up the Jitter Tutorial2

@Roman & Francois, thanks for the idea! I never understand Sudoku formula, but why not to try to do a patch from it, later?!

Thanks again you guys!