Prime Factorial Conjecture: Investigating p! Mod p2 for Prime Numbers

In summary, the conversation discusses a conjecture about the congruence of prime numbers with their corresponding factorials. The conjecture states that for any prime p, p! is congruent to p2-p modulo p2. The conversation also mentions Euler's theorem and the relationship between coprimes, as well as the pattern seen in the factorials of various primes. The main question being explored is whether this pattern continues for all primes and why it occurs.
  • #1
numbthenoob
10
0
Is there a name and/or proof for the following conjecture?

"For any prime p, p! is congruent to p2-p modulo p2."

Thanks much.
 
Physics news on Phys.org
  • #2
I think this might be of interest:

"[URL
 
Last edited by a moderator:
  • #3
Thanks, Dickfore, that was of interest, even if most of it was over my head.

However, if I understand correctly...Euler's theorem is about the relationship between coprimes. I'm researching numbers that are not coprime, for example 7! and 72, where the gcd is 7, not 1.

To take another example, can I say with certainty that 66797! is congruent to 66797*66796 mod 667972 without having to calculate 66797!?

I've noticed that the pattern holds at least up to 13, i.e.

2! = 2 mod 4
3! = 6 mod 9
5! = 20 mod 25
7! = 42 mod 49
11! = 110 mod 121
13! = 156 mod 169

My question is: ...and so on? And a follow-up: if so, why?
 
  • #4
It might help to reduce the problem

p!=p2-p (mod p2) means that p2 divides (p!-p2+p)=p((p-1)!-p+1). We can divide a p out from everything

So really the question is, why is (p-1)!=p-1 (mod p). If you know that Zp is a field you can figure this out. If not, you probably still can, I just don't see how off the top of my head
 
  • #5
"[URL Theorem[/URL]
 
Last edited by a moderator:
  • #6
Thanks Office Shredder and Gib Z, those were both very enlightening comments.
 
  • #7
Good points Office_Shredder I learned something new formula.
 

What is a factorial of a prime number?

A factorial of a prime number is the product of that prime number and all the positive integers that are smaller than it. For example, the factorial of 5 (denoted as 5!) is equal to 5 x 4 x 3 x 2 x 1 = 120.

What is the significance of factorials of prime numbers?

Factorials of prime numbers are important in various mathematical calculations, such as in combinatorics and probability. They are also used in the calculation of permutations and combinations.

What is the largest factorial of a prime number?

The largest factorial of a prime number is 13! which is equal to 6,227,020,800.

Are factorials of prime numbers always prime numbers?

No, factorials of prime numbers are not always prime numbers. For example, the factorial of 5 (5!) is 120, which is not a prime number.

Can factorials of prime numbers be negative?

No, factorials of prime numbers cannot be negative. They are always positive integers.

Similar threads

  • Linear and Abstract Algebra
Replies
2
Views
799
  • Linear and Abstract Algebra
Replies
2
Views
856
  • Linear and Abstract Algebra
Replies
17
Views
1K
  • Linear and Abstract Algebra
Replies
11
Views
1K
  • Precalculus Mathematics Homework Help
Replies
16
Views
2K
  • General Math
Replies
17
Views
557
  • Precalculus Mathematics Homework Help
Replies
17
Views
2K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
885
  • Precalculus Mathematics Homework Help
Replies
3
Views
937
Back
Top