Problem

Source: MOP 2005 Homework - Black Group #7

Tags: number theory unsolved, number theory



Find all positive integers $n$ for which there are distinct integers $a_1$, ..., $a_n$ such that $\frac{1}{a_1}+\frac{2}{a_2}+...+\frac{n}{a_n}=\frac{a_1+a_2+...+a_n}{2}$.