This question is for all $a,m$ and $n$ $\in \mathbb{N}$
I'm really stuck on this question, I tried splitting the modulus and doing the congruence one at a time but can't find a way to put it back using CRT.
Because
$(a+1)^n \equiv 0\pmod {a+1}$ and $a^m \equiv 0\pmod a$
Also, I found out by trying different integers that
$(a+1)^n \equiv 1\pmod a$
Will this be useful for proving the question?