Skip to main content
1 of 3
Dror Speiser
  • 4.6k
  • 2
  • 32
  • 64

Primes p such that p | ((p-1)/2)! + 1

Motivation comes from comments in this question, and it is interesting in its own right. These primes are sequence A055939 in OEIS.

So, which primes $p$ satisfy $p\\ |\\ (\frac{p-1}{2})! + 1$?

If my calculations (in sage) are correct, the following is true for all primes under 100,000. For $p > 3$: $$p\\ |\\ (\frac{p-1}{2})! + 1 \iff h(\sqrt{-p})=1 \mod{4}$$

Dror Speiser
  • 4.6k
  • 2
  • 32
  • 64