Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Let $p$ be prime, and $a$ be integer. When does $(p - 1)! + 1 = p^a$ for some $a$ hold?

For example: $$p = 5 \implies (5 - 1)! + 1 = 25 = 5^2$$ $$p = 7 \implies (7 - 1)! + 1 = 721 = 7 \cdot 103$$

Any idea?

Thanks,

share|improve this question
    
Apparently $13^2|\ ((13-1)!+1)$ as well. –  Eric Naslund Mar 13 '11 at 5:52

1 Answer 1

up vote 5 down vote accepted

A Wilson prime is a prime number $p$ such that $p^2$ divides $(p-1)!+1$. The only known Wilson primes are 5, 13, and 563.

share|improve this answer
    
Thanks. A big surprise for me though. –  Chan Mar 13 '11 at 6:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.