1

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?

Ali Caglayan
  • 5,823
E 4 6
  • 271
  • 3
    The only positive divisors of $p$ are $1$ and $p$. Does $p$ divide $(p-1)!$? – Brian M. Scott Oct 14 '14 at 22:01
  • 1
    Wilson's theorem settles this in 1 step: http://en.wikipedia.org/wiki/Wilson's_theorem – Fixee Oct 14 '14 at 22:07
  • Prime $p$ doesn't divides the smaller integers $,2,3,\ldots,p-1,$ so $,p,$ is coprime to all of them, so $,p,$ is coprime to their product $,(p-1)!,,$ by the linked dupe. $\ \ $ – Bill Dubuque Jan 08 '25 at 01:37

4 Answers4

2

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)!$?

mookid
  • 28,795
1

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.

1

According to the Wilson's theorem, the natural number $p$ is prime if and only if $(p-1)!\equiv -1(\mod p)$, hence $p|(p-1)!+1\Rightarrow (p-1)!+1=pk\Rightarrow pk+(-1)(p-1)!=1\Rightarrow (p,(p-1)!)=1$

CLAUDE
  • 2,449
0

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$.

Andrei Rykhalski
  • 1,345
  • 9
  • 14