Prove that if $n$ is composite, then $2^n$ is composite.
I tried the following:
$$2^n-1 = 2^n-1^b = (2-1)(2^{n-1}+2^{n-2} + \ldots + 1) = 2^{n-1}+2^{n-2} + \ldots + 1$$
This is the summation of $n$ numbers and $n$ is composite, hence $2^n-1$ is composite.
Is this correct?
Any polynomial of the form $x^n-1$ has $x-1$ as a factor, since
$$ \frac{x^n-1}{x-1} = 1+x+ \dots + x^{n-1}. $$
If $n=ab$ is composite, then we may rewrite $x=2^a$, so we have
$$ \frac{x^b-1}{x-1}=1 + x+ \dots + x^{b-1} \implies x^b-1 = (x-1)(1+x+ \dots + x^{b-1}), $$
i.e., $2^n-1 = (2^a-1)(1+ 2 +\dots + 2^{b-1})$.