Kurepa Factorial: Conjectures & Computations
- Kurepa factorial is defined as !n = Σₖ₌₀ⁿ⁻¹ k! and is central to the conjecture asserting that gcd(!n, n!) = 2 for n ≥ 2.
- It connects elementary number theory with combinatorial sequences through equivalent formulations involving determinants, derangements, and Bell numbers.
- Extensive computational work has verified the hypothesis for odd primes up to 2⁴⁰, using advanced modular arithmetic and parallel processing techniques.
The Kurepa factorial, also called the left factorial, is the arithmetic function
with . Its central conjectural property, usually called Kurepa’s hypothesis or Kurepa’s conjecture, asserts that for every integer ,
Equivalently, for every odd prime , one has . The topic lies at the intersection of elementary number theory, modular arithmetic, combinatorial sequences, and large-scale computation, and it has generated reformulations in terms of determinants, derangement numbers, and Bell numbers, as well as algorithmic work extending direct verification to all odd primes without a counterexample (Meštrović, 2013, Andrejić et al., 2014, Andrejić et al., 2019).
1. Definitions and equivalent formulations
Kurepa’s hypothesis is stated in several equivalent forms in the literature. In its original arithmetical form, it says that for every integer ,
For odd primes , this is equivalent to the congruence condition
0
Another formulation, attributed to R. Guy, is
1
These equivalences are explicit in the work on variations of the hypothesis (Meštrović, 2013).
The function itself is classical enough to have a standard sequence entry: it is Sloane’s OEIS sequence A003422 (Meštrović, 2013). The arithmetic content of the conjecture is that the only unavoidable common factor of 2 and 3 is 4, so every odd prime divisor of 5 should fail to divide 6.
Historically, the computational status recorded in 2013 was that the hypothesis had been verified by computer up to 7, while remaining open in general and with “no significant theoretical progress since 1971” according to that source (Meštrović, 2013). Later computational work greatly extended this range.
2. Reformulations via determinants, derangements, and Bell numbers
A substantial line of work reformulates the divisibility question in terms of other combinatorial and algebraic objects. One such reformulation uses Kurepa’s determinant 8, defined for 9 as the determinant of a specific 0 matrix. For odd primes 1, the statement
2
is equivalent to Kurepa’s hypothesis for 3 (Meštrović, 2013). For 4, the determinant also satisfies the congruence
5
which ties the determinant to exponential-type truncated sums and, through them, to derangement numbers (Meštrović, 2013).
The relevant derangement sequence is
6
For primes 7, the congruence
8
holds, and the hypothesis is equivalent to the nonvanishing congruence 9 for all odd primes 0. The same paper gives a broader equivalence: for all 1, Kurepa’s hypothesis is equivalent to
2
and also equivalent to the statement that the numerator of
3
is not divisible by 4 (Meštrović, 2013).
Bell numbers supply a further reformulation. For any prime 5,
6
so Kurepa’s hypothesis is equivalent to
7
This places the left factorial problem in direct contact with set partition counts and with congruence phenomena for classical combinatorial sequences (Meštrović, 2013).
The determinant framework also generated a stronger conjectural extension, the strong Kurepa hypothesis, formulated as
8
That stronger statement does not survive intact: its “even part” is proved, but its “odd composite part” has the counterexample
9
This shows that the determinant formalism is equivalent to the original prime case, but not to a naively generalized composite case (Meštrović, 2013).
3. Computational verification and algorithmic development
The computational history recorded in the supplied sources shows a rapid increase in verified range.
| Paper | Verified range | Reported outcome |
|---|---|---|
| (Meštrović, 2013) | 0 | verified by computer |
| (Andrejić et al., 2014) | 1 | no counterexample |
| (Andrejić et al., 2019) | 2 | no odd prime 3 divides 4 |
The 2014 search extended the range to all odd primes 5, improving on a previous literature bound of 6 by a factor of roughly 7. For each prime, the residue 8 was computed, and no counterexample was found. The same computation confirmed previously known residues for smaller primes, and it recorded, for example, that for 9 only 0 and 1 remained as solutions up to 2, while for 3 a new solution appeared at 4 (Andrejić et al., 2014).
That search introduced recurrences and regroupings that reduced the number of modular reductions by a factor of 5, and it used modular arithmetic techniques such as Montgomery reduction and inverse multiplication. Its GPU implementation in OpenCL ran on two AMD Radeon R9 280x GPUs with a combined double-precision peak of 6 teraFLOPS. The code exploited SIMD parallelism, loop unrolling, and instruction pairing, obtaining over 7 speedup compared to earlier CPU implementations for 8. The full search to 9 took about 0 days, and random values were rechecked on a CPU using high-precision arithmetic, including over 1 values and 2 million additional cases, all matching the GPU results (Andrejić et al., 2014).
A key recurrence used there is
3
with
4
and final residue
5
This recurrence was designed specifically for high-throughput modular evaluation of left factorial residues (Andrejić et al., 2014).
The 2019 paper replaced the earlier linear-in-6 paradigm with substantially faster methods. It represents simultaneous computation of 7 and 8 by the matrix product
9
From this, a single-prime computation of 0 is obtained in 1 time, while batch computation for all primes in an interval 2 is achieved in total time 3 using product trees and remainder trees (Andrejić et al., 2019).
The same work reports a complete computation for all odd primes 4, again with no counterexample to Kurepa’s conjecture. Its implementation used GMP, NTT, FLINT, and NTL, on a 6-core Intel i7 with 5GB RAM and a 6TB SSD, for about 7 core-hours, with 8–9 of time spent in the phase computing 0. A substantial subset of values was independently verified using the direct 1 algorithm (Andrejić et al., 2019).
Heuristic analysis in the computational literature treats 2 as “randomly” distributed for odd primes. On that basis, the expected number of counterexamples below 3 is roughly 4; for 5, the chance of finding a counterexample was estimated at about 6, and a 7 chance would require searching to 8, described there as computationally infeasible with current technology (Andrejić et al., 2014). Earlier heuristic remarks similarly emphasized extreme sparsity, with an expected number of violations up to 9 of about 0 (Meštrović, 2013).
4. Generalized left factorials
The standard left factorial admits a natural power-generalization. For 1,
2
with 3. The 2014 computational study also examined the divisibility problem for these generalized sums (Andrejić et al., 2014).
In contrast with the original conjecture, the generalized version fails very widely in the tested range. For each integer 4, the authors gave an explicit odd prime 5 such that
6
Thus, for every such 7, there exists a prime counterexample to the direct analog of Kurepa’s conjecture (Andrejić et al., 2014).
The case 8 is singled out in the source as a previously open instance, resolved there by the example
9
This sharply separates the arithmetic behavior of the classical left factorial from that of its power-generalized variants (Andrejić et al., 2014).
5. Later algebraic reformulations and recent claims
A 2025 preprint develops what it describes as a new algebraic equivalence for the Kurepa factorial. It introduces a Kurepa polynomial
00
and a half-Kurepa polynomial
01
with 02. In the same source, the left factorial conjecture is reformulated through “half-Kurepa” quantities as
03
together with the recursion
04
The paper states that this perspective is inductive and that the table of values presented there shows 05 is always odd for 06 (Howard, 7 Sep 2025).
The same preprint also proposes decompositions of the Kurepa factorial in terms of Bell numbers and Dobinski numbers. With coefficients 07 described there as depending on 08,
09
It further gives a formula involving derangement numbers,
10
and connects these decompositions to partition functions, occupation numbers, Bose–Einstein and Fermi–Dirac statistics, and normal ordering in bosonic operator algebras (Howard, 7 Sep 2025).
A separate 2022 preprint bears the title “Kurepa’s conjecture on the left factorial function is true” and has the abstract sentence “We answer Kurepa’s conjecture on the left factorials in affirmative” (Abramov, 2022). However, the available data accompanying that entry explicitly states that no full text or content was accessible there, and that no mathematical arguments, proofs, or summary of findings could be drawn from the material provided. On the basis of the supplied record alone, the preprint can be cited as a bibliographic event, but not as a source of documented proof details (Abramov, 2022).
6. Terminological scope and adjacent uses of “Kurepa”
The name Kurepa also appears in subjects that are distinct from the left factorial. One is the Kurepa functional equation
11
studied in a 2025 paper that proves constructive representation results for continuous and 12 solutions. That paper states that all regular solutions have the form
13
building on classical results of Kurepa and Erdős and using de Bruijn’s difference property. The same source notes that the Kurepa factorial is not analyzed directly there, although it describes the factorial as historically related to the motivations for studying the equation (Aliev et al., 15 Jan 2025).
Another distinct usage is the Generalized Kurepa Hypothesis in set theory. For infinite cardinals 14, a 15-family is a family 16 of subsets of 17 such that 18 and 19 for all 20. The Gap-21-Kurepa hypothesis asserts that 22 holds for all infinite cardinals 23. A 2015 paper shows, relative to an inaccessible cardinal, that Gap-24-Kurepa hypotheses are independent of one another. That work explicitly does not directly reference the Kurepa factorial (Friedman et al., 2015).
For the number-theoretic topic of the Kurepa factorial, these neighboring uses are primarily terminological. They share the historical name but concern different mathematical structures: factorial sums and prime divisibility in one case, cocycle-type functional equations in another, and set-theoretic combinatorics in a third (Aliev et al., 15 Jan 2025, Friedman et al., 2015).