MathLabs

Problem 3

Consider 9 points in space, no 4 coplanar. Each pair is joined by an edge colored red, blue, or left uncolored. Find the smallest nn such that whenever exactly nn edges are colored, there is a triangle whose three edges have the same color.
Step 1 of 4: Build a coloring with 32 colored edges
In plain words

Build a coloring with 32 colored edges

4+4+8+16=324+4+8+16=32
Detailed analysis

Use red vertices R1,…,R4R_1,\dots,R_4, blue vertices B1,…,B4B_1,\dots,B_4, and a ninth point XX. Leave the two diagonals in each square uncolored. Color the other 4 edges of the red square red and the other 4 edges of the blue square blue. Color all 8 edges from XX to the red square blue and from XX to the blue square red. Color every cross-edge RiBjR_iB_j red when i,ji,j have the same parity and blue otherwise. Exactly 4+4+8+16=324+4+8+16=32 edges are colored.