$a, b, n, m\hspace{2mm}\epsilon\hspace{2mm}\mathbb{N}$ and $|n-m|$ is even (in other words $n,m$ are either both odd or both even)
Suppose for some $x \hspace{2mm} \epsilon\hspace{2mm}\mathbb{Z}\hspace{2mm}$, $x|a+1$ and $x|b+1$
Show that $x\hspace{2mm}|\hspace{2mm}a^n-b^m$
My solution:
Suppose $A = a+1$ and $B = b+1$
$$(A-1)^n - (B-1)^m$$ $$=\sum_{k=0}^{n} \binom{n}{k} A^{n-k} -\sum_{k=0}^{m} \binom{m}{k}B^{m-k}$$ both odd, then the last term of both sums will be $-1$. This will make the $-1,1$ cancel from both sums resulting in a sum of terms that are multiplied by A and B which are both divided by x and so the statement above is correct.
I'm just wondering if there's a better way to state my conclusion or conditions.