## Sudoku and Euler

Everything about Sudoku that doesn't fit in one of the other sections

### Sudoku and Euler

[size=18]Since Sudoku was originated with Euler's Magic squares I want help from someone who can program the magic square 4 x 4 matrix ( using digits 1 to 16) where the rows , columns and diagonals add up to 42. This will be a much better game for cellfone than a 9 x 9 matrix . There are 304 solutions without rotation[/size].
arni

Posts: 10
Joined: 24 June 2005

Sorry . Made a mistake . The 4 digits should add up 34.
arni

Posts: 10
Joined: 24 June 2005

This site will let you generate all 4x4 magic squares.
scrose

Posts: 322
Joined: 31 May 2005

4*4 magic square adding to 34

8, 11, 14, 1
13, 2, 7, 12
3, 16, 9, 6
10, 5, 4, 15
paulf2127

Posts: 26
Joined: 23 May 2005

Incidentally, you don't need a program to generate 4*4 squares. There is a simple technique which you can use to generate them in your head.

Good party piece....You can just write them out and look really brainy.
paulf2127

Posts: 26
Joined: 23 May 2005

NOte the fact that as wel as the rows and columns and diagonals adding to 34......

most of the 2*2 boxes within add to 34. Also the opposite diagonals ( ie r2c1, r1c2 and r4c3, r3c4 and the other way round.
paulf2127

Posts: 26
Joined: 23 May 2005

[quote="paulf2127"]Incidentally, you don't need a program to generate 4*4 squares. There is a simple technique which you can use to generate them in your head.

Good party piece....You can just write them out and look really brainy.[/quote]

Arni
arni

Posts: 10
Joined: 24 June 2005

[quote="scrose"]This [url=http://www.faust.fr.bw.schule.de/mhb/backtrack/mag4en.htm]site[/url] will let you generate all 4x4 magic squares.[/quote]