TOPICS
Search

Boolean Pythagorean Triples Problem


The Boolean Pythagorean triples problem asks whether the positive integers admit a coloring with two colors in which no Pythagorean triple has all three entries the same color. The restriction applies to all Pythagorean triples, including nonprimitive ones.

Heule et al. (2016) proved that the integers from 1 through 7824 admit such a coloring, but those from 1 through 7825 do not. Thus 7825 is the least finite cutoff that forces a same-color Pythagorean triple, and the infinite problem has a negative answer. Their proof is computer-assisted. The problem is an example of Ramsey theory.

For a positive integer N, let T_N be the set of Pythagorean triples (a,b,c) with a<=b<c<=N. Introduce Boolean variables x_1,...,x_N, with True and False representing the two colors. The conjunctive normal form

 F_N= ^ _((a,b,c) in T_N)[(x_a v x_b v x_c) ^ (¬x_a v ¬x_b v ¬x_c)]

is satisfiable iff an admissible coloring exists. Here  v ,  ^ , and ¬ denote OR, AND, and NOT. Each pair of clauses excludes the two assignments in which its three Boolean variables agree (Heule et al. 2016).

For a positive integer n, let c(n) count the admissible colorings of {1,...,n}, with the two colors labeled. The values c(1),c(2),... begin 2, 4, 8, 16, 24, 48, 96, 192, ... (OEIS A272709), and c(n)=0 for n>=7825. A finite partial coloring for n=7824 is encoded by OEIS A383181: codes 1 and 2 denote fixed colors, while each code 0 may independently receive either color. Its 2899 free positions therefore give the lower bound c(7824)>=2^(2899).


See also

Coloring, Pythagorean Triple, Ramsey Theory, Satisfiability Problem

Explore with Wolfram|Alpha

References

Heule, M. J. H.; Kullmann, O.; and Marek, V. W. "Solving and Verifying the Boolean Pythagorean Triples Problem via Cube-and-Conquer." In Theory and Applications of Satisfiability Testing-SAT 2016 (Ed. N. Creignou and D. Le Berre). Cham, Switzerland: Springer, pp. 228-245, 2016. https://doi.org/10.1007/978-3-319-40970-2_15.Numberphile. "The Problem with 7825." Featuring J. Grime. May 17, 2018. https://www.youtube.com/watch?v=1gBwexpG0IY.Sloane, N. J. A. Sequences A272709 and A383181in "The On-Line Encyclopedia of Integer Sequences."

Cite this as:

Weisstein, Eric W. "Boolean Pythagorean Triples Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/BooleanPythagoreanTriplesProblem.html

Subject classifications