8. (HUN 1) (a) Let . Prove that there exist integers and such that each product gives a different residue when divided by . (b) Let . Prove that for any integers and , there must be two products and that give the same residue when divided by .
Solution
8. (a) Consider Assume that . Since divides this sum, we get that , or, together with , that . Similarly , which proves part (a). (b) Suppose the opposite, i.e., that all the residues are distinct. Then the residue 0 must also occur, say at ; so, for some and , and . Assuming that for some , , we obtain , a contradiction. This shows that and similarly , and thus from we have . We also get (1): all 's give distinct residues modulo , and all 's give distinct residues modulo . Now let be a common prime divisor of and . By , exactly of 's and exactly of 's are not divisible by . Therefore there are precisely products that are not divisible by , although from the assumption that they all give distinct residues it follows that the number of such products is . We have arrived at a contradiction, thus proving (b).