Problem

Source:

Tags: number theory



A natural number $n$ was alternately divided by $29$, $41$ and $59$. The result was three nonzero remainders, the sum of which equals $n$. Find all such $n$