Monsky’s Theorem states that it is impossible to dissect a square into an odd number of triangles of equal area.

While the statement sounds easy, the proof is actually far from trivial but is counted towards the most beautiful proofs in mathematics. The wikipedia article has some short outline, the full proof is for example given in proofs from the book. It is based on a coloring of the plane generated by a “non-Archimedean valuation” .

To define , we first note that for any prime , any non-zero rational number can be written as

with natural numbers prime to (i.e. we have with some ). is called the *p-adic value* of . We define for any rational , set and continue to all real numbers.

The coloring is then defined as

Below script generates this coloring on a grid on the plane.

Running the script creates pictures like the following:

One of the striking properties of this coloring is, that any line runs only through points of at most two different colors!