Part of 2012 Abels Math Contest (Norwegian MO) Final
Source: Norwegian Mathematical Olympiad 2012 - Abel Competition p1b