magicsquare6
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
magicsquare6 [2024/05/04 21:44] – [The number of magic squares of order six counted up to rotations and reflections] mino | magicsquare6 [2024/06/01 17:49] (current) – [Code corrected (2023.11.28)] mino | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== The number of magic squares of order six counted up to rotations and reflections ===== | ===== The number of magic squares of order six counted up to rotations and reflections ===== | ||
<file - nms6.txt> | <file - nms6.txt> | ||
- | 17 753 889 197 660 635 632 updated | + | 17 753 889 197 660 635 632 |
- | (17 753 889 189 701 385 264 updated | + | |
- | (17 753 889 189 701 384 304 reported on 2023.07.18.) | + | |
</ | </ | ||
- | This result is consistent with stochastic estimates 1.7745(16)·10< | + | This number has been confirmed by completing the enumeration twice using hundreds of GPUs at cloud resource rental services. Though the number and models of GPUs used varied over time, the initial enumeration took about 80,000 hours of GeForce RTX-4090 |
- | Using hundreds | + | As the result |
+ | obtained in July 2023 was found to be incorrect. More details | ||
- | Because of the extraordinary volume of the calculation, | + | The result is consistent with stochastic estimates 1.8(2)・10< |
+ | - Y. Ohishi, in Japanese, Estimation of number of solutions of 6th order magic square by random sampling, Sugei Puzzle No.177, April 1992 | ||
- K. Pinn and C. Wieczerkowski, | - K. Pinn and C. Wieczerkowski, | ||
- W. Trump, [[https:// | - W. Trump, [[https:// | ||
Line 17: | Line 17: | ||
- | ===== Errors found ===== | + | ===== Correction history |
- | In the enumeration, | + | More than thousand |
- | ==== updated | + | ==== corrected on 2023.09.07 ==== |
+ | |||
+ | During the thorough double-check, | ||
+ | |||
+ | As the result of the correction, the number increased by 960(40x24). | ||
+ | |||
+ | ==== corrected | ||
Another erroneous instance was found. It ran with an RTX-4090 for about one month and produced about 19,000 sub-subtotals. Out of those sub-subtotals, | Another erroneous instance was found. It ran with an RTX-4090 for about one month and produced about 19,000 sub-subtotals. Out of those sub-subtotals, | ||
Line 27: | Line 33: | ||
As the result of the correction, the number increased by 7 959 250 368 (331 635 432 x24). | As the result of the correction, the number increased by 7 959 250 368 (331 635 432 x24). | ||
- | ==== updated on 2023.09.07 ==== | ||
- | During the thorough double-check, | ||
- | |||
- | As the result of the correction, the number increased by 960(40x24). | ||
- | While these errors have not damaged my confidence in the logic and the code used in the calculation, | ||
- | ===== Code corrected (2023.11.30) ===== | + | ===== Code corrected (2023.11.28) ===== |
- | The code used in the initial enumeration was discovered to contain a mistake related to GPU thread synchronization. A corrected version of the code is currently running for the thorough double-check. No discrepancy due to the mistake | + | The code used in the initial enumeration was discovered to contain a mistake related to GPU thread synchronization. A corrected version of the code is used in the second enumeration. No erroneous incident caused by this mistake |
===== Subsets and subtotals ===== | ===== Subsets and subtotals ===== | ||
Line 43: | Line 44: | ||
* [[Defintion of subsets|Definition of subsets]] | * [[Defintion of subsets|Definition of subsets]] | ||
- | * [[subtotals|List of 4,329 subtotals]] (3 of subtotals are known to be incorrect, but are kept uncorrected intentionally.) | + | * [[subtotals|List of 4,329 subtotals]] |
- | * [[https:// | + | * (3 of subtotals are known to be incorrect, but are kept uncorrected intentionally.) |
+ | * [[https:// | ||
+ | * (18 of sub-subtoals are known to be incorrect, but are kept uncorrected intentionally.) | ||
===== Codes ===== | ===== Codes ===== | ||
[[strategies|Strategies in counting magic squares]] | [[strategies|Strategies in counting magic squares]] | ||
- | [[ms-20240410.cu|CUDA code]] (corrected on 2023.11.28 and updated on 2024.04.10) | + | [[ms-20240504.cu|CUDA code]] (corrected on 2023.11.28 and updated on 2024.05.04) |
* Counts magic squares of an order from 3 to 6 up to [[https:// | * Counts magic squares of an order from 3 to 6 up to [[https:// | ||
* Runs at a typical speed of 3.8G counts/sec on Nvidia GeForce RTX-4090 for order 6. | * Runs at a typical speed of 3.8G counts/sec on Nvidia GeForce RTX-4090 for order 6. | ||
Line 72: | Line 75: | ||
===== Time stamps ===== | ===== Time stamps ===== | ||
- | * CUDA code: 2023.04.10 version [[https:// | + | * CUDA code: 2023.05.04 version [[https:// |
* pthread code: 2023.09.18 version [[https:// | * pthread code: 2023.09.18 version [[https:// | ||
* [[https:// | * [[https:// | ||
--------------------------------- | --------------------------------- | ||
- | 2024/04/10\\ | + | 2024/05/31\\ |
--- // | --- // | ||
Professor emeritus, University of Yamanashi, Japan | Professor emeritus, University of Yamanashi, Japan |
magicsquare6.1714826661.txt.gz · Last modified: 2024/05/04 21:44 by mino