Is $a^n+b^n$ is divisible by $a+b$ ?
This question arose when I found this post Why $a^n - b^n$ is divisible by $a-b$? in these pages.
I addressed the question as follows:
$$ a^n+b^n=(a+b)(a^{n-1}-a^{n-2}b+a^{n-3}b^2 -a^{n-4}b^3+\cdots\pm b^{n-1})\\ \begin{align} =a^n &-a^{n-1}b-a^{n-2}b^2+a^{n-3}b^3 -a^{n-4}b^4+\cdots\pm ab^{n-1})\\ &+a^{n-1}b+a^{n-2}b^2-a^{n-3}b^3 +a^{n-4}b^4-\cdots\mp ab^{n-1}\pm b^n)\\ =a^n\pm b^n \end{align} $$
where the +sign applies to odd $n$ and the -sign to even $n$. Therefore we find that
$$ a+b|a^n+b^n,\quad n \text{ odd}\\ a+b|a^n-b^n,\quad n \text{ even} $$ Is this correct?
a^n+b^n = (a-b)(...)
The identity is wrong as written. Try it for $n=2$ for example. – dxiv May 23 '17 at 19:40