udosuk wrote:I wrote:JPF, one of your answers is not unique. Can you (or your program) spot it?
Okay, I spot it for you.
Thanks udosuk.
My program was just trying to give Min, Max for PS6, PS8 and an example for each case.
JPF
udosuk wrote:I wrote:JPF, one of your answers is not unique. Can you (or your program) spot it?
Okay, I spot it for you.
I wrote:Two new challenges:
1. Most Narrow-Ranged Square
Fill all of {1..9} into a 3x3 square. Write down the sums and products of all rows/columns/diagonals. Let
range width of sums = max sum - min sum
range width of products = max product - min product
combined range width = range width of sums + range width of products
Now find the 3x3 square with the most narrow combined range.
2. The (Almost) Anti-Magic Square
Fill all of {1..9} into a 3x3 square so that all 18 numbers from {1..18} appear either as a cell value or a sum of a row/column/diagonal. Oh wait a minute, 9+8=17 is fewer than 18 by 1... In that case one of the 18 numbers is allowed to appear as a sum of 2 corners.
Both these challenges, of course, have unique solutions (allowing reflection/rotation).
OK,udosuk here you are :udosuk wrote:Most Narrow-Ranged Square
....
JPF, if I were you I'd start writing a program to work out these nice results.
257961348
293564718
348961257
392465817
718564293
752169843
817465392
843169752
udosuk wrote:3. The (Nearly Perfect) Anti-Magic Square
This is my favourite among the 3.
2 7 3
9 1 4
6 5 8
11 17 13 15 10
12 2 7 3
14 9 1 4
19 6 5 8
18 16
udosuk wrote:2. The (Almost) Anti-Magic Square
Fill all of {1..9} into a 3x3 square so that all 18 numbers from {1..18} appear either as a cell value or a sum of a row/column/diagonal. Oh wait a minute, 9+8=17 is fewer than 18 by 1... In that case one of the 18 numbers is allowed to appear as a sum of 2 corners.
Both these challenges, of course, have unique solutions (allowing reflection/rotation).
123
456
879
123
845
976
15 13 14 18 16
6 1 2 3
15 4 5 6
24 8 7 9
JPF wrote:For example, for the first square :sum of the corners : 4,10,9,12,11,17
- Code: Select all
15 13 14 18 16
6 1 2 3
15 4 5 6
24 8 7 9
I wrote:FYI there are only 16 essentially different squares where the 8 sums of rows/columns/diagonals are all different and come within a range of 9 consecutive numbers. Good luck looking for them.
Sorry, I didn't catch the definition of a boomerangudosuk wrote:More programming chores for somebody I guess?
1 2 3
4 5 6
7 8 9
JPF wrote:Give examples with this square :
- Code: Select all
1 2 3
4 5 6
7 8 9
Thanks RW.RW wrote:If I understood udosuk's post correctly, the boomerangs are 153, 486, 426, 759, 157, 268, 248 and 359.
4 3 8
7 9 1
5 2 6
2 1 8
7 5 3
4 9 6
JPF wrote:The most difficult part of the game is to understand what udosuk wants to do