Problem 5
Whichever of the three values turns out to be largest, the lemma always identifies the two smaller ones with each other, and since f(m) is one of the two smallest by hypothesis, it ends up dividing f(n) in every possible arrangement.
Suppose . Apply step 3 with to the triple , which satisfies the three relations of step 3, hence (after reordering by size) the lemma of step 4. Since , is never the largest of the three, so it is always one of the two values the lemma identifies as equal; the lemma then says this common value divides the largest of the three. If is the largest, the lemma gives directly. If is the largest instead, the lemma forces to equal whichever of is not largest, and since in that case, it forces , which again gives . Either way, .