A sum of factorials that converges at every prime
Worth reading first: A series that converges to minus one · A series that converges nowhere.
A series that converges to minus one changed the ruler. Under the 2-adic absolute value a number is small when it is divisible by a high power of 2, and the geometric series , hopeless in the real numbers, converges to exactly . Its terms shrink because each is divisible by one more 2 than the last. Geometric series are the simplest case of that mechanism, but not the most dramatic.
The factorials grow faster than any geometric series, and has no sum in the real numbers by any summation method that respects size. Euler assigned a value to the alternating version, , by turning it into an integral, and a series that converges nowhere followed that trick through. Without the alternating signs even that fails. But contains every prime below , and contains each of them more and more often as grows. Under every -adic absolute value the factorials shrink, and the series converges — in the 2-adic numbers, the 3-adic numbers, the 5-adic numbers, at every prime at once.
Digits that stop changing
The figure shows convergence the way a 5-adic number experiences it. Write each partial sum in base 5. The sums grow — by the partial sum has twenty digits — but their last digits stop changing. From on the final digit is always 4. From the last two are always 24, and from the last three are 224. Each later term is divisible by a higher power of 5 than the one before, so adding it can only disturb digits further to the left.
That is what convergence means here. Two numbers are close in the 5-adic sense when they agree in many final base-5 digits, and a sequence converges when, for every , its members eventually agree in their last digits. The partial sums do exactly that. The limit — the bottom row of the figure, continued forever to the left — is a 5-adic number, ending in , and it is the sum of all the factorials in the only sense the 5-adic numbers have.
Nothing about 5 was special. Written in base 7, or 2, or 13, the same partial sums freeze from the right in the same way, at different rates and to different digits. One sequence of whole numbers — 1, 2, 4, 10, 34, 154, 874, … — converges in infinitely many different number systems, and in each it converges to something different.
How often a prime divides a factorial
The rate at which the digits freeze is set by a formula Adrien-Marie Legendre gave in 1808. The number of times a prime divides is
where is the sum of the digits of written in base . The first form counts the multiples of up to , then the multiples of that contribute an extra factor, and so on. The second form is a rearrangement of the first.
The staircases never fall, and they climb at an average rate of one step per terms. So the -adic absolute value goes to zero, and for a series of -adic numbers that is enough. In the real numbers terms that shrink to zero are necessary for convergence but not sufficient, as the harmonic series shows. In the -adic numbers they are sufficient as well, because of the strong triangle inequality: a sum of terms each divisible by is itself divisible by . A tail can never accumulate into something large.
The staircase also says how the digits in the hero figure freeze. When reaches , every term from on is divisible by , so the partial sum at already has its final digits. The figure checks that this lower bound holds in every row. In several rows the agreement is longer than the bound guarantees, because a few further digits happen to be right by luck.
One series, a different number at every prime
Computed exactly, by summing far enough that every later term is divisible by , the limit’s first sixteen digits at eight primes are these.
Each row is a different number in a different field, and there is no known relation among them. It is not known whether any of them is rational. A rational number has an eventually repeating -adic expansion, just as it has an eventually repeating decimal expansion, and none of these rows shows a repeat; but sixteen digits prove nothing in either direction. It is expected that the sum is irrational in every -adic field. No proof reaches even a single prime.
The shaded column is the start of a sharper question. The last digit of the -adic sum is the sum taken modulo , and all terms from on are divisible by . So the last digit is
the left factorial of , introduced by Đuro Kurepa in 1971. For it is , which ends in zero. For every other prime in the figure it does not. A -adic number whose last digit is not zero is a unit — it has an inverse among the -adic integers — so the question of whether the sum ever ends in zero is whether it is ever divisible by .
A neighbour whose sum is known everywhere
The ignorance about these eight rows is specific to this series, and a close relative shows how specific. Multiply each factorial by its own index and sum:
Since , the partial sums telescope: everything cancels except the last term and the first, and the sum up to is exactly . In the real numbers that runs off to infinity like the factorials themselves. In every -adic field goes to zero, so the sum is at every prime at once. It is the same rational number in the 2-adic numbers, the 5-adic numbers and every other, and its digits in base are all , repeating to the left, exactly as was in the geometric series.
More generally, any series whose terms are a fixed polynomial in times can be split into a telescoping part and a remainder that is a constant multiple of the plain sum . So the whole family has -adic sums of the form , with and rational, where is the one unknown number in each field. The plain series is the single irreducible ingredient. Every sum of polynomial-weighted factorials either telescopes to something known or carries a copy of it.
That is also why the plain sum resists. A rational sum would mean some combination of factorials telescopes after all — that for some rational numbers, the same for every prime or different for each. No telescoping identity of that kind is known, and the digits give no hint of one. Euler’s alternating series, whose real value is the Gompertz constant , has the same structure at every prime, and its -adic sums are just as unknown.
The contrast also explains what the last digit measures. For the telescoping series the last digit is always , because is a unit and its final digit is . For the plain series the last digit is the left factorial’s residue, and there is no telescoping to fix it. It could in principle be zero. Wilson’s theorem fixes the residue of a single factorial, . Nothing fixes the residue of their sum.
Kurepa’s question
Kurepa conjectured that for every odd prime , the left factorial is not divisible by . His original form was a statement about greatest common divisors — that and share no factor but 2 for every — and the two forms are equivalent, since a prime divides some together with exactly when it divides . In the language of this essay, Kurepa conjectured that the sum of all factorials is a -adic unit at every odd prime.
Deciding it for one prime is a finite computation: add up factorials modulo , which means multiplications and additions on numbers smaller than . For all 9,591 odd primes below 100,000 it takes a few seconds.
The cloud fills the square and touches neither edge. No odd prime below 100,000 divides its left factorial. The closest misses are close only in the sense that a remainder of 2 or 3 is small: 10,331 leaves remainder , 77,687 leaves , 33,703 leaves 9. Computer searches have since extended the check enormously. Miloš Tatarević and Vladica Andrejić checked every prime below , about seventeen billion, in 2016, and found none either.
The remainders are as random as remainders can look
The absence of zeros would have an obvious explanation if the remainders avoided zero for some structural reason — if, for instance, they crowded towards the middle or kept to one half. The figures say they do not.
Every bin holds between 432 and 538 primes, and a chi-square test finds nothing a random spread would not produce. The lowest bin, the one next to zero, holds 480, exactly the average. Nothing in the distribution of the remainders keeps them away from zero, and that is what makes the observation hard. If the remainders behave like random numbers below , a prime should divide its left factorial with probability , and over many primes some should.
A coin that ought to have landed
The coin-toss model is the one the Wieferich essay set out for the family of “second-order” congruences. A theorem guarantees some divisibility, and the next question is a coin with a one-in- chance. Here no theorem guarantees anything modulo , and the question is the plainest version: does divide a number that has no reason to be divisible by it?
The expected count is the sum of over odd primes, which grows like — the slowest-growing divergent sum in common use. Below 100,000 it is 2.21. If the events were independent coins, the chance of seeing none at all would be about . Extended to seventeen billion the expectation is about 2.9, and the chance of none about .
Set beside the Wilson primes the contrast is pointed. For Wilson’s congruence the same model predicts about two below 100,000, and three are found, at 5, 13 and 563. That fits as well as such a model can, given that small primes, where the coin’s chance is large, contribute most of the expectation. For Kurepa’s, the small primes are exactly where the model expected its hits, and they did not come. , , , — none divisible by its prime, against chances of a third, a fifth, a seventh and an eleventh.
A one-in-ten or one-in-twenty outcome is not evidence of structure. It is the kind of thing that happens. But the conjecture is believed for a reason beyond the search, and the search fits the belief better than it fits the model. Whether some arithmetic property of the left factorial keeps it from being divisible by — a congruence, an identity, a link to some other sequence — is exactly what nobody has found.
Where a proof has gone wrong
Kurepa’s conjecture has already had one published proof that did not survive. Daniel Barsky and Bénali Benzaghou published an argument in 2004 that went through the Bell numbers, which count the ways of splitting a set into blocks and whose residues modulo can be tied to the left factorial. In 2011 they withdrew it themselves, after an error was found. The pattern is common to statements of this shape. A divisibility that fails for no visible reason invites an argument that supplies a reason, and the argument very often turns on an identity that holds modulo in a slightly different form from the one needed, or on a step that quietly assumes what is to be shown.
The reformulations are still useful, but for computation rather than proof. Expressing the left factorial through other sequences lets the residues for many primes be computed together rather than one prime at a time, and that is how the searches reached billions. Each reformulation is a different way of computing the same number modulo , and in each form the statement is the same: a particular whole number, defined by a sum of terms, is never divisible by . None of them has supplied the reason.
What the computations cannot settle
Every figure here is a finite computation, and each establishes its finite statement exactly. The hero figure’s digits are correct, the eight limits are correct to sixteen digits, and no odd prime below 100,000 divides its left factorial. None of this bears on irrationality, which needs the infinite expansion, or on Kurepa’s conjecture, which concerns all primes.
The figures also cannot measure independence, and the coin-toss model assumes it. If the events “p divides ” were correlated across primes — if the left factorial’s residues were tied together by an unseen structure — the expected count could be quite different from the sum of . The evenness test shows that each residue, taken alone, looks random. It does not show that the residues are unrelated to one another, and that is what the model needs.
And the series’ -adic sums are drawn here as digit strings, which shows their size and nothing of their arithmetic. A -adic number can satisfy a polynomial equation without any visible pattern in its digits. The square roots that Hensel’s lifting builds look exactly as patternless as these rows. So the absence of a repeat in sixteen digits says even less about algebraic relations than it does about rationality.
Still open: whether the sum is ever divisible
Kurepa’s conjecture is open, and so is every question about the sum’s arithmetic: whether it is rational, or algebraic, at any single prime. Whether there are primes at which the -adic sums at two different primes are related is not even a well-posed question yet, since they live in different fields.
Two weaker questions are also open. It is not known that infinitely many primes fail to divide their left factorial. That would be a very weak form of the conjecture, and it is not known only because no argument controls the residues for infinitely many primes at once. And the heuristic’s own status is unclear: whether the left factorial’s residues are equidistributed modulo in the limit, as the histogram suggests, is itself an unproved statement about a sequence defined by a sum of factorials.
The neighbouring questions in the same family fare no better. Whether there are infinitely many Wilson primes is open, though the model predicts infinitely many. So is whether there are infinitely many primes for which has any prescribed residue modulo . The structure of factorials modulo prime powers is understood one prime at a time, through results like Granville’s reading of binomial coefficients, and not uniformly across primes.
Convergence as a property of the ruler
The real numbers and the -adic numbers disagree completely about this series. In one it diverges violently. In each of the others it converges, with digits that freeze from the right at a rate set by Legendre’s staircase. The sums are infinitely many unrelated numbers, one for each prime, all defined by the same list of whole numbers. That is the point the series that converges to minus one made with powers of 2, now made with a series that shrinks under every prime at once.
The question Kurepa asked turns out to be a question about the last digit of each of those sums. It can be checked one prime at a time with a few seconds of arithmetic, and it has been checked to seventeen billion. It fits no model that treats remainders as random, and no structure has been found that explains it. It is a small, exact statement about a familiar sum. Its truth is in no real doubt, and nobody can prove it.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- When Euclid's number is itself prime — both name factorial, heuristic, primes
- A factorisation that hides its primes — both name modular arithmetic, primes
- Counting one rectangle, twice — both name modular arithmetic, primes
- Euclid's proof run as a machine — both name modular arithmetic, primes
- Necklaces that prove a theorem — both name modular arithmetic, primes
- One residue whose powers are all of them — both name modular arithmetic, primes
Named objects
A dashed tag is an object no other essay names yet.
ConvergenceFactorialHeuristicModular arithmeticP adic numbersPrimes