TOPICS
Search

Peg


Pegs

The peg problem asks whether a round peg in a square hole fits better than a square peg in a round hole. This compares the ratio of the area of a circle to its circumscribed square with the ratio of the area of a square to its circumscribed circle. In two dimensions, the ratios are pi/4 approx 0.785398 and 2/pi approx 0.636620, respectively. Therefore, a round peg fits better into a square hole than a square peg fits into a round hole (Wells 1986, p. 74).

PegRatio

This result holds in dimensions 2<=n<=8. For n>=9, the n-hypercube fits more closely into the n-ball than vice versa, while the two ratios are equal for n=1 (Singmaster 1964; Wells 1986, p. 74). This can be demonstrated by noting that the formulas for the content V(n) of the unit n-ball, the content V_c(n) of its circumscribed hypercube, and the content V_i(n) of its inscribed hypercube are given by

V(n)=(pi^(n/2))/(Gamma(1/2n+1))
(1)
V_c(n)=2^n
(2)
V_i(n)=(2^n)/(n^(n/2)).
(3)

where Gamma(x) is the gamma function. The ratios in question are then

R_(round peg)=(V(n))/(V_c(n))=(pi^(n/2))/(2^nGamma(1/2n+1))
(4)
R_(square peg)=(V_i(n))/(V(n))=(2^nGamma(1/2n+1))/(n^(n/2)pi^(n/2))
(5)

(Singmaster 1964). The ratio of these ratios is

 (R_(round peg))/(R_(square peg))=(pi^nn^(n/2))/(2^(2n)[Gamma(1+1/2n)]^2),
(6)

illustrated above, where the dimension n has been treated as a continuous quantity. This ratio crosses 1 at the value n approx 8.13794 (OEIS A127454), which must be determined numerically. As a result, a round peg fits better into a square hole than a square peg fits into a round hole only for integer dimensions 2<=n<=8.


See also

Hole, Hypersphere Packing, Peg Solitaire, Piriform Curve

Explore with Wolfram|Alpha

References

Singmaster, D. "On Round Pegs in Square Holes and Square Pegs in Round Holes." Math. Mag. 37, 335-339, 1964.Sloane, N. J. A. Sequence A127454 in "The On-Line Encyclopedia of Integer Sequences."Wells, D. The Penguin Dictionary of Curious and Interesting Numbers. Middlesex, England: Penguin Books, p. 74, 1986.

Referenced on Wolfram|Alpha

Peg

Cite this as:

Weisstein, Eric W. "Peg." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Peg.html

Subject classifications