Problem

Source: 2005 Estonia National Olympiad Final Round grade 11 p2

Tags: divisible, divides, number theory, Sum of powers



Let $a, b$, and $n$ be integers such that $a + b$ is divisible by $n$ and $a^2 + b^2$ is divisible by $n^2$. Prove that $a^m + b^m$ is divisible by $n^m$ for all positive integers $m$.