Kurepa's conjecture #
Reference: On the left factorial function !N, by Đuro Kurepa Math. Balkanica 1, p. 147-153, 1971
Left factorial of n $$$!n = 0!+1!+2!+...+(n-1)!$$
Equations
- left_factorial n = ∑ m ∈ Finset.range n, m.factorial
Instances For
Kurepa's conjecture #
For all $n$, $$!n\not\equiv 0 \mod n$$
This appears as B44 "Sums of factorials." in Unsolved Problems in Number Theory by Richard K. Guy
theorem
kurepa_conjecture.variant.prime
(p : ℕ)
(h_p : 2 < p)
:
Nat.Prime p → left_factorial p % p ≠ 0
This statement can be reduced to the prime case only.
An equivalent formulation in terms of the gcd of $n!$ and $!n$.
Sanity check: for small values we can just compute that the conjecture is true
Sanity check: for small values we can just compute that the conjecture is true.