Problem

Source: 2021 Iberoamerican Mathematical Olympiad, P5

Tags: sets of integers, Intersection, union



For a finite set $C$ of integer numbers, we define $S(C)$ as the sum of the elements of $C$. Find two non-empty sets $A$ and $B$ whose intersection is empty, whose union is the set $\{1,2,\ldots, 2021\}$ and such that the product $S(A)S(B)$ is a perfect square.