Proving the $\gcd$ is divided by $p-1$

46 Views Asked by At

Given $m=p^k$ where $p$ is an odd prime and $k\ge 2$. Show that $$\gcd (m-1, \phi(m)) \mid p-1$$

So I have done the following development:

$$\gcd(m-1,\phi(m)) =\gcd\left(m-1,p^{k-1}(p-1)\right) =\gcd\left(p^{k}-1,p^{k-1}(p-1)\right) =\gcd\left((p-1)(p^{k-1}+\cdots+1),(p-1)\right)$$

If I knew that $(p^{k-1} +\cdots +1)$ and $p-1$ are co-prime then we're done.

How can it be done?

3

There are 3 best solutions below

0
On BEST ANSWER

As requested in the comments.

It is not true that $p^{k-1}+\cdots +1$ is always co-prime to $p-1$. Indeed, taking $p=5,k=2$ gives a counterexample (more generally, for odd $p$ the parity of the sum depends on the parity of $k$ so $2$ is frequently a divisor of both).

That said, the original claim is certainly true. Indeed $\gcd\left(m-1,\varphi(m)\right)=p-1$. That follows from your expression! Obviously $p-1$ divides $\gcd((p-1)(p^{k-1}+\cdots +1,p-1)$ but as that gcd can be no greater than $p-1$ they must in fact be equal.

1
On

$S_{k-1}=\sum_{r=0}^{k-1}p^r=1+p\sum_{r=0}^{k-2}p^r$ $$\implies(S_{k-1},p)=1$$ right?

0
On

$ \gcd(m-1,\phi(m)) =\gcd\left(p^{k}-1,p^{k-1}(p-1)\right) =\gcd\left((p-1)(p^{k-1}+\cdots+p+1),p^{k-1}(p-1)\right) =(p-1)\gcd\left(p^{k-1}+\cdots+p+1,p^{k-1}\right) =(p-1)\cdot1 $