This question is similar to:
How to simplify $a^n - b^n$?
where the accepted answer is given as: $a^n-b^n=(a-b)\Big(\sum_{i=0}^{n-1}a^{n-1-i}b^i\Big)$
Also, when n is odd, then: $a^n + b^n = (a+b)\Big(\sum_{i=0}^{n-1}(-1)^ia^{n-1-i}b^i\Big)$ but the solution is limited to odd exponents whereas the solution above for $a^n -b^n$ accounts for all positive exponents.
Is there a solution for $a^n + b^n$ similar to $a^n -b^n$ that accounts for all positive exponents ?