Related Experiment Video
Updated: Apr 12, 2026

Author Spotlight: Investigating the Effects of Mind-Body-Movement Practices on Brain Function
Published on: January 26, 2024
Numerous but rare: an exploration of magic squares
Akimasa Kitajima1, Macoto Kikuchi2
1Research and Legislative Reference Bureau, National Diet Library, Chiyoda-ku, Tokyo, Japan; Department of Physics, Graduate School of Science, Osaka university, Toyonaka, Osaka, Japan.
Abstract:
How rare are magic squares? So far, the exact number of magic squares of order n is only known for n ≤ 5. For larger squares, we need statistical approaches for estimating the number. For this purpose, we formulated the problem as a combinatorial optimization problem and applied the Multicanonical Monte Carlo method (MMC), which has been developed in the field of computational statistical physics. Among all the possible arrangements of the numbers 1; 2, …, n(2) in an n × n square, the probability of finding a magic square decreases faster than the exponential of n. We estimated the number of magic squares for n ≤ 30. The number of magic squares for n = 30 was estimated to be 6.56(29) × 10(2056) and the corresponding probability is as small as 10(-212). Thus the MMC is effective for counting very rare configurations.
Related Concept Videos
Magical Thinking
Prismatic Beams: Problem Solving
The design begins with analyzing the beam as a free body to identify moments and force balances, thereby determining support reactions. Next, the...
Schemas
Signal Flow Graphs
In a signal-flow graph, branches denote the system's transfer functions, while nodes represent the signals. The direction of signal flow is indicated by arrows, with the corresponding...
Manipulation and Analysis
Mason's Rule
Loop gain is determined by identifying and tracing a path from a node back to itself. This involves computing the product of branch gains along the loop. Each loop's gain is crucial for further...

