Maths Olympiad Prep

Library / /282 of 520

Number theory Difficulty 6.5 National olympiad Prove it

8. (HUN 1) (a) Let (m,k)=1(m, k)=1. Prove that there exist integers a1,a2,,ama_{1}, a_{2}, \ldots, a_{m} and b1,b2,,bkb_{1}, b_{2}, \ldots, b_{k} such that each product aibj(i=1,2,,m;j=a_{i} b_{j}(i=1,2, \ldots, m ; j= 1,2,,k)1,2, \ldots, k) gives a different residue when divided by mkm k. (b) Let (m,k)>1(m, k)>1. Prove that for any integers a1,a2,,ama_{1}, a_{2}, \ldots, a_{m} and b1,b2b_{1}, b_{2}, ,bk\ldots, b_{k} there must be two products aibja_{i} b_{j} and asbt((i,j)(s,t))a_{s} b_{t}((i, j) \neq(s, t)) that give the same residue when divided by mkm k.

Solution

8. (a) Consider ai=ik+1,i=1,2,,m;bj=jm+1,j=1,2,,k a_{i}=i k+1, \quad i=1,2, \ldots, m ; \quad b_{j}=j m+1, \quad j=1,2, \ldots, k Assume that mkaibjasbt=(ik+1)(jm+1)(sk+1)(tm+1)=m k \mid a_{i} b_{j}-a_{s} b_{t}=(i k+1)(j m+1)-(s k+1)(t m+1)= km(ijst)+m(jt)+k(is)k m(i j-s t)+m(j-t)+k(i-s). Since mm divides this sum, we get that mk(is)m \mid k(i-s), or, together with gcd(k,m)=1\operatorname{gcd}(k, m)=1, that i=si=s. Similarly j=tj=t, 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 a1b1:mka1b1a_{1} b_{1}: m k \mid a_{1} b_{1}; so, for some aa^{\prime} and b,aa1,bb1b^{\prime}, a^{\prime}\left|a_{1}, b^{\prime}\right| b_{1}, and ab=mka^{\prime} b^{\prime}=m k. Assuming that for some i,sii, s \neq i, aaiasa^{\prime} \mid a_{i}-a_{s}, we obtain mk=abaib1asb1m k=a^{\prime} b^{\prime} \mid a_{i} b_{1}-a_{s} b_{1}, a contradiction. This shows that ama^{\prime} \geq m and similarly bkb^{\prime} \geq k, and thus from ab=mka^{\prime} b^{\prime}=m k we have a=m,b=ka^{\prime}=m, b^{\prime}=k. We also get (1): all aia_{i} 's give distinct residues modulo m=am=a^{\prime}, and all bjb_{j} 's give distinct residues modulo k=bk=b^{\prime}. Now let pp be a common prime divisor of mm and kk. By ()(*), exactly p1pm\frac{p-1}{p} m of aia_{i} 's and exactly p1pk\frac{p-1}{p} k of bjb_{j} 's are not divisible by pp. Therefore there are precisely (p1)2p2mk\frac{(p-1)^{2}}{p^{2}} m k products aibja_{i} b_{j} that are not divisible by pp, although from the assumption that they all give distinct residues it follows that the number of such products is p1pmk(p1)2p2mk\frac{p-1}{p} m k \neq \frac{(p-1)^{2}}{p^{2}} m k. We have arrived at a contradiction, thus proving (b).

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.