Thanksgiving wheel: who brings what

Research

For teachersGrades 11–12 and college · Number theory and probability

The Riemann Hypothesis on a Spinning Wheel

In 1931, Arnaud Denjoy compared the Riemann hypothesis to a game of chance: give every whole number a 0, +1 or −1 as if spun on a three-slice wheel, keep a running total, and the hypothesis is equivalent to the real total growing no faster than x raised to any power above one half, about the pace at which a wheel's total wanders. We counted the real total for every number up to 7,800,000,000. From 201 on, it stays within half the square root of x until 7,725,038,629. A walk of Denjoy's wheel stays inside that band just to 10,000 about once in 60,000 walks. We worked out the wheel's odds exactly, checked them with 120,000,000 simulated spins of Wheel Cue's random code, and turned the first 100 numbers into a class activity.

Published November 24, 2026 · 120,000,000 simulated spins · Simulation script · Raw results (JSON), licensed CC BY 4.0 · Article licensed CC BY-NC-ND 4.0

Give every whole number a 0, a +1 or a −1

Take a whole number and break it into primes. If some prime appears twice, as in 12 = 2 × 2 × 3, the number gets a 0. If every prime appears once, the number gets +1 when there is an even count of them and −1 when the count is odd: 6 = 2 × 3 gets +1, 30 = 2 × 3 × 5 gets −1, and a prime such as 7 gets −1. The number 1 gets +1. These values are called the Möbius function, written μ(n).

Now add them up as you go: 1, then 1 + (−1) = 0 for the number 2, then −1 for the number 3, and so on. The running total, M(x), moves up and down by at most 1 at each number. It is a walk, and since the prime factors decide every step, we will call it the primes' walk. The Riemann hypothesis turns out to be a statement about how far this walk can stray.

Exact. 0 when a square divides n (4, 8, 9, 12 …); otherwise +1 for an even number of prime factors and −1 for an odd number. After 100 numbers the total is +1.
nPrime factorsμ(n)Running total M(n)
11+1+1
22−10
33−1−1
42²0−1
55−1−2
62 × 3+1−1
77−1−2
82³0−2
93²0−2
102 × 5+1−1
1111−1−2
122² × 30−2
1313−1−3
142 × 7+1−2
153 × 5+1−1
162⁴0−1
1717−1−2
182 × 3²0−2
1919−1−3
202² × 50−3
213 × 7+1−2
222 × 11+1−1
2323−1−2
242³ × 30−2
255²0−2
262 × 13+1−1
273³0−1
282² × 70−1
2929−1−2
302 × 3 × 5−1−3

Out of the first 100 numbers, 61 have no repeated prime: 31 of them get +1 and 30 get −1, so the total after 100 numbers is +1. We counted every number up to 7,800,000,000. At one billion the total is −222, and 60.7927% of the numbers up to there have no repeated prime. The long-run share is 6/π² = 60.7927%.

Where the Riemann hypothesis comes in

The Riemann zeta function starts from the series ζ(s) = 1 + 1/2^s + 1/3^s + 1/4^s and so on, extended to complex numbers s. The hypothesis says that all of its non-trivial zeros lie on one vertical straight line, as the Clay Mathematics Institute puts it: the line where the real part of s is 1/2. Arnaud Denjoy remarked in 1931 that nobody knew on what grounds Riemann had said the zeros very probably lie there.

The walk enters through a second series. One divided by ζ(s) equals μ(1)/1^s + μ(2)/2^s + μ(3)/3^s and so on, with the Möbius values on top. In a four-page note of 1912, J. E. Littlewood showed that if the hypothesis is true, this series converges for every s whose real part is above 1/2 (Comptes rendus de l'Académie des sciences, volume 154). For the walk, that means M(x) grows more slowly than x raised to any power above one half: slower than x^0.51, slower than x^0.501, and so on.

The reverse direction is the easier one. If the walk grew no faster than x^(1/2 + ε) for every ε > 0, the series for 1/ζ(s) would converge to the right of the line, so ζ(s) could have no zeros there, and because the zeros come in pairs placed symmetrically about the point 1/2, none to the left of the line either. Denjoy called remarks of this kind very elementary and long known. Put together, the hypothesis is true exactly when the walk M(x) never outgrows x^(1/2 + ε), however small ε is.

Denjoy's three-slice wheel

Why would anyone expect the walk to grow like a square root? In 1931, in a note of three pages, Arnaud Denjoy offered what he called a very simple idea leading straight to Riemann's intuition. A large number picked at random has no repeated prime with a chance close to 6/π², about 60.8%. Suppose such a number is as likely to have an even count of prime factors as an odd one. Then μ(n) behaves like a spin of a wheel with three slices: 0 with chance 1 − 6/π² (39.2%), +1 with chance 3/π² (30.4%) and −1 with chance 3/π² (30.4%).

A walk of such spins wanders like any random walk. After x spins its spread, the standard deviation, is 0.78 × √x, and its expected distance from 0 stays below a constant times x^(1/2 + ε), whatever ε > 0. So if the primes behaved like the wheel, the hypothesis would follow. Denjoy stated it as an assumption, and he turned it around: a proof of the bounds on M(x) would show that numbers with an even or odd count of prime factors are spread out as in a standard game of chance.

That makes the comparison concrete enough to test. Spin the wheel, and compare its walk with the primes' walk, number by number.

The primes stay closer to 0 than the wheel, up to 7,725,038,628

Here is what the count shows. From x = 201 on, the primes' walk stays within half the square root of x, |M(x)| < ½√x, at every single number up to 7,725,038,628. At x = 7,725,038,629 the total reaches +43,947, just past ½√x, for the first time.

The farthest the primes' walk gets from 0, measured in √x0.000.200.400.60to 1,000: 0.5670.567to 1,000to 10,000: 0.4720.472to 10,000to 100,000: 0.4630.463to 100,000to 1 m: 0.4380.438to 1 mto 10 m: 0.4180.418to 10 mto 100 m: 0.4630.463to 100 mto 1.0 bn: 0.4640.464to 1.0 bnto 7.8 bn: 0.5710.571to 7.8 bnStretch of numbersLargest |M(x)| ÷ √x
Exact, counted for every x. Each bar is one stretch of numbers, from 101–1,000 up to 1,000,000,001–7,800,000,000. Two bars pass 0.5: the first at x = 199, just below the 200 where von Sterneck's bound starts, and the last, which first passes it at x = 7,725,038,629 and peaks at 0.571 at x = 7,766,842,813. After 100,000 spins, a wheel walk sits 0.62 × √x from 0 on average.
Show the numbers
NumbersLargest |M(x)| ÷ √xAt xM(x) there
101–1,0000.5671199−8
1,001–10,0000.47222,803−25
10,001–100,0000.463024,185−72
100,001–1,000,0000.4378300,551+240
1,000,001–10,000,0000.41821,066,854+432
10,000,001–100,000,0000.462730,919,091−2,573
100,000,001–1,000,000,0000.4642179,919,749−6,226
1,000,000,001–7,800,000,0000.57067,766,842,813+50,286

A wheel walk does not stay that close. After 100,000 spins it is inside ½√x only 48.0% of the time, and staying inside at every number for a long stretch is far rarer:

Exact chances for Denjoy's wheel (0, +1, −1 with chances 1 − 6/π², 3/π², 3/π²), from a step-by-step table of the walk's position. The primes' walk stays inside ½√x from 201 to 7,725,038,628.
NumbersA wheel walk stays inside ½√xA wheel walk stays inside √xThe primes' walk
201 to 1,0001 in 13032.66%always
201 to 10,0001 in 60,0009.95%always
201 to 100,0001 in 3.2 × 10⁷2.98%always
201 to 1,000,0001 in 1.8 × 10¹⁰0.89%always
201 to 10,000,0001 in 1.0 × 10¹³—always

The difference shows in how near 0 the two walks usually sit. Of all the primes' running totals from 201 to 7,800,000,000, 39.8% are within 0.1 × √x of zero. A wheel walk is that close only 10.2% of the time.

Exact. The first column counts every running total from x = 201 on; the second is the exact distribution of where one walk of Denjoy's wheel sits.
How close to 0The primes' walk, all x from 201 to 7,800,000,000A wheel walk after 100,000 spins
Within 0.1 × √x39.8%10.2%
Within 0.25 × √x84.5%25.3%
Within 0.5 × √x99.3610%48.0%
Within 1 × √x100%80.1%

So in this range the primes do not look like a typical spin of Denjoy's wheel. They look tamer. That is no problem for the hypothesis, which only asks the walk not to outgrow x^(1/2 + ε), a far looser limit than ½√x. Our count reproduces the first crossing of ½√x that Cohen and Dress found, as A. M. Odlyzko and H. J. J. te Riele reported in 1985: x = 7,725,038,629, with M = 43,947.

Why billions of numbers prove nothing

The line ½√x has a history. As Odlyzko and te Riele recount, von Sterneck published values of M(x) up to five million, conjectured on that evidence that |M(x)| < ½√x for every x above 200, and called it a "yet unproved, but extremely probable" law (in their English). It is false, and the first number where it fails is the 7,725,038,629 above. A pattern that held for every x from 201 to more than seven billion still broke.

The bound √x went the same way. Mertens published a table of M(x) up to 10,000 in 1897 and, on that evidence, judged |M(x)| < √x very probable. In 1985, Odlyzko and te Riele proved that M(x) ÷ √x rises above 1.06, and falls below −1.009, for larger and larger x, so Mertens's bound fails too. Their proof is indirect. It does not name a single x where |M(x)| > √x, and at the time they suspected there is none below 10²⁰, perhaps not even below 10³⁰. Our count stayed far from it: from x = 201 to 7,800,000,000, the largest |M(x)| ÷ √x is 0.571.

Neither failure touches the Riemann hypothesis. Mertens's bound would have implied it, but the hypothesis does not need it, and Odlyzko and te Riele point out that their disproof says nothing about whether the hypothesis is false. What the history does show is the difference between evidence and proof. Von Sterneck's bound agreed with every number for more than seven billion, and Mertens's agrees with every number we counted, yet both are false. Our 7,800,000,000 numbers agree with the hypothesis too, and that is all a count can do.

In class: the first 100 numbers against 100 spins

For a class that has met prime factorization, the comparison fits in one lesson. On the decision wheel, type ten entries, one per line: four 0s, three +1s and three −1s. That is close to Denjoy's odds (40%, 30%, 30% instead of 39.2%, 30.4%, 30.4%) and easy to check by eye.

  1. Factor and mark. Split the numbers 1 to 100 among groups. Each group factors its numbers and writes 0, +1 or −1 next to each.
  2. Walk in order. Collect the values in order and keep a running total. Plot it on a number line from −10 to +10.
  3. Spin the wheel. Each student spins 100 times and plots a second walk on the same axes.
  4. Compare. In order, the primes' walk gets at most 4 away from 0 in the first 100 numbers (at n = 31) and ends at +1. A walk of 100 spins of the ten-slice wheel stays within 4 of 0 only 6.4% of the time, and on average its farthest point is 9.2 from 0.

In a class of 24, that is about 1.5 wheel walks on average staying as close to 0 as the primes' walk, and all the rest wandering further. It is the same pattern as in the count to 7,800,000,000, on a scale students can draw. The simulator below draws the two walks for up to 100,000 numbers. The page prints as a handout with the Print or save as PDF button under the title.

The primes against the wheel

The page works out μ(n) for every number up to the length you choose and draws the primes' walk. Then it spins Denjoy's wheel once per number and draws your walk next to it, with the ½√x lines. The spins use the same random code as the wheels on this site.

Press Spin one walk to race the primes over 10,000 numbers.

Everything runs in your browser. With 100,000 numbers, the second button spins 100 walks instead of 1,000.

How we counted and spun

The values μ(n) and the walk M(x) are counted exactly for every x up to 7,800,000,000, with a segmented sieve that we checked against a plain sieve for the first two million numbers. The wheel walks are worked out exactly with a step-by-step table of the walk's position, dropping positions outside the band from x = 201 on, up to 10,000,000 spins for ½√x and 1,000,000 for √x.

We also spun 10,000 walks of 10,000 spins of Denjoy's wheel through random.js, the code behind every spin on Wheel Cue, as a wheel of one billion tickets (392,072,898 for 0 and 303,963,551 each for +1 and −1), plus 200,000 class walks of 100 spins: 120,000,000 simulated spins in all. All 9 comparisons with the exact values agreed within four standard errors (the largest gap was 3.40), and the count matched both published values from 1985. The script and the raw results are linked at the top of the page.

Sources, each read in a scan of the original: J. E. Littlewood, "Quelques conséquences de l'hypothèse que la fonction ζ(s) de Riemann n'a pas de zéros dans le demi-plan R(s) > 1/2", Comptes rendus de l'Académie des sciences 154 (1912), pages 263–266 (scan); Arnaud Denjoy, "L'hypothèse de Riemann sur la distribution des zéros de ζ(s), reliée à la théorie des probabilités", Comptes rendus de l'Académie des sciences 192 (1931), pages 656–658 (scan); A. M. Odlyzko and H. J. J. te Riele, "Disproof of the Mertens conjecture", Journal für die reine und angewandte Mathematik 357 (1985), pages 138–160 (scan), for Mertens's and von Sterneck's bounds and the values of Cohen and Dress; the Clay Mathematics Institute's page on the Riemann hypothesis.

How this research was made

The results on this page come from a simulation that runs real draws through random.js — the same file that picks every winner on Wheel Cue — and from the exact formula wherever one exists, and the two are checked against each other. Simulated results are labelled as simulations: they are not usage figures for this site.

The script and its raw output are published with the page, so anyone can re-run the study. The raw results (the JSON file) are free to reuse under the CC BY 4.0 license, with credit to Wheel Cue. The article itself is licensed under CC BY-NC-ND 4.0: print it and share copies, complete and unchanged, with credit to Wheel Cue, but do not sell them (terms). If you find a mistake, tell us: corrections are dated in the changelog. How the research is made →

Frequently asked questions

Does this prove the Riemann hypothesis?

No. A count can only check finitely many numbers, and the article shows two bounds, ½√x and √x, that agreed with every number checked for a long way and are still false. The count agrees with the hypothesis; it cannot prove it.

What does the Möbius function have to do with the Riemann hypothesis?

1/ζ(s) is the series μ(1)/1^s + μ(2)/2^s + μ(3)/3^s and so on. Littlewood showed in 1912 that the hypothesis makes this series converge whenever the real part of s is above 1/2, and the converse is elementary, so the hypothesis is the same as saying the running total M(x) grows no faster than x^(1/2 + ε) for every ε > 0.

Why compare the primes with a wheel?

Because Arnaud Denjoy did, in 1931: if a number with no repeated prime were equally likely to have an even or odd count of prime factors, μ(n) would act like a wheel with slices 1 − 6/π², 3/π² and 3/π², and the hypothesis would follow. It is a heuristic, not a proof.

Make Denjoy's wheel for your class

Type 0 four times, +1 three times and −1 three times, one per line, and spin.