Let $p$ be a prime number. Prove that $\gcd(p, (p-1)!) = 1$.
I've attempted using the definition of $\gcd$ to solve this, but I haven't reached a conclusion.
Any ideas?
Let $p$ be a prime number. Prove that $\gcd(p, (p-1)!) = 1$.
I've attempted using the definition of $\gcd$ to solve this, but I haven't reached a conclusion.
Any ideas?
On
Hint: let $d=\gcd(p, (p-1)!)$. $d$ divides $p$ so $d\in \{1,p\}$. If $d\neq 1$, then $p=d|(p-1)!$. But what can you say about the greatest prime divisor of $(p-1)!$?
On
By Euclid's lemma we see that if $p|(p-1)!$ then $p|k$ for some $k\in\{1,\ldots, p-1\}$ which's a contradiction. Hence the result.
It's worth to mention that the Wilson's theorem give a more accurate result.
Divisors of $p$ are $p$ and $1$. Divisors of $(p-1)!$ are $1$, $2$, ... $p-1$ and all possible multiplications of them. Considering $p$ is prime, it isn't included in set of these multiplications, so the only common number in these sets is $1$.