Find the greatest common divisor of $2^{2004}-1$ and $2^{2002}-1$.
Using Euclidean algorithm:
$$2^{2004}-1=4(2^{2002}-1)+3$$ $$2^{2002}-1=x\cdot 3+y$$
The solution manual says that $2^{2002}-1$has the remainder $0$ when divided by $3$, that is $y=0$ so GCD is $3$. But how do I find that remainder?