MathLabs

Problem 3

Let n>3n>3 be an integer. Choose three numbers from {1,2,…,n}\{1,2,\ldots,n\}. Using each once, together with addition, multiplication, and parentheses, form all possible combinations. (a) Show that if all three chosen numbers are greater than n/2n/2, their values are all distinct. (b) Let pp be a prime with p≤np\le \sqrt{n}. Show that the number of choices whose smallest number is pp and whose combination values are not all distinct is exactly the number of positive divisors of p−1p-1.
Step 4 of 7: Factor the only possible equality
x+yz=(y+z)x⟺(y−x)(z−x)=x(x−1)x+yz=(y+z)x\Longleftrightarrow (y-x)(z-x)=x(x-1)
Detailed analysis

Expanding and rearranging the possible equality gives yz−xy−xz+x=0yz-xy-xz+x=0. Factoring yields (y−x)(z−x)=x(x−1)(y-x)(z-x)=x(x-1), which is the exact criterion for repeated combination values.