Give a prime number p>2023. Let r(x) be the remainder of x modulo p. Let p1<p2<…<pm be all prime numbers less that 421p. Let q1,q2,…,qn be the inverses modulo p of p1,p2,…pn. Prove that for every integers 0<a,b<p, the sets {r(q1),r(q2),…,r(qm)},{r(aq1+b),r(aq2+b),…,r(aqm+b)} have at most 3 common elements.
This one wants a proof. Work it on paper, then read the official solution and mark
yourself. Be honest about it: the record is only any use to you if it is.
Official solution
1. **Uniqueness of qi:** - Given that qi are the inverses modulo p of pi, it is clear that qi are distinct. This is because if qi≡qj(modp) for i=j, then pi≡pj(modp), which contradicts the fact that pi are distinct primes.
2. Condition for common elements: - For a given a and b, there exists at most one index i such that qi≡aqi+b(modp). This can be seen by solving the equation qi≡aqi+b(modp), which simplifies to qi(a−1)≡b(modp). If a=1, this has a unique solution qi≡b(a−1)−1(modp).
3. Assumption of at least 4 common elements: - Suppose the sets {r(q1),r(q2),…,r(qm)} and {r(aq1+b),r(aq2+b),…,r(aqm+b)} have at least 4 common elements. Then there exist indices i1,i2,i3,i4 and j1,j2,j3,j4 such that qik≡aqjk+b(modp) for k=1,2,3,4.
4. Deriving a contradiction: - From the above, we have: a≡qj1−qj2qi1−qi2≡qj1−qj3qi1−qi3(modp) This implies: (qi1−qi2)(qj1−qj3)≡(qi1−qi3)(qj1−qj2)(modp)
5. Multiplying both sides: - Multiplying both sides by pi1pi2pi3pj1pj2pj3: pi3pj2(pi2−pi1)(pj3−pj1)≡pi2pj3(pi3−pi1)(pj2−pj1)(modp)
6. Absolute value consideration: - Both numbers in absolute value are smaller than 21p, because pi<421p for all these primes. This means we have equality between those numbers: pi3pj2(pi2−pi1)(pj3−pj1)=pi2pj3(pi3−pi1)(pj2−pj1)
7. Contradiction: - Since pi3 does not divide any of these numbers: pj2, pj3, and pi3−pi1, it follows that pi3∣pj2−pj1. Thus: pi3≤∣pj2−pj1∣<max{pj2,pj1}≤max{pi1,pi2,pi3,pj1,pj2,pj3} - This leads to a contradiction because there is some p which is the maximum.
Therefore, the sets {r(q1),r(q2),…,r(qm)} and {r(aq1+b),r(aq2+b),…,r(aqm+b)} can have at most 3 common elements.
■
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic, difficulty and ordering added
by this site.