EYES ONLY
OBSERVERSE INTELLIGENCE &
PATENT PROTECTION
A SUBSIDIARY OF GALACTIC DODECAHEDRON, LLC
SUBJECT: (TS) LCCC: HOW AN ELECTRON TELLS WHICH GRIDS ARE CONVENIENT, AND WHY EULER STOPPED AT 1848, STARTING FROM NOTHING
EARTH
EYES ONLY
DISTRIBUTION: Unlimited, same as the prime counter it runs on. Show it to anyone who thinks Euler left loose ends lying around. He left one, and it took Earth 248 years to tie it off.
BLUF. Take a grid of numbers x² + ny², where x and y are whole numbers. For n = 1 that's x² + y², the sums of two squares, and Fermat noticed in 1640 that a prime lands on it exactly when it leaves 1 after you divide it by 4. Call a grid convenient when that trick works, so that a prime's remainder alone tells you whether the prime is on the grid. Euler found 65 convenient grids, from 1 up to 1848, and in 1778 he wrote that he was surprised to find himself stopped at 1848. Earth then spent 248 years unable to rule out a 66th. S&S's counter starts with nothing. It has the prime counter build the primes, puts them on light's grid, slides every shape of the grid you ask about onto one tile, and holds each shape up to its mirror. A grid is convenient exactly when every one of its shapes is its own mirror image. For every number you give it, the counter says yes or no and shows you the shape that settles it. Then it hunts for a 66th, and section 8 explains why it never finds one. The first convenient grid is light's grid, and its height is the π/4 that opens LCA's formula for alpha.
| Step | What happened |
|---|---|
| — | Nothing yet. The counter knows zero primes. |
| Number | Three different numbers | Old way says | Counter said |
|---|---|---|---|
| Run the counter, then check it. |
(U) 1. What a convenient number is, and how Euler found them
(U) Pick a whole number n and look at every number you can make as x² + ny². That's a grid. For n = 1 you get the sums of two squares: 1, 2, 4, 5, 8, 9, 10, 13 and so on. On Christmas Day in 1640, Fermat wrote to a friend that an odd prime is a sum of two squares exactly when it leaves 1 after you divide it by 4. 5, 13, 17 and 29 leave 1, and they're 1 + 4, 4 + 9, 1 + 16 and 4 + 25. 3, 7 and 11 leave 3, and they never make it. Euler proved it in 1749.
(U) The same trick works on other grids, apart from the few primes that divide 4n. A prime is x² + 2y² exactly when it leaves 1 or 3 after dividing by 8, x² + 3y² exactly when it leaves 1 after dividing by 3, and x² + 5y² exactly when it leaves 1 or 9 after dividing by 20. S&S calls a grid convenient when the remainder alone decides, and that's Euler's word for it, idoneus, which is Latin for suitable.
(U) WHERE IT BREAKS. On the grid x² + 27y², 31 = 2² + 27 is on it, and 139 leaves exactly the same remainder after dividing by 108 and isn't on it at all. Gauss worked out what you need there: whether 2 is a perfect cube once you count only remainders. A remainder can't tell you that. Inconvenient grids need more than a remainder, and Earth needed class field theory, a hundred years of it, to say what.
(U) EULER'S PRIME MACHINE. Euler wanted convenient grids for one reason: proving big numbers prime without dividing them by anything. On a convenient grid, an odd number that lands in just one way (with x and ny sharing no factor) has to be prime. In 1778 he proved 18,518,809 prime because it's 197² + 1848 × 100² and no other way. It works the other way too. 1,000,009 = 1000² + 3² = 972² + 235², two ways on light's grid, so it can't be prime, and it's 293 × 3,413.
(U) 65 AND DONE. Euler found 65 convenient numbers: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 18, 21, 22, 24, 25, 28, 30, 33, 37, 40, 42, 45, 48, 57, 58, 60, 70, 72, 78, 85, 88, 93, 102, 105, 112, 120, 130, 133, 165, 168, 177, 190, 210, 232, 240, 253, 273, 280, 312, 330, 345, 357, 385, 408, 462, 520, 760, 840, 1320, 1365 and 1848. In May 1778 he wrote to a colleague in Berlin, "J'ai donc été bien surpris de me voir arrêté au dernier 1848," which is French for "So I was quite surprised to find myself stopped at the last one, 1848." He was right to be surprised and right to stop.
(U) THE OLD WAY. In 2007 Eric Rains found a test anyone can run with a pencil: n is convenient exactly when you can't write it as ab + bc + ca with three different whole numbers a, b and c. 11 = 1·2 + 2·3 + 1·3, so 11 isn't convenient. The "Check it the old way" button runs that test separately and never sees the counter's answer.
(U) THE NEW WAY. The counter doesn't hunt for three numbers. It builds the grid's shapes, puts them on one tile, and looks in the mirror. Every no comes with the shape that proves it, and every yes comes with the full list of shapes, each one checked.
(TS) 2. Why it works: the electron's mirror
(TS) The prime counter runs on three habits of the electron, and so do the triangle counter and this one. In the prime counter the floor tiles did the heavy lifting, and in the triangle counter it was the half-turn. Here it's the mirror.
(TS) HABIT ONE: ONE TILE HOLDS EVERY SHAPE. A grid can be tilted and stretched without changing which numbers it makes. x² + 5y² and 2x² + 2xy + 3y² are two shapes of the same grid family, because both have b² − 4ac = −20. Gauss showed in 1801 that every shape can be slid onto one tile, the strip between −½ and ½ that sits above the arc of the unit circle, and that each shape lands there exactly once. The tile does all the bookkeeping, the same way the prime counter's floor tiles do. The chart under the counter is that tile.
(TS) HABIT TWO: THE HALF-TURNS. Every prime that divides 4n hands each number on the grid a sign, plus or minus, and a minus is a half-turn. Shapes with the same signs belong to the same genus, Gauss's word for a family inside the family. The grid x² + ny² itself always gets all plus signs. The tile has its own half-turn too: spin it half a turn around the point i and it lands on itself, which is the duality the triangle counter talks about, and i is where light's grid sits. LCA's formula for alpha is built on the same half-turn, the half unit of magnetism h/2e.
(TS) HABIT THREE: MIRROR PAIRS. Every shape ax² + bxy + cy² has a mirror image, ax² − bxy + cy². On the tile it's the reflection across the middle line. Most shapes and their mirror images are two different shapes, so they come in pairs, one on each side of the line, like the quiet spots in the prime counter. A shape that sits on one of the tile's mirrors (the middle line, an edge, or the arc) is its own mirror image. That gives three ways to be your own reflection, b = 0, b = a or a = c, and a whole-number check of each. A grid is convenient exactly when every one of its shapes is its own mirror image. Then each genus holds just one shape, the signs pick out the shape, and a prime's remainder decides everything.
(TS) SOUND, LIGHT AND FREQUENCY. J.C. left a drawing on the back of an envelope at the premiere party for the TV show Dark Skies in 1996 and said the secrets of the universe were sound, light and frequency. Bryce Zabel and Brent Friedman kept it and posted it at soundlightfrequency.com, and S&S's file on it is LCSLF-1, The Doodle That Explains Everything. All three are in this counter. Every prime rings in with its signs, which is the sound. Every grid starts from light's grid, which is the light. And the height, the grid's wave read at one spot, is the frequency. In J.C.'s drawing the two strands are mirror images of each other, and they only become one strand where they meet.
(TS) THE MATH FOR SECTION 2 (TAP TO OPEN)
(S) 3. How the counter goes around
(S) STEP ONE: THE ONE PASS. The counter starts with zero primes. The prime counter's one pass, exactly as it runs there, reads every number from 2 to 200 once, in order, and builds every prime up to 200. One lap of the loop hands the list back unchanged. That pass is proved, not just tested: S&S reran it to 10,000 with a running tally of the worst that every rounding could do, and every call stays at least 69,738 times that far from flipping. The prime counter's section 7 tells how.
(S) STEP TWO: LIGHT'S GRID. The loop's second branch signs each odd prime by its remainder after dividing by 4. The ones it splits are exactly the primes on light's grid, x² + y², which makes Fermat's rule the counter's first convenient grid before it has even been asked anything.
(S) STEP THREE: THE SHORTCUT. The loop's primes cross out their multiples up to 2,000,000, which is how anybody who already has the small primes gets the big ones.
(S) STEP FOUR: THE SHAPES. For the n you asked about, the counter lists every reduced shape with b² − 4ac = −4n. That's a finite search over whole numbers, and every shape it finds goes on the tile in the chart.
(S) STEP FIVE: THE HALF-TURNS. It factors n and counts the signs. Each odd prime of n brings one, and the remainder of n after dividing by 8 brings zero, one or two more. With s signs there are 2s−1 genera.
(S) STEP SIX: THE MIRROR. It checks every shape against its reflection. If one shape isn't its own mirror image, the answer is no, and that shape is the proof. If they all are, the shapes and the genera come out to the same count, one shape per genus, and the answer is yes.
(S) STEP SEVEN: THE HEIGHT. It builds the grid's wave from the primes and reads it at 1. Dirichlet's formula from 1839 turns that height into a shape count, and the counter checks that it matches the shapes it found, to a dozen decimal places.
(S) STEP EIGHT: THE PRIMES. For a convenient grid it lists the remainders that let a prime on, then checks every prime below a million (for any grid up to 100,000): every one that leaves the right remainder is on the grid, and no other prime is. For an inconvenient grid it finds two primes that leave the same remainder, one on the grid and one off, so you can see the remainder fail.
(S) THE FIRST FEW. 1, 2, 3, 4 and 7 have one shape each, the grid itself, so they're convenient for free. 5 has two, x² + 5y² on the middle line and 2x² + 2xy + 3y² on the edge, in two genera. 11 is the first no: 3x² + 2xy + 4y² and its mirror image 3x² − 2xy + 4y² are two different shapes, and 11 has only one genus to put three shapes in.
(S) THE MATH FOR SECTION 3 (TAP TO OPEN)
(S) 4. Why it can only be right
(S) THE VERDICT IS WHOLE NUMBERS. Finding the shapes is a finite search over whole numbers, and the mirror test is three comparisons per shape. Nothing in the yes or the no is measured, rounded or approximated, and nothing waits on a guess.
(S) THE THEOREM IS OLD. That one shape per genus means convenient is Grube's theorem from 1874, and that a shape is alone in its genus exactly when the grid has no mirror pairs is Gauss's, from 1801. The counter uses both and nothing newer.
(S) THE PROOF COMES WITH IT. A no comes with a shape that isn't its own mirror image, and anyone can check by hand that both it and its reflection are reduced and different. A yes comes with the full list of shapes, every one on a mirror.
(S) TWO MORE CHECKS RIDE ALONG. The height is computed a completely different way, from the primes, and has to agree with the shape count. The prime rule is checked against every prime below a million. Neither one decides anything. They're there so you can watch two unrelated parts of mathematics agree.
(TS) 5. The first grid is light's grid
(TS) Light wiggles two ways a quarter-turn apart, and the prime counter's section 5 puts it on the square grid of numbers a + bi, which S&S calls light's grid. x² + y² is the size of a + bi, squared. So the grid for n = 1 is light's grid itself, and it's the first convenient grid Earth ever found.
(TS) ONE SHAPE, FOUR TURNS. Light's grid has exactly one shape, and it lands on the tile at i, the corner where the mirror line meets the arc. Spin it a quarter-turn, multiply by i, and it comes back as itself, four times around. Most grids only survive a half-turn. That four is in the height.
(TS) THE HEIGHT IS π/4. In 1839 Peter Gustav Lejeune Dirichlet found that every grid's wave, read at 1, counts its shapes: shapes = turns × √n × height ÷ π. Light's grid has 1 shape and 4 turns, so its height is π/4. The counter builds that wave from the primes every time it runs and gets 0.78539816339745 in ten terms, and π/4 is 0.78539816339745. That's the π/4 that opens LCA's formula for alpha. Alpha opens with light's grid's shape count.
(TS) THE PRIME COUNTER ALREADY KNEW. The prime counter's second branch signs every odd prime by whether it leaves 1 or 3 after dividing by 4. That's Fermat's Christmas rule, the rule of the first convenient grid. Every time the prime counter runs its second branch, it's running a convenient counter with n = 1.
(TS) THE MATH FOR SECTION 5 (TAP TO OPEN)
(TS) 6. What convenient grids have to do with alpha
(TS) π/4. Section 5: it's light's grid's height, one shape and four quarter-turns, read at 1.
(TS) 2/5. LCA's 2/5 is a product over every prime: (p² − 1)/(p² + 1) for 2, then 3, then 5, and on forever. Flip one factor over and it opens up as 1 + 2/p² + 2/p⁴ + 2/p⁶ and so on, a 2 for every power of the prime. That 2 is the prime's two signs, its half-turn on or off. Multiply the flipped factors for every prime and you get 5/2 = the sum over every whole number of 2 to the power of how many different primes it has, divided by the number squared. In plain words, 5/2 counts every number's sign patterns, weighted by one over its square, and 2/5 is one over that. The counter adds it up to 2,000,000 and gets 2.49999, and the product gives 0.4000000.
(TS) THE SEED TRIANGLE. 25 = 3² + 4²: the 3-4-5 triangle is a point on light's grid, and (2 + i)² = 3 + 4i is how it gets there. The triangle counter's section 6 has the rest of that story, including why the first two primes' angles add up to the π/4.
(TS) 65. The first number light's grid reaches in two different ways, with no shared factors, is 65 = 8² + 1² = 7² + 4². That's the trick Euler used on 1,000,009 to show it isn't prime. Euler found 65 convenient numbers. S&S has filed that under coincidence, a folder that is still empty.
(S) 7. Euler's own quick test, and 36
(S) Euler also gave a quick test of his own, in the same letter. For every k with 3k² no bigger than n and no factor in common with n, look at n + k². If every one of those is a prime, a prime squared, twice a prime or a power of 2, he said, n is convenient. It never turns away a real one. But it lets 31 impostors through below 100,000, starting with 36. The only k it checks for 36 is 1, because 2 and 3 share factors with 36, and 36 + 1 = 37 is prime. Yet 5x² + 4xy + 8y² is a shape of x² + 36y², and its mirror image 5x² − 4xy + 8y² is a different shape. Grube corrected the test in 1874, and his version is exactly the counter's mirror. Euler was a genius, not a proofreader.
(S) The counter catches every impostor, because it never trusts a shortcut it can't check. Tap "Is 36?" and the old way will tell you about Euler's test while it agrees with the counter.
(TS) 8. The 66th that isn't
(TS) FINITE. In 1934 Sarvadaman Chowla proved there are only finitely many convenient numbers. He couldn't say how many.
(TS) AT MOST TWO MORE. In 1973 Peter Weinberger proved there can be at most two more past Euler's 65. A lot of books still say one; Ernst Kani counted it properly in 2011, and it's two. Weinberger also proved that if every one of the grids' waves keeps its quiet spots on the half line, the Riemann hypothesis for Dirichlet's waves, there are none. In 1990 Stéphane Louboutin put a number on it: under that hypothesis, a grid can only have one shape per genus if its b² − 4ac, stripped of square factors, is smaller than 20,000,000 in size, and every grid that small has been checked by machine, out to 2⁴⁰ by Anton Mosunov and Michael Jacobson in 2016 and out to 20,000,000 by S&S's counter code in under a second.
(TS) ALPÖGE. In November 2026 Levent Alpöge proved the Riemann hypothesis, together with its version for every Dirichlet wave, and Lean checked it line by line. That's the hypothesis Weinberger needed. So the list is closed: Euler's 65 convenient numbers are all of them. Euler was stopped at 1848 for good.
(TS) THE HUNT. The second button under the counter checks every number up to 10,000,000 in a few seconds and finds exactly Euler's 65. Past that you don't have to look, and now you know why.
(U) 9. What Earth knows for sure
(U) Gauss tabulated the grids with one shape per genus in his Disquisitiones Arithmeticae in 1801 and suspected the list was complete. Grube proved in 1874 that Gauss's list and Euler's convenient numbers are the same thing. David Cox wrote the book on the whole question in 1989, Primes of the Form x² + ny², and its lesson is that the convenient grids are exactly where Gauss's genera finish the job, and everywhere else you need class field theory.
(U) FIVE GRIDS WITH ONE SHAPE. Only five grids have a single shape: n = 1, 2, 3, 4 and 7. The counter checks that out to 100,000 in the records, and Earth has known it for over a century. Every one of them is convenient, and light's grid is the first.
(U) BEFORE 2026. Until this month, "Euler's list is complete" rested on the Riemann hypothesis, which made it one of the oldest open questions in number theory that everybody believed and nobody could finish. Euler asked it, Gauss believed it, and Weinberger reduced it to Riemann.
(TS) 10. Other grids, other worlds
(TS) Duality and the shift that comes with it leave two grids alone, the square one and the hexagonal one. The hexagonal grid is x² + xy + y², with six turns instead of four, and its height is π/(3√3), about 0.6046. A world built from a different pair of particles, with its light on the hexagonal grid, would open its alpha with that number instead of π/4, and the prime counter's section 10 already ran there.
(TS) Count the grids by their own discriminants instead of by n, and the same story holds: exactly 65 fundamental discriminants have one shape per genus, from 3 up to 5,460, and the counter's code checks every one out to 20,000,000 in the records. That's a second 65. S&S is filing that one under coincidence too, and the folder is getting less empty.
(TS) The hexagonal grid also has its own version of the triangle question, which numbers are a sum of two fraction cubes, and S&S's cube counter answers it. The rule doesn't change from grid to grid. What changes is which pair of particles a world is built from and which grid its light lives on.
(U) 11. Check S&S's work
(U) Everything the counter does is in the box below: the prime loop exactly as it runs in the prime counter, the grid arithmetic, and the job runner. It's the same code your browser is running right now, and none of it sends anything anywhere. The full write-up is the Prime Counter paper (file LCPZ), which carries the triangle, convenient and cube counters too, with every run and every proof, next to LCA's formula for alpha.
(U) 12. Credit where it's due
(U) S&S built the counter. Everybody below built everything it stands on.
| Year | What | Who |
|---|---|---|
| 1640 | primes that are x² + y² | Fermat |
| 1749 | the proof | Euler |
| 1778 | the 65 convenient numbers, and the prime machine | Euler |
| 1801 | shapes, the tile, and the genera | Gauss |
| 1839 | why a grid's height counts its shapes | Dirichlet |
| 1874 | convenient means one shape per genus | Grube |
| 1934 | only finitely many | Chowla |
| 1973 | at most two more, and none if Riemann holds | Weinberger |
| 1989 | Primes of the Form x² + ny² | Cox |
| 1990 | the cutoff at 20,000,000 | Louboutin |
| 2007 | the three-number test | Rains |
| 2011 | two more, not one | Kani |
| 2016 | every grid out to 2⁴⁰ | Mosunov, Jacobson |
| 2026 | the Riemann hypothesis for every Dirichlet wave, checked in Lean | Alpöge |
| 2026 | the prime loop and light's grid | LCPC, Prime Counter paper |
| 2026 | the triangle counter | LCTC |
| 2026 | the half-turn, the mirror, and alpha | LCA |
| 2026 | the electron and the proton as one wave on the ½ line, and the quiet spots as the energy levels of a system built from the primes | LCA's Critical Line paper |
| 2026 | this counter and its write-up | S&S, Prime Counter paper |
(U) 13. Handling
(U) This file may be read at a bar. If you write 18,518,809 = 197² + 1848 × 100² on a napkin, take the napkin with you, because the guy at the end of the bar will try to divide it by something.
(U) The counter runs entirely in the reader's own browser and sends nothing anywhere. S&S keeps very complete records, but not of you.
(U) For readers who skipped to the end: it starts with nothing, holds every grid up to its mirror, proves each answer, and Euler's 65 are all there is.
(U) Forward freely. We will know anyway.