The not-so-magic square

Anything goes, but keep it seemly...

Postby JPF » Wed May 21, 2008 9:16 pm

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.:idea:

Thanks udosuk.
My program was just trying to give Min, Max for PS6, PS8 and an example for each case.

JPF
JPF
2017 Supporter
 
Posts: 6139
Joined: 06 December 2005
Location: Paris, France

Postby udosuk » Fri May 23, 2008 5:08 pm

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).:idea:

They say good things come in threes. So here is a 3rd challenge:


3. The (Nearly Perfect) Anti-Magic Square

Fill all of {1..9} into a 3x3 square so that all 19 numbers from {1..19} appear either as a cell value or a sum/product of a row/column/diagonal.


This is my favourite among the 3.:D

JPF, if I were you I'd start writing a program to work out these nice results.:)
udosuk
 
Posts: 2698
Joined: 17 July 2005

Postby JPF » Fri May 23, 2008 8:00 pm

udosuk wrote:Most Narrow-Ranged Square
....
JPF, if I were you I'd start writing a program to work out these nice results.:)
OK,udosuk here you are :
The solutions :
Code: Select all
257961348
293564718
348961257
392465817
718564293
752169843
817465392
843169752
all isomorphic

max sum = 16
min sum = 14
range width of sums = max sum - min sum = 2
max product = 126
min product = 54
range width of products = max product - min product = 72

combined range width = range width of sums + range width of products = 74

JPF
JPF
2017 Supporter
 
Posts: 6139
Joined: 06 December 2005
Location: Paris, France

Postby JPF » Fri May 23, 2008 9:57 pm

udosuk wrote:3. The (Nearly Perfect) Anti-Magic Square

This is my favourite among the 3.:D

Code: Select all
2 7 3
9 1 4
6 5 8

JPF
JPF
2017 Supporter
 
Posts: 6139
Joined: 06 December 2005
Location: Paris, France

Postby udosuk » Sat May 24, 2008 4:37 am

Well done JPF!:)

So two down, one to go. 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.:idea:

PS: I regard this as the 2nd sexiest pattern formed by the numbers 1..19:
Code: Select all
11 17 13 15 10
12  2  7  3
14  9  1  4
19  6  5  8
18          16

No prize for finding out the sexiest pattern.:)
udosuk
 
Posts: 2698
Joined: 17 July 2005

Postby JPF » Sat May 24, 2008 5:46 pm

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).:idea:

I'm not sure I understood what you meant.
I got many solutions.
Here are the first ones :

Code: Select all
123   
456   
879

Code: Select all
123
845
976

For example, for the first square :
Code: Select all
15 13 14 18 16
 6  1  2  3
15  4  5  6
24  8  7  9
sum of the corners : 4,10,9,12,11,17

JPF
JPF
2017 Supporter
 
Posts: 6139
Joined: 06 December 2005
Location: Paris, France

Postby udosuk » Sun May 25, 2008 5:11 am

JPF wrote:For example, for the first square :
Code: Select all
15 13 14 18 16
 6  1  2  3
15  4  5  6
24  8  7  9
sum of the corners : 4,10,9,12,11,17

It is not the answer because I only allow one sum of 2 corners to be there in the mix, and you had 4 (10,11,12,17).

Basically, you must have the 18 numbers from {1..18} as nine single cell values, eight sums of rows/columns/diagonals and one sum of 2 corners.:idea:

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.:idea:

This is relevant.:idea:
udosuk
 
Posts: 2698
Joined: 17 July 2005

Postby JPF » Mon May 26, 2008 7:52 am

Here's probably what you are looking for :
Code: Select all
374
925
618

JPF
JPF
2017 Supporter
 
Posts: 6139
Joined: 06 December 2005
Location: Paris, France

Postby udosuk » Mon May 26, 2008 8:43 am

That's correct JPF!:)

I'm still looking for other interesting 3x3 squares. Perhaps if I have a nice collection of them I can pick 9 of them to form a really special Sudoku grid.
udosuk
 
Posts: 2698
Joined: 17 July 2005

Postby udosuk » Mon May 26, 2008 6:38 pm

Got a couple more nice ones.:)


First of all, a new definition:

A boomerang is a triple of cells with one common orthogonal neighbour (orthogonal = horizontal or vertical). Alternatively, you can view a boomerang as 3 diagonally connected cells which don't form a straight line.

Within a 3x3 square, there are eight different boomerangs.:idea:


Boomerang challenge 1:

Fill all of {1..9} into a 3x3 square so that all except one of {1..24} appear as cell values or sums of rows/columns/diagonals/boomerangs. The exception must appear as the product of 2 adjacent (orthogonally or diagonally) cells.


Boomerang challenge 2:

Fill all of {1..9} into a 3x3 square so that all rows/columns/diagonals/boomerangs share the same sum as at least two other rows/columns/diagonals/boomerangs. The most repeated sum must also appear as the sum of 2 adjacent (orthogonally or diagonally) cells.


More programming chores for somebody I guess?:)
udosuk
 
Posts: 2698
Joined: 17 July 2005

Postby JPF » Mon May 26, 2008 9:19 pm

udosuk wrote:More programming chores for somebody I guess?:)
Sorry, I didn't catch the definition of a boomerang:(
Give examples with this square :
Code: Select all
1 2 3
4 5 6
7 8 9
Thanks.

JPF
JPF
2017 Supporter
 
Posts: 6139
Joined: 06 December 2005
Location: Paris, France

Postby RW » Mon May 26, 2008 10:10 pm

JPF wrote:Give examples with this square :
Code: Select all
1 2 3
4 5 6
7 8 9


If I understood udosuk's post correctly, the boomerangs are 153, 486, 426, 759, 157, 268, 248 and 359.

RW
RW
2010 Supporter
 
Posts: 1010
Joined: 16 March 2006

Postby udosuk » Tue May 27, 2008 1:44 am

RW is spot on.

Just like to add that each of my challenges without the additional 2nd rule (product/sum of 2 adjacent cells) has 2 essentially different solutions (i.e. 16 solutions overall).
udosuk
 
Posts: 2698
Joined: 17 July 2005

Postby JPF » Tue May 27, 2008 10:10 am

RW wrote:If I understood udosuk's post correctly, the boomerangs are 153, 486, 426, 759, 157, 268, 248 and 359.
Thanks RW.

The most difficult part of the game is to understand what udosuk wants to do:)

Boomerang 1 :
Code: Select all
4 3 8
7 9 1
5 2 6

Boomerang 2 :
Code: Select all
2 1 8
7 5 3
4 9 6
JPF
JPF
2017 Supporter
 
Posts: 6139
Joined: 06 December 2005
Location: Paris, France

Postby udosuk » Tue May 27, 2008 11:22 am

Well done, again!:)

JPF wrote:The most difficult part of the game is to understand what udosuk wants to do:)

I suppose so, but I bet my description are a bit easier to understand than some of the other posters in this forum (e.g. some of your countrymen).

At least RW could get it no problem. Perhaps I was using too many mathematical terms.:?:

Anyway, there is another "spin-off" of Boomerang challenge 1:


Boomerang challenge 3:

Fill all of {1..9} into a 3x3 square so that all of {1..23} appear as cell values or sums of rows/columns/diagonals/boomerangs. The most repeated sum must also appear as the sum of a broken diagonal.


Hopefully the term "broken diagonal" won't cause too much confusion. If any, consult wikipedia.:idea:
udosuk
 
Posts: 2698
Joined: 17 July 2005

PreviousNext

Return to Coffee bar