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 6 of 7: Parametrize the repeated-value choices in part (b)
x=p,(y−p)(z−p)=p(p−1),d=y−p∣(p−1)x=p,\qquad (y-p)(z-p)=p(p-1),\qquad d=y-p\mid(p-1)
Detailed analysis

Set x=px=p. From the equality criterion, (y−p)(z−p)=p(p−1)(y-p)(z-p)=p(p-1). Since y−p<z−py-p<z-p, we have (y−p)2<p(p−1)(y-p)^2<p(p-1), hence y−p<py-p<p; because pp is prime, pp does not divide y−py-p, so d=y−pd=y-p divides p−1p-1. Conversely, every positive divisor dd of p−1p-1 gives x=px=p, y=p+dy=p+d, z=p+p(p−1)dz=p+\frac{p(p-1)}{d}.