2021 OIM Problems/Problem 5

Problem

For a finite set $C$ of integers, we define $S(C)$ to be the sum of the elements of $C$. Find two nonempty sets $A$ and $B$, whose intersection is empty and whose union is the set ${1, 2, \cdots , 2021}$, such that the product $S(A)S(B)$ is a perfect square.

Solution

The solution to the equation is $S(A)=491103$ and $S(B)=1552128$; we can simply consider removing numbers to find the sets themselves, which just so happen to be \[A=\{x|x\in\mathbb{Z},x\in[1,1074]\cup[1076,1762]\}\] \[B=\{x|x\in\mathbb{Z},x\in\{1075\}\cup[1763,2021]\}\]

~ eevee9406

See also

https://olcoma.ac.cr/internacional/oim-2021/examenes