Show that $a^m+1$ is composite if $a$ and $m$ are integers greater than 1 and $m$ is odd.
[$Hint:$ Show that $x+1$ is a factor of the polynomial $x^m+1$]
So I tried doing it and got a result which seems erroneous.
let $m = 2k+1$, so $a^m+1 = (a+1)[(-1)^0*a^{(2k)}+(-1)^1*a^{(2k-1)}....(-1)^{(2k)}*1]$.
Since $a\gt 1, a+1 \gt 1$ so I got one part that's not 1. then I applied geometric progression on the second part and got
$a^{(2k)}*(a^{(2k-1)}-1)/(a-1)$ where $a^{(2k-1)} \gt 1, a^{(2k)} \gt 1$ therefore the second part is also an integer that's not 1. so I conclude that $a^m+1$ is composite.