I have a proof and am unsure of the algebra to get from Step 2.) to Step 3.) below.
When I subtract ($2^b$ + $2^{2b}$ + $2^{3b}$ + $2^{ab}$) - (1 + $2^b$ + $2^{2b}$ + $2^{(a-1)b}$) I do the following:
Remove the ellipse and assume 4 elements in each sequence ($2^b$ + $2^{2b}$ + $2^{3b}$ + $2^{ab}$) - (1 + $2^b$ + $2^{2b}$ + $2^{(a-1)b}$)
Distribute the negative: $2^b$ + $2^{2b}$ + $2^{3b}$ + $2^{ab}$ - 1 - $2^b$ - $2^{2b}$ - $2^{(a-1)b}$
Subtract/remove opposite like terms: + $2^{3b}$ + $2^{ab}$ - 1 - $2^{(a-1)b}$
And this is as far as I could take it since I see no more like terms (same base/exponent combinations). But working backwards, I do see Step 3.) shows result $2^{ab}$ - 1 and so if I remove this I am left with: $2^{3b}$ - $2^{(a-1)b}$.
So now this implies that $2^{3b}$ - $2^{(a-1)b}$ should cancel each other out but I don't see how to do this because although they both have the same base, they don't have the same exponent.
Any help is greatly appreciated!
Theorem 3.7.1. Suppose n is an integer larger than 1 and n is not prime. Then $2^n$ - 1 is not prime. Proof. Since n is not prime, there are positive integers a and b such that a < n, b < n, and n = ab. Let x = $2^b$ - 1 and y = 1 + $2^b$ + $2^{2b}$ +· · ·+ $2^{(a-1)b}$. Then
xy = ($2^b$ - 1) · (1 + $2^b$ + $2^{2b}$ +···+$2^{(a-1)b}$)
Step 1.) = $2^b$ · (1 + $2^b$ + $2^{2b}$ +···+$2^{(a-1)b}$) - (1 + $2^b$ + $2^{2b}$ +···+$2^{(a-1)b}$)
Step 2.) = ($2^b$ + $2^{2b}$ + $2^{3b}$ +···+$2^{ab}$) - (1 + $2^b$ + $2^{2b}$ +···+ $2^{(a-1)b}$)
Step 3.) = $2^{ab}$ - 1
Step 4.) = $2^n$ - 1.