C3. In the coordinate plane consider the set $S$ of all points with integer coordinates. For a positive integer $k$, two distinct points $A, B \in S$ will be called $k$-friends if there is a point $C \in S$ such that the area of the triangle $A B C$ is equal to $k$. A set $T \subset S$ will be called a $k$-clique if every two points in $T$ are $k$-friends. Find the least positive integer $k$ for which there exists a $k$-clique with more than 200 elements.
Solution. To begin, let us describe those points $B \in S$ which are $k$-friends of the point $(0,0)$. By definition, $B=(u, v)$ satisfies this condition if and only if there is a point $C=(x, y) \in S$ such that $\frac{1}{2}|u y-v x|=k$. (This is a well-known formula expressing the area of triangle $A B C$ when $A$ is the origin.)

To say that there exist integers $x, y$ for which $|u y-v x|=2 k$, is equivalent to saying that the greatest common divisor of $u$ and $v$ is also a divisor of $2 k$. Summing up, a point $B=(u, v) \in S$ is a $k$-friend of $(0,0)$ if and only if $\operatorname{gcd}(u, v)$ divides $2 k$.

Translation by a vector with integer coordinates does not affect $k$-friendship; if two points are $k$-friends, so are their translates. It follows that two points $A, B \in S, A=(s, t), B=(u, v)$, are $k$-friends if and only if the point $(u-s, v-t)$ is a $k$-friend of $(0,0)$; i.e., if $\operatorname{gcd}(u-s, v-t) \mid 2 k$.

Let $n$ be a positive integer which does not divide $2 k$. We claim that a $k$-clique cannot have more than $n^{2}$ elements.

Indeed, all points $(x, y) \in S$ can be divided into $n^{2}$ classes determined by the remainders that $x$ and $y$ leave in division by $n$. If a set $T$ has more than $n^{2}$ elements, some two points $A, B \in T, A=(s, t), B=(u, v)$, necessarily fall into the same class. This means that $n \mid u-s$ and $n \mid v-t$. Hence $n \mid d$ where $d=\operatorname{gcd}(u-s, v-t)$. And since $n$ does not divide $2 k$, also $d$ does not divide $2 k$. Thus $A$ and $B$ are not $k$-friends and the set $T$ is not a $k$-clique.

Now let $M(k)$ be the least positive integer which does not divide $2 k$. Write $M(k)=m$ for the moment and consider the set $T$ of all points $(x, y)$ with $0 \leq x, y200$.

By the definition of $M(k), 2 k$ is divisible by the numbers $1,2, \ldots, M(k)-1$, but not by $M(k)$ itself. If $M(k)^{2}>200$ then $M(k) \geq 15$. Trying to hit $M(k)=15$ we get a contradiction immediately ( $2 k$ would have to be divisible by 3 and 5 , but not by 15 ).

So let us try $M(k)=16$. Then $2 k$ is divisible by the numbers $1,2, \ldots, 15$, hence also by their least common multiple $L$, but not by 16 . And since $L$ is not a multiple of 16 , we infer that $k=L / 2$ is the least $k$ with $M(k)=16$.

Finally, observe that if $M(k) \geq 17$ then $2 k$ must be divisible by the least common multiple of $1,2, \ldots, 16$, which is equal to $2 L$. Then $2 k \geq 2 L$, yielding $k>L / 2$.
In conclusion, the least $k$ with the required property is equal to $L / 2=180180$.