Let $p$ be prime number, and d is the natural number. Prove that if $d\mid 2^p−1$, then $p\mid d−1$.
I'm looking on proof number 3 mentioned there and few things are unclear for me: https://en.wikipedia.org/wiki/Mersenne_prime
How it was concluded that $q$ is a factor of $2^{pc}-1$ for all positive integers $c$. Fermat theorem says that $p\mid a^{q-1}-1$ if $q$ is not a divisor of $a$, in this case, let $b=a^c$ and it's true indeed, but in case of this proof exponent is $p$, not $p-1$.
Second thing is why is there mentioned, that $q$ is not a factor of $2^1-1$ and how it leads to conclusion that $p$ is smallest positive integer $x$ that $q$ is a factor of $2^x-1$.