IMC 1999 · Problem 5

Day 220 points6th IMC · Keszthely, Hungary

Statement

Let SS be the set of all words consisting of the letters xx, yy, zz, and consider an equivalence relation \sim on SS satisfying the following conditions: for arbitrary words u,v,wSu, v, w \in S

(i) uuuuu \sim u;

(ii) if vwv \sim w, then uvuwuv \sim uw and vuwuvu \sim wu.

Show that every word in SS is equivalent to a word of length at most 88.

Official solution

Hidden so you can work on the problem first.