[Geometry]
Problem: A plane has a special point $O$ called the origin. Let $P$ be a set of 2021 points in the plane, such that

(i) no three points in $P$ lie on a line and

(ii) no two points in $P$ lie on a line through the origin.

A triangle with vertices in $P$ is $f a t$, if $O$ is strictly inside the triangle. Find the maximum number of fat triangles.

Solution: We will count minimal number of triangles that are not fat. Let $F$ set of fat triangles, and $\mathrm{S}$ set of triangles that are not fat. If triangle $X Y Z \in S$, we call $X$ and $Z$ good vertices if $O Y$ is located between $O X$ and $O Z$. For $A \in P$ let $S_{A} \subseteq S$ be set of triangles in $S$ for which $A$ is one of the good vertex.

It is easy to see that

$$
2|S|=\sum_{A \in P}\left|S_{A}\right| \tag{1}
$$



For $A \in P$, let $R_{A} \subset P$ and $L_{A} \subset P$ be parts of $P \backslash\{A\}$ divided by $A O$. Suppose for $A X Y \in S$ vertex $A$ is good, then clearly $X, Y \in R_{A}$ or $X, Y \in L_{A}$. On the other hand, if $X, Y \in R_{A}$ or $X, Y \in L_{A}$ then clearly $A X Y \in S$ and $A$ is its good vertex. Therefore,

$$
\left|S_{A}\right|=\left(\begin{array}{c}
\left|R_{A}\right| \\
2
\end{array}\right)+\left(\begin{array}{c}
\left|L_{A}\right| \\
2
\end{array}\right) \tag{2}
$$

It is easy to show following identity:

$$
\frac{x(x-1)}{2}+\frac{y(y-1)}{2}-2 \cdot \frac{\frac{x+y}{2}\left(\frac{x+y}{2}-1\right)}{2}=\frac{(x-y)^{2}}{4} \tag{3}
$$

By using (2) and (3) we get

$$
\left|S_{A}\right| \geq 2 \cdot\left(\begin{array}{c}
\frac{\left|R_{A}\right|+\left|L_{A}\right|}{2} \\
2
\end{array}\right)=2 \cdot\left(\begin{array}{c}
1010 \\
2
\end{array}\right)=1010 \cdot 1009 \tag{4}
$$

and the equality holds when $\left|R_{A}\right|=\left|L_{A}\right|=1010$. Hence

$$
|S|=\frac{\sum_{A \in P}\left|S_{A}\right|}{2} \geq \frac{2021 \cdot 1010 \cdot 1009}{2}=2021 \cdot 505 \cdot 1009 \tag{5}
$$

Therefore,

$$
|F|=\left(\begin{array}{c}
2021 \\
3
\end{array}\right)-|S| \leq 2021 \cdot 1010 \cdot 673-2021 \cdot 505 \cdot 1009=2021 \cdot 505 \cdot 337 \tag{6}
$$

For configuration of points on regular 2021-gon which is centered at $O$, inequalities in (4), (5), (6) become equalities. Hence $2021 \cdot 505 \cdot 337$ is indeed the answer.

Final answer: $2021 \cdot 505 \cdot 337$