Papers
Topics
Authors
Recent
Search
2000 character limit reached

Kurepa Factorial: Conjectures & Computations

Updated 10 July 2026
  • 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

!n:=∑k=0n−1k!,!n:=\sum_{k=0}^{n-1}k!,

with !0=0!0=0. Its central conjectural property, usually called Kurepa’s hypothesis or Kurepa’s conjecture, asserts that for every integer n≥2n\ge 2,

gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.

Equivalently, for every odd prime pp, one has p∤!pp\nmid !p. 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 p<240p<2^{40} 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 n≥2n\ge 2,

gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.

For odd primes pp, this is equivalent to the congruence condition

!0=0!0=00

Another formulation, attributed to R. Guy, is

!0=0!0=01

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 !0=0!0=02 and !0=0!0=03 is !0=0!0=04, so every odd prime divisor of !0=0!0=05 should fail to divide !0=0!0=06.

Historically, the computational status recorded in 2013 was that the hypothesis had been verified by computer up to !0=0!0=07, 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 !0=0!0=08, defined for !0=0!0=09 as the determinant of a specific n≥2n\ge 20 matrix. For odd primes n≥2n\ge 21, the statement

n≥2n\ge 22

is equivalent to Kurepa’s hypothesis for n≥2n\ge 23 (Meštrović, 2013). For n≥2n\ge 24, the determinant also satisfies the congruence

n≥2n\ge 25

which ties the determinant to exponential-type truncated sums and, through them, to derangement numbers (Meštrović, 2013).

The relevant derangement sequence is

n≥2n\ge 26

For primes n≥2n\ge 27, the congruence

n≥2n\ge 28

holds, and the hypothesis is equivalent to the nonvanishing congruence n≥2n\ge 29 for all odd primes gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.0. The same paper gives a broader equivalence: for all gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.1, Kurepa’s hypothesis is equivalent to

gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.2

and also equivalent to the statement that the numerator of

gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.3

is not divisible by gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.4 (Meštrović, 2013).

Bell numbers supply a further reformulation. For any prime gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.5,

gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.6

so Kurepa’s hypothesis is equivalent to

gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.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

gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.8

That stronger statement does not survive intact: its “even part” is proved, but its “odd composite part” has the counterexample

gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.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) pp0 verified by computer
(Andrejić et al., 2014) pp1 no counterexample
(Andrejić et al., 2019) pp2 no odd prime pp3 divides pp4

The 2014 search extended the range to all odd primes pp5, improving on a previous literature bound of pp6 by a factor of roughly pp7. For each prime, the residue pp8 was computed, and no counterexample was found. The same computation confirmed previously known residues for smaller primes, and it recorded, for example, that for pp9 only p∤!pp\nmid !p0 and p∤!pp\nmid !p1 remained as solutions up to p∤!pp\nmid !p2, while for p∤!pp\nmid !p3 a new solution appeared at p∤!pp\nmid !p4 (Andrejić et al., 2014).

That search introduced recurrences and regroupings that reduced the number of modular reductions by a factor of p∤!pp\nmid !p5, 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 p∤!pp\nmid !p6 teraFLOPS. The code exploited SIMD parallelism, loop unrolling, and instruction pairing, obtaining over p∤!pp\nmid !p7 speedup compared to earlier CPU implementations for p∤!pp\nmid !p8. The full search to p∤!pp\nmid !p9 took about p<240p<2^{40}0 days, and random values were rechecked on a CPU using high-precision arithmetic, including over p<240p<2^{40}1 values and p<240p<2^{40}2 million additional cases, all matching the GPU results (Andrejić et al., 2014).

A key recurrence used there is

p<240p<2^{40}3

with

p<240p<2^{40}4

and final residue

p<240p<2^{40}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-p<240p<2^{40}6 paradigm with substantially faster methods. It represents simultaneous computation of p<240p<2^{40}7 and p<240p<2^{40}8 by the matrix product

p<240p<2^{40}9

From this, a single-prime computation of n≥2n\ge 20 is obtained in n≥2n\ge 21 time, while batch computation for all primes in an interval n≥2n\ge 22 is achieved in total time n≥2n\ge 23 using product trees and remainder trees (Andrejić et al., 2019).

The same work reports a complete computation for all odd primes n≥2n\ge 24, again with no counterexample to Kurepa’s conjecture. Its implementation used GMP, NTT, FLINT, and NTL, on a 6-core Intel i7 with n≥2n\ge 25GB RAM and a n≥2n\ge 26TB SSD, for about n≥2n\ge 27 core-hours, with n≥2n\ge 28–n≥2n\ge 29 of time spent in the phase computing gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.0. A substantial subset of values was independently verified using the direct gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.1 algorithm (Andrejić et al., 2019).

Heuristic analysis in the computational literature treats gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.2 as “randomly” distributed for odd primes. On that basis, the expected number of counterexamples below gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.3 is roughly gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.4; for gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.5, the chance of finding a counterexample was estimated at about gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.6, and a gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.7 chance would require searching to gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.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 gcd⁡(!n,n!)=2.\gcd(!n,n!)=2.9 of about pp0 (Meštrović, 2013).

4. Generalized left factorials

The standard left factorial admits a natural power-generalization. For pp1,

pp2

with pp3. 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 pp4, the authors gave an explicit odd prime pp5 such that

pp6

Thus, for every such pp7, there exists a prime counterexample to the direct analog of Kurepa’s conjecture (Andrejić et al., 2014).

The case pp8 is singled out in the source as a previously open instance, resolved there by the example

pp9

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

!0=0!0=000

and a half-Kurepa polynomial

!0=0!0=001

with !0=0!0=002. In the same source, the left factorial conjecture is reformulated through “half-Kurepa” quantities as

!0=0!0=003

together with the recursion

!0=0!0=004

The paper states that this perspective is inductive and that the table of values presented there shows !0=0!0=005 is always odd for !0=0!0=006 (Howard, 7 Sep 2025).

The same preprint also proposes decompositions of the Kurepa factorial in terms of Bell numbers and Dobinski numbers. With coefficients !0=0!0=007 described there as depending on !0=0!0=008,

!0=0!0=009

It further gives a formula involving derangement numbers,

!0=0!0=010

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

!0=0!0=011

studied in a 2025 paper that proves constructive representation results for continuous and !0=0!0=012 solutions. That paper states that all regular solutions have the form

!0=0!0=013

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 !0=0!0=014, a !0=0!0=015-family is a family !0=0!0=016 of subsets of !0=0!0=017 such that !0=0!0=018 and !0=0!0=019 for all !0=0!0=020. The Gap-!0=0!0=021-Kurepa hypothesis asserts that !0=0!0=022 holds for all infinite cardinals !0=0!0=023. A 2015 paper shows, relative to an inaccessible cardinal, that Gap-!0=0!0=024-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).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Kurepa Factorial.