Proof that if $4$ numbers (not necessarily distinct) are picked from $\{1, 2, \cdots, 20\}$, one can pick $3$ numbers among them and can label these $3$ as $a, b, c$ such that $ax \equiv b \;(\bmod\; c)$ has integral solutions.
Problem
Source: CGMO 2021 P5
Tags: number theory, Diophantine equation
14.08.2021 14:14
19.09.2021 17:16
Here is a neater solution: It is well-known that $ax\equiv b\pmod c$ has a solution iff $\gcd(a,c)\mid b$. Now suppose the $4$ numbers we have picked are $r,s,t,u$. If any two of the numbers are relatively prime, then we are done. Now if $r\mid s$, we can simply choose $c=r$ and $b=s$ and then $x=0$ works. Thus no number from the chosen set of 4 numbers can divide any other. This also lets us assume that all of the 4 numbers are distinct from each other. Also notice that if $\gcd(r,s)=d\ge 7$, we must have $\{r,s\}=\{d,2d\}$, this forces $r\mid s$ or $s\mid r$. Thus $\gcd(r,s)\in \{2,3,4,5,6\}$. But there are $6$ possible pairs possible. Thus two pairs must have the same gcd; $\gcd(w,x)=\gcd(y,z)\implies \gcd(w,x)\mid y$, where $w,x,y,z\in\{p,q,r,s\}$ and $(w,x)\ne (y,z)$.