I have to prove the following:.
For $a,b,p,d \in \mathbb{N}$ and $p>1$, $\gcd(a,b)=d \Rightarrow \gcd(p^a-1,p^b-1)=p^d-1$.
So as far as I know I have to prove two things:
1. $p^d-1 \mid p^a-1$ and $p^d-1 \mid p^b-1$.
2. $(c \mid p^a-1$ and $c \mid p^b-1) \Rightarrow c \mid p^d-1$.
I already managed to prove the first one, but i am not sure how to solve the second. Any help would be appreciated!