← Latest papers
🔢 mathematics

Perfect $2$-codes over arbitrary alphabets

This paper confirms the conjecture that no perfect 2-codes exist over non-prime-power alphabets for specific cases, including when the alphabet size is of the form q=2αpβq=2^\alpha p^\beta with α20\alpha \leq 20 or sufficiently large.

Original authors: Michael A. Bennett

Published 2026-07-31
📖 9 min read🧠 Deep dive

Original authors: Michael A. Bennett

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are sending a secret message across a noisy, chaotic galaxy. Every time you transmit a letter, a mischievous space goblin might swap it for a different one, or drop it entirely. To survive this chaos, you don't just send the message once; you send it with extra "spare parts" built right into the code. This is the world of error-correcting codes, the invisible shield that keeps your text messages, space probes, and streaming videos from turning into gibberish.

In this universe, a "perfect code" is the holy grail. It's like a packing puzzle where you have a giant box (all possible messages) and you try to fit in as many "safe zones" (your actual messages) as possible. Each safe zone has a radius of protection around it. If a message gets hit by a goblin and changes slightly, it still lands inside one of these safe zones, and the receiver knows exactly which original message it was. A code is "perfect" if these safe zones fit together like a jigsaw puzzle with absolutely no gaps and no overlaps. If the puzzle has gaps, you might lose a message; if it overlaps, you might get confused about which message was sent.

For decades, mathematicians have been trying to solve the ultimate version of this puzzle: finding perfect codes that can fix two errors at once (a "perfect 2-code") using an alphabet of any size. While they found the perfect solutions for fixing three or more errors, and for fixing one error, the case for fixing exactly two errors with a "weird" alphabet size (one that isn't a simple power of a prime number, like 10 or 15) has remained a stubborn, unsolved mystery. It's the difference between knowing how to pack a suitcase perfectly with 2, 4, or 8 items, but having no idea if it's possible to do it perfectly with 6 or 10 items.

This paper, written by Michael Bennett, dives deep into that specific mystery. The author sets out to prove that for a very large and specific family of "weird" alphabet sizes, perfect 2-codes simply do not exist. The paper doesn't just guess; it uses a heavy artillery of advanced mathematics—specifically tools that measure how close numbers can get to each other without actually touching—to show that if such a code did exist, it would have to be so incredibly massive and strange that it would break the laws of arithmetic.

The main finding is a powerful "no-go" zone. Bennett proves that if you try to build a perfect 2-code using an alphabet size made of a power of 2 multiplied by a power of a single prime number (like 2α×pβ2^\alpha \times p^\beta), you are out of luck. Specifically, he shows that for these codes to even be theoretically possible, the prime number involved would have to be larger than 101010^{10} (ten billion), and the power of 2 would have to be larger than 20. Furthermore, if such a code existed, the prime number would have to leave a remainder of 3 when divided by 8.

The paper goes even further. It rules out the existence of these perfect codes for any alphabet size where the largest prime factor is 13 or smaller. In fact, the author confirms a long-standing conjecture that no perfect 2-codes exist for many specific numbers, including cases where the alphabet size is 2α×pβ2^\alpha \times p^\beta with small values of α\alpha (up to 20). The author doesn't just say "it's unlikely"; he uses rigorous mathematical proofs to demonstrate that the conditions required for such a code to exist lead to mathematical contradictions. While the paper doesn't rule out every single possible alphabet size in the universe, it effectively closes the door on the most common and interesting "weird" sizes, leaving only a tiny, highly constrained sliver of possibility that would require numbers so large they are practically unimaginable.

The Story of the Impossible Puzzle

To understand what Michael Bennett did, let's look at the puzzle he was trying to solve. Imagine you have a giant grid of all possible words you can make with a certain alphabet. You want to place "beacons" (your code words) on this grid. Around each beacon, you draw a circle that covers all words that are "close enough" (within a distance of 2 errors). For a code to be perfect, these circles must cover the entire grid without overlapping.

Mathematicians have known for a long time that if your alphabet size is a "prime power" (like 2, 3, 4, 8, 9, 16), there are only a few special cases where this works perfectly. But what if your alphabet size is something like 10, 12, or 20? These are "composite" numbers that aren't prime powers. For fixing one error, we know some solutions exist. For fixing three or more errors, we know none exist. But for fixing two errors? That was the open question.

Bennett's paper focuses on a specific type of composite number: those that look like 2α×pβ2^\alpha \times p^\beta. Think of this as an alphabet size made by multiplying a bunch of 2s by a bunch of copies of a single prime number pp (like 5, 7, 11, etc.). The question was: Can you build a perfect 2-code for these sizes?

The Mathematical Detective Work

Bennett didn't just try to build the codes and fail; he proved they couldn't exist by looking at the "roots" of a special polynomial equation. Think of this equation as a map that tells you where the beacons must be if a perfect code exists. If a perfect code exists, this map must have two specific integer points (roots) that are very close to each other.

The author's breakthrough was realizing that these two points, let's call them r1r_1 and r2r_2, have to be "S-units." In plain English, this means their prime factors can only come from a very small, specific list of numbers (the primes that divide the alphabet size and the number 2).

Here is the clever part: Bennett showed that for a perfect code to exist, these two numbers r1r_1 and r2r_2 would have to be incredibly close together—so close that their difference is tiny compared to their size. However, a famous branch of mathematics called Diophantine approximation (which studies how well you can approximate numbers with fractions) tells us that numbers with restricted prime factors usually can't get that close to each other unless they are very small.

Bennett combined this with a specific equation derived from the geometry of the problem:
q(r2r1)2=2(r1+r2)+q6q(r_2 - r_1)^2 = 2(r_1 + r_2) + q - 6
This equation is the "smoking gun." It links the alphabet size qq directly to the distance between the two roots.

The Big Reveal

Using this equation and powerful tools from number theory, Bennett proved a series of "impossibility" results:

  1. The "Small Prime" Ban: If the largest prime factor of your alphabet size is 13 or smaller, a perfect 2-code is impossible. He did this by listing all the possible pairs of numbers that could be the roots and showing that none of them fit the equation.
  2. The "Huge Number" Barrier: For the general case where the alphabet is 2α×pβ2^\alpha \times p^\beta, he proved that if a code did exist, the prime pp would have to be larger than 101010^{10} (ten billion). Even more restrictively, the power of 2 (α\alpha) would have to be greater than 20.
  3. The "Mod 8" Rule: If such a code existed, the prime pp would have to be a number that leaves a remainder of 3 when divided by 8 (like 3, 11, 19, etc.).

The paper essentially says: "We have checked the small numbers, and they don't work. For the big numbers, the math says they would have to be so enormous and follow such strict rules that they effectively don't exist in any practical sense."

The Schröder-Hipparchus Surprise

One of the most delightful parts of the paper is how it uses a sequence of numbers from classical combinatorics called Schröder-Hipparchus numbers (also known as super-Catalan numbers). These numbers, which usually appear in problems about counting ways to arrange parentheses or paths on a grid, suddenly show up in the middle of the error-correcting code proof.

Bennett used these numbers to expand a complex equation into a series of terms. It's like finding a hidden pattern in a chaotic noise. By expanding the equation using these numbers, he could show that the terms grow too fast to allow the "close proximity" required for a perfect code to exist, unless the numbers involved are absurdly large.

The Final Verdict

So, what is the bottom line? The paper confirms a long-held suspicion in the mathematical community: Perfect 2-codes over arbitrary alphabets likely do not exist.

While the paper doesn't claim to have found the one perfect code that might be hiding in the universe (because it proves that if one exists, it must be larger than 101010^{10} and follow impossible constraints), it effectively rules out the vast majority of cases. It closes the door on alphabet sizes like 10, 15, 21, and many others, and pushes the possibility of a solution so far into the realm of giant numbers that it is considered practically non-existent.

The author's work is a triumph of "negative" proof. Instead of finding a treasure, he proved that the treasure chest is empty, or at least that the key to opening it requires a lock that hasn't been invented yet. For anyone trying to build error-correcting codes for these specific alphabet sizes, the message is clear: stop looking for a perfect 2-code; it's not there.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →