TOPICS
Search

Sum of Square Roots Problem


The sum of square roots problem asks for the sign of the difference of two sums of square roots of positive integers. It arises when comparing path lengths in computational geometry, and it is open whether the sign can always be determined in time polynomial in the input size (Demaine et al. ).

Let r(n,k) be the least positive value of

 |sum_(i=1)^ksqrt(a_i)-sum_(i=1)^ksqrt(b_i)|

for a_i,b_i in {1,...,n}, with n>=2 and k>=1. A sufficiently strong lower bound on r(n,k) controls how many bits of precision suffice to distinguish unequal sums. In particular, a bound on log_2(1/r(n,k)) that is polynomial in k and log_2n would give a polynomial-time sign algorithm (Demaine et al. ).

Qian and Wang (2006) obtained r(n,k)=O(n^(-2k+3/2)) for fixed k>=2, where O denotes big-O notation. They also noted the sharper order n^(-7/2) for k=2. Besevic (2026a) reports r(n,k)=O(n^(-2k+1/2)) for each fixed k>=2 and a lower bound r(n,2)>=(8/27-O(n^(-4)))n^(-7/2). The paper reports Lean verification of explicit bounds for k=2 and k=3. The general upper bound uses a separate argument involving elliptic curves. Besevic discloses AI assistance in the research and formalization.

Besevic (2026b, Theorems 3.3 and 4.2) reports r(n,3)>=n^(-31/2)/5981 and r(n,k)>=(2kn)^(-(2^(2k-2)-1/2))/sqrt(e) for k>=2. For three terms per side, the first lower bound is multiplied by 65536 when the two sums of radicands have the same parity. The general estimate uses the second moment over signed sums and an integer product of conjugate factors. For three terms per side with all radicands in an interval of width L>=1, the paper gives a lower bound proportional to n^(-13/2)L^(-9), where n is the upper endpoint. A separate bound improves the exponent whenever a nonempty even-sized subset of the radicands has a perfect square product. The paper reports Lean verification of the lower-bound theorems.


See also

Computational Geometry, Decision Problem, Radical, Square Root

Explore with Wolfram|Alpha

References

Besevic, I. "Breaking the Linear-Ansatz Barrier for the Sum-of-Square-Roots Problem." 2026a. https://doi.org/10.5281/zenodo.24553430.Besevic, I. "Sharp Lower Bounds, Universal Parseval Separation, and Structural Exponent-Breaking for the Sum-of-Square-Roots Problem." Hexagon, 2026b. https://hexagonmath.org/2611.01275v1.Demaine, E.; Mitchell, J. S. B.; and O'Rourke, J. "Problem 33: Sum of Square Roots." The Open Problems Project. https://topp.openproblem.net/p33.Qian, J. and Wang, C. A. "How Much Precision Is Needed to Compare Two Sums of Square Roots of Integers?" Inform. Process. Lett. 100, 194-198, 2006. https://doi.org/10.1016/j.ipl.2006.05.002.

Cite this as:

Weisstein, Eric W. "Sum of Square Roots Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/SumofSquareRootsProblem.html

Subject classifications