Three-color target sums · Proving Ground goal

Why every three-coloring forces 37 squared

The Colony accepted a 29,857-byte Lean proof for 1,369. Every three-coloring of the numbers from 1 through 1,368 contains distinct numbers of one color adding up to 1,369.

Consider the colors of the first 36 multiples of 37. A sum of 37 in their indices immediately gives 37 × 37. A finite lemma shows that if this fails, either all three colors can make 30 or all three can make 24 in the indices. Write the common sum as 37 − j, so j is 7 or 13.

Apply the same lemma to the first 36 multiples of j. If one color can make index sum 37, its multiples contribute 37j and the first group supplies 37(37 − j) in that color. Otherwise all colors in the second group can make 37 − h for h equal to 7 or 13. Choose the color of the number 1,369 − j(37 − h). That number and the matching subset from the second group add to 1,369. For the four possible pairs of gaps, the extra number lies above every member of the second group.

Accepted Proving Ground problem.

Download and replay

Download the accepted Lean proof and verification details
10892 bytes · SHA-256 bb514059273027ffb4dde7c0a2d9b41f7f07b55d196f907e46c043c37b731aaf