Graham’s Conjecture: A 55-Year Math Problem Solved
See how random ordering, anti-concentration and collaboration closed Graham’s 1971 conjecture, why the proof works, and what remains outside its scope.

How Randomness Helped Solve a 55-Year-Old Math Problem
A long-running mathematics problem can sound almost too easy: take a set of numbers, rearrange them, and make sure every running total is different. But there's a catch. The numbers are being added in a finite setting, so sums can "wrap around." A total can come back to zero, and a later partial sum can repeat something you already saw.
Ronald Graham posed this rearrangement problem in 1971. It took more than five decades to settle it. Not because the rules were hard to state, but because the size of the number set changes what can go wrong. A strategy that works for one range may stumble in another, leaving a stubborn middle where the usual arguments don't quite reach.
Eventually, the conjecture was resolved across four papers, using probabilistic methods, targeted fixes to random arrangements, and collaboration across several areas of math. The result is interesting beyond the puzzle itself: it's a concrete example of how randomness can help prove that a configuration exists, even when writing down that configuration directly is a different challenge. Here's what the conjecture is asking, why the proof needed multiple ingredients, and what the remaining gaps actually are.
What is Graham's rearrangement conjecture?
Graham's conjecture asks whether a set of distinct, nonzero numbers can always be rearranged so that every partial sum is different. A partial sum is the total after the first number, then after the first two, then after the first three, and so on.
If all the numbers are positive integers, the answer is essentially immediate: each new term makes the running total bigger, so it can't repeat an earlier value.
The situation gets more complicated when negative numbers are allowed - and even more so when you do arithmetic modulo a number, where "wrapping around" is built into the rules.
Clock arithmetic changes the problem
A common way to study the conjecture is through modular arithmetic. Think of the numbers as clock positions labeled from 0 to p - 1. Once you hit p, you wrap back to 0. If p = 7, then 3 + 4 is the same as 0, and 10 is the same as 3.
The problem is set up with a prime modulus p. The numbers in the set are distinct residues modulo p, and none of them is 0. Graham's question is whether you can always order them so that the running totals never repeat.
That condition is stricter than it looks at first. If two partial sums match, then the numbers between those two times must add up to 0 modulo p. So the problem can be rephrased: find an ordering such that no contiguous block of numbers sums to zero modulo p.
This rephrasing matters because it shifts the whole viewpoint. Instead of "avoid repeated partial totals," you're now "avoid zero-sum intervals." And fixing one offending block by changing the order can create a different offending block somewhere else - so the structure is global, not local.
Why juggling is a useful analogy
Graham was known as both a mathematician and a serious juggler, and the problem lends itself to a juggling metaphor. Treat each number as a timing interval: if two balls end up scheduled to return on the same beat, the pattern fails. A valid ordering avoids those collisions.
The analogy is helpful for intuition, but it's not a practical recipe. The actual proofs deal with large prime moduli. They show that a suitable ordering exists in the mathematical model - they don't give a short routine a performer could use to generate a choreography on demand.
That distinction is common in math: an existence proof tells you a solution is guaranteed, not that there's an easy or efficient way to construct it for every instance. Graham's conjecture is about whether the structure must exist under the rules, not how to build stage-ready juggling from the theorem.
Why did the proof need more than one approach?
The relationship between the size of the set and the modulus p changes the problem's shape. If the set is small compared with p, there aren't many numbers to order, but the modular "room" is huge. If the set is close to filling the available nonzero residues, there are many elements, and lots of interactions can show up. Those different regimes don't share the same failure patterns, so they don't respond to the same proof ideas.
So the work was split by scale. The cases weren't just "the same argument with different parameters." Each range exposed different obstacles and required different tools.
Large sets: start randomly, then repair
Alp Müyesser and Alexey Pokrovskiy looked at the case where the set contains almost all nonzero residues modulo p. When you're coordinating that many values, writing down a clean explicit construction is tough - you might find it easier to prove that an ordering exists than to describe it directly.
Their starting point was a random ordering. The idea was simple enough: most of the arrangement can remain as-is, but any time a zero-sum interval appears, that creates a collision in the running totals. They kept back a small set of carefully chosen values and used those as repair tools when a bad interval showed up.
That "random then repair" pattern shows up a lot in probabilistic combinatorics. Randomness gives you a candidate that already has many of the right properties; the proof then shows that the remaining defects can be fixed in a controlled way. The random start doesn't have to be perfect - it just needs to make the defects limited and fixable.
Their paper appeared in 2022 as part of a larger project. It covered an important range of set sizes, but not every possible size.
Small sets: use a different scale of reasoning
Noah Kravitz and Benjamin Bedert attacked the other end: sets small compared with p. In their setup, you can think of examples like 100 elements inside a modulus of about a billion.
They proved the conjecture for those cases and posted their result in 2024. This filled the part of the parameter space where the "large-set" approach wasn't naturally tuned. As Kravitz later described, the combinatorics toolkit used in his work and the techniques used by Müyesser's team were quite different, so the eventual collaboration wasn't obvious just by looking at the problem from the outside.
Even with both ends resolved, a middle range remained. Sets that are neither tiny relative to p nor close to filling the whole system could slip past the arguments built for either extreme. This wasn't a minor gap you could paper over with bookkeeping - the existing strategies were simply not designed to handle those structural interactions.
And that's often what makes research hard: a method can be strong in its intended range and still fail elsewhere for structural reasons, not because the proof "missed a step." To combine results, you have to understand what each method can't see.
How did randomness and anti-concentration close the gap?
The missing medium-size cases were solved by Lisa Sauermann and Huy Tuan Pham. They had known each other for years, and after a mathematics conference in Germany in 2025, they finally had the time to work together. The ongoing talks about the still-open conjecture led them to the problem, and a few days at a shared chalkboard gave them a path into the range that hadn't been covered before.
Their proof also began with a random ordering. But the key addition was a more detailed analysis of when dangerous configurations show up, and how likely they are to resist the repair steps.
A repair procedure has its own failure modes
Sauermann and Pham studied a repair procedure that looks at a random arrangement, finds a zero-sum sequence, and swaps its last number with another value still available. In many cases, that immediate swap does fix the problem. The proof had to do more than check that it works "often." It had to control what happens when things go wrong.
They identified three types of bad events:
- A zero-sum sequence appears near the end, leaving no suitable value to swap in.
- Several troublesome sequences appear close together, so repairs can't be carried out independently.
- A swap fixes one sequence but creates a new zero-sum sequence elsewhere in the ordering.
The key point wasn't whether these situations can happen - they can. The question was whether their combined probability can be shown to stay below 100%. If the probability of failure is strictly less than 1, then at least one starting ordering avoids all failure modes and ends up producing a valid arrangement after repairs.
This is a standard but effective proof strategy: define "failure" clearly, estimate how often it happens, and show those events can't cover all possibilities. You can't just say "randomness should help" and move on. The bounds have to survive the dependencies between events - because the events aren't independent.
Anti-concentration makes bad outcomes unlikely
Anti-concentration is about random variables not clustering too tightly on any single value. Here, the concern is that certain modular sums might land on zero with enough frequency to create the dangerous zero-sum intervals that the repair procedure would struggle with.
Sauermann and Pham used Fourier analysis to study these sums. In this setting, Fourier analysis helps estimate how likely different modular values are to arise from sums of randomly selected residues. Those estimates then feed into the probability calculations for the bad events in the repair procedure.
Once the probabilities for each failure type are controlled, they combine them into a single estimate. Since the goal is existence, the proof only needs the total probability of failure to stay below one. If failure doesn't happen every time, then some starting ordering must allow repairs to succeed.
They also proved a stronger statement about their procedure: in the parameter range they analyze, it eliminates the bad events at least 90% of the time. That doesn't mean every random ordering works, and it doesn't give a plug-and-play method for practical instances. It does show that the "random start and repair" approach succeeds with substantial probability in the mathematical setting of the theorem.
What does the result mean - and what remains open?
Taken together, the four papers establish Graham's rearrangement conjecture for sets of all sizes in the relevant modular setting, assuming the prime p is sufficiently large. The account doesn't pin down an explicit threshold; instead, it describes it as extremely large - on the order of 10100.
For mathematicians, the large-prime version is the central question as the conjecture was formulated there. The point isn't to squeeze the best possible constants for small numerical examples. But the qualifier matters if you're thinking about computation or any real-world use of the idea.
Existence is not the same as a practical construction
A proof can show that at least one valid ordering must exist without telling you how to find one for a particular input. In this case, the methods use random choices, repairs, probability estimates, and heavy analysis. They aren't presented as an implementation-ready algorithm with a predictable running time for everyday data sizes.
If you've built software, you've probably seen the same divide: a property can be guaranteed mathematically, while an actual implementation still needs an efficient search strategy, reasonable memory use, and behavior you can trust at realistic scale. The theorem answers the structural question. It doesn't automatically solve the engineering problem.
The juggling metaphor lands on the same conclusion. Even if the modulus were big enough to fall inside the proven range, the implied "routine" would be far too slow to execute in a performance. The theorem tells you what's possible in the model, not what's practical on stage.
The remaining boundary
The proof assumes p is sufficiently large. Extending the conjecture to every prime p is a technically separate question and wasn't covered by these papers. Some small cases can be checked directly, but a full proof would require removing the large-prime restriction.
The broader contribution is methodological. It shows how different tools can fit together: random sampling to get a candidate, a repair procedure to fix local defects, anti-concentration bounds to control the risk from troublesome sums, and collaboration to bridge cases that one technique alone can't handle.
That's more useful than treating randomness as a replacement for reasoning. Randomness can narrow the search and make global structure easier to prove, but the analysis still has to explain why the exceptional cases don't overwhelm the process.
Conclusion
Graham's conjecture took more than five decades to resolve because its simple rule hides several different kinds of problems. The small-set, large-set, and medium-set regimes needed different approaches, and the final gap required a careful argument for how random starts and repairs could fail - or, more importantly, couldn't fail all the time.
The final proof is a good example of randomness used with discipline: generate likely candidates, define precisely what can go wrong, and then bound how often the bad outcomes can add up. It settles the conjecture for sufficiently large prime moduli, while leaving the all-primes version and any practical construction as separate challenges. If there's a lesson here, it's not that randomness solves everything - it's that randomness can reveal guaranteed structure when you pair it with the right analysis and the right people.