![]() |
|
|
#12 |
|
"Tilman Neumann"
Jan 2016
Germany
44810 Posts |
A 7x7 with score 108 (random search result):
Code:
2 4 4 9 8 2 2 4 0 6 7 8 4 4 1 0 3 6 7 5 0 1 8 5 1 2 9 0 1 0 0 5 3 3 4 7 0 1 1 4 3 3 9 9 2 5 4 1 6 |
|
|
|
|
|
#13 |
|
Feb 2017
Nowhere
4,643 Posts |
Alas, I am no good at all at this sort of puzzle. About all that comes to mind is some generalities.
The thought did occur to me that, in order to maximize the chances of getting all possible k-digit strings, you want as many cells as possible surrounded by as many different digits as possible. There may be some "known" way of doing this. Since each cell not on the perimeter has 8 adjacent cells, it might be that you can do significantly better with octal numbers, or even a smaller base. Perhaps more is known about the binary case. |
|
|
|
|
|
#14 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
only 16 values per central value (including diagonals) so showing up in 18 times, in 2 digit numbers means each digit shows up twice under 100.
|
|
|
|
|
|
#15 |
|
"Tilman Neumann"
Jan 2016
Germany
1C016 Posts |
I improved my search algorithm and found a better 3x5 solution, a better 6x6 and added some more data.
The best non-trivial mythic rectangle solutions I know so far are: Code:
2x6: score=21
[7, 1, 1, 4, 1, 8]
[0, 2, 6, 5, 3, 9]
2x7: score=32
[9, 2, 7, 5, 2, 1, 8]
[6, 1, 1, 3, 0, 2, 4]
2x8: score=37
[8, 2, 7, 3, 6, 1, 1, 0]
[9, 1, 5, 3, 4, 2, 2, 3]
2x9: score=43
[3, 6, 2, 2, 0, 4, 1, 5, 3]
[3, 8, 1, 1, 3, 9, 2, 7, 0]
3x4: score=26
[5, 1, 0, 7]
[4, 2, 1, 8]
[2, 3, 6, 9]
3x5: score=38
[3, 4, 7, 0, 3]
[5, 1, 2, 3, 1]
[9, 2, 6, 8, 1]
3x6: score=46
[0, 9, 1, 8, 7, 2]
[3, 0, 2, 1, 3, 2]
[6, 4, 4, 5, 6, 3]
3x7: score=54
[3, 3, 6, 2, 9, 3, 1]
[2, 5, 4, 1, 2, 4, 1]
[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, 0]
[1, 0, 7, 9, 1, 4, 3]
[8, 7, 3, 9, 4, 8, 5]
[6, 3, 9, 6, 8, 6, 6]
7x7: score=108
[6, 9, 4, 5, 2, 4, 7]
[9, 6, 8, 2, 5, 9, 4]
[4, 5, 8, 8, 9, 3, 7]
[4, 7, 3, 1, 0, 7, 2]
[1, 0, 0, 5, 6, 1, 1]
[6, 0, 1, 0, 2, 1, 3]
[5, 0, 1, 1, 2, 6, 3]
Code:
x | 1 2 3 4 5 6 7 8 9 10 11 12 13 ---+------------------------------------------------------ 1 | 1 2 3 4 5 6 7 8 9 10 12 14 16 2 | 2 4 6 8 10 21 32 37 43 3 | 3 6 9 26 38 46 54 65 4 | 4 8 26 43 54 66 79 98 5 | 5 10 38 54 76 99 102 6 | 6 21 46 66 99 101 105 7 | 7 32 54 79 102 105 108 8 | 8 37 65 98 9 | 9 43 10 | 10 11 | 12 12 | 14 13 | 16 EDIT: I think that the values for mxn-rectangles are quite safe for m+n<=8 Last fiddled with by Till on 2018-08-12 at 18:26 Reason: safe values comment |
|
|
|
|
|
#16 |
|
"Tilman Neumann"
Jan 2016
Germany
26×7 Posts |
Base 2 is quite easy, I believe all maximum scores here are settled.
Code:
x | 1 2 3 4 5 6 7 8 9 10 11 ---+---------------------------------------- 1 | 1 2 3 4 4 6 7 8 8 8 14(!) 2 | 2 3 5 6 8 10 15 16 16 3 | 3 5 7 10 13 16 16 20 4 | 4 6 10 15 18 20 22 5 | 4 8 13 18 26 32 6 | 6 10 16 20 32 7 | 7 15 16 22 8 | 8 16 20 9 | 8 16 10 | 8 11 | 14(!) Nothin' found in OEIS, not even the 1xn maximum score sequence 1 2 3 4 4 6 7 8 8 8 14... Last fiddled with by Till on 2018-08-12 at 19:10 Reason: score sequence, not count sequence |
|
|
|
|
|
#17 |
|
"Tilman Neumann"
Jan 2016
Germany
26×7 Posts |
|
|
|
|
|
|
#18 | |
|
"Tilman Neumann"
Jan 2016
Germany
26×7 Posts |
Quote:
Hi science_man, I think I understand the first part: Like in Code:
2 3 4 9 1 5 8 7 6 What do you mean with "showing up in 18 times"? The last part refers to score 100? If that's true I have it incorporated in my program, and more than that, two equal digits have to be "neighbors". |
|
|
|
|
|
|
#19 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
11 12 13 14 15 16 17 18 19 21 31 41 51 61 71 81 91 18 terms in 2 digits only ,16 can be done by just 1 of a digit. It was only a basic observation. I bet a better obserbation would force most if not all placements. |
|
|
|
|
|
|
#20 |
|
"Tilman Neumann"
Jan 2016
Germany
26×7 Posts |
Ok, its the possible number of combinations. Thanks.
|
|
|
|
|
|
#21 | |
|
"Tilman Neumann"
Jan 2016
Germany
1110000002 Posts |
Quote:
Example: Code:
[0, 1, 1, 1, 1, 1] [1, 0, 0, 0, 0, 0] [1, 1, 1, 0, 1, 0] [0, 0, 0, 0, 0, 1] [0, 0, 1, 1, 0, 1] [1, 0, 0, 0, 1, 1] Code:
[1, 0, 1, 0, 0, 0, 1] [1, 1, 0, 1, 1, 0, 1] [1, 1, 0, 1, 0, 1, 0] [1, 1, 0, 1, 1, 1, 0] [0, 1, 0, 0, 1, 0, 0] [0, 1, 0, 0, 1, 1, 0] [1, 1, 0, 0, 0, 1, 1] The first 7x7 square with score 64 turned up after testing 15mio squares, nothing new within 63.7 mio square tests. Less confidence here, but still some (75% maybe). So the central term sequence might be 1, 3, 7, 15, 26, 42, 64, ... The only possible match in OEIS is A131076 then. Last fiddled with by Till on 2018-08-13 at 17:17 Reason: fixed copy-paste error |
|
|
|
|
|
|
#22 |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find the Squares | a1call | Puzzles | 18 | 2018-03-02 16:47 |
| Regarding Squares | a1call | Miscellaneous Math | 42 | 2017-02-03 01:29 |
| Counting Latin rectangles | Dougy | Math | 3 | 2010-02-16 10:20 |
| squares or not squares | m_f_h | Puzzles | 45 | 2007-06-15 17:46 |
| Prime squares/rectangles | roger | Puzzles | 10 | 2007-05-04 16:07 |