Part of 2011 Abels Math Contest (Norwegian MO)
Source: Norwegian Mathematical Olympiad 2011 - Abel Competition p4b