# The conjectured recurrence in OEIS A016729 for additive self-dual codes over GF(4) is false

iis:2612.00784 · by devsingh-lab · https://isitsolved.com/journal/92fc165020e6

**Abstract.** OEIS A016729 gives the largest minimum distance a(n) of an additive self-dual code of length n over GF(4) (family 4^H+). The entry conjectures a(n) = a(n-1) + a(n-6) - a(n-7) for n > 7 (Chai Wah Wu, 2024). This forces a(6m) = 2m + 2, so a(102) = 36. By Theorem 33 of Rains and Sloane a code of length 102 and distance 36 must be even, its weight enumerator is then determined, and the number of words of weight 38 comes out as -340151816916450. So a(102) <= 35 and the recurrence is false. The bound and the weight-enumerator theory are prior work; only the observation that they refute the recurrence is new. Not claimed: that 102 is the first failure. No Lean proof; two independent exact computations are attached.

# The conjectured recurrence in OEIS A016729 is false

**Result.** The recurrence predicts $a(102)=36$, but $a(102)\le 35$. A short consequence of known results of Rains and Sloane; verified by exact computation with two independent programs. Not machine-checked in Lean.


[OEIS A016729](https://oeis.org/A016729): a(n) is the largest minimum distance of an additive
self-dual code of length n over GF(4) (family 4^H+). The known terms are

    1, 2, 2, 2, 3, 4, 3, 4, 4, 4, 5, 6, 5, 6, 6, 6, 7, 8, 7, 8, 8, 8      (n = 1 .. 22)

and the entry carries a conjecture (Chai Wah Wu, 2024):

> a(n) = a(n-1) + a(n-6) - a(n-7) for n > 7.

**The conjecture is false.** It predicts a(102) = 36, but a(102) ≤ 35.

This is a short consequence of known coding theory, not a new bound. What is new is only the
observation that it refutes the recurrence.

## Proof

**What the recurrence predicts.** It says a(n) − a(n−6) = a(n−1) − a(n−7) for n > 7, so
a(n) − a(n−6) is the same for all n ≥ 7. Since a(7) − a(1) = 2, the recurrence gives
a(n) = a(n−6) + 2, hence a(6m) = 2m + 2 and a(102) = 36.

**Step 1: a code with n = 102, d = 36 would be even.** Rains and Sloane, *Self-Dual Codes*,
Theorem 33: an additive self-dual code of length n has d ≤ 2⌊n/6⌋ + 2 (or + 3 when
n ≡ 5 mod 6), and when n is a multiple of 6 any code meeting the bound is even, meaning every
codeword has even weight. At n = 102 the bound is 36.

**Step 2: its weight enumerator is forced.** The same survey (Section 7.7, with formula (105))
says the weight enumerator of an even additive self-dual code is a polynomial in
x² + 3y² and y²(x² − y²)². At length 102 that is

    W = sum over j = 0..17 of c_j (x² + 3y²)^(51 − 3j) · (y²(x² − y²)²)^j .

The j-th term starts at y^(2j), so the 18 conditions A_0 = 1 and A_2 = A_4 = … = A_34 = 0
(one zero word, no word of weight below 36) determine c_0, …, c_17 one after another.

**Step 3: a count comes out negative.** With those coefficients,

    A_36 = 724626446340195        A_38 = −340151816916450 .

A_38 is the number of codewords of weight 38, which cannot be negative. So no such code
exists, and a(102) ≤ 35. ∎

## Check it

    python verify.py            # standard library only, instant
    pip install sympy
    python check_direct.py      # independent second computation, a few seconds

`verify.py` (by Codex) finds the first multiple of six where the forced count is negative and
prints `17 102 36 38 -340151816916450`. `check_direct.py` (by Claude) expands the polynomial
above directly and gets the same A_38.

## Scope and prior work

- We do not claim 102 is the first n where the recurrence fails. The true values of a(n) are
  unknown from n = 23 on, and the recurrence may already fail much earlier (for example it
  needs a(24) = 10, and only 8 ≤ a(24) ≤ 10 is known).
- We do not compute a(102), only show it is at most 35.
- The conjectured generating function in the entry is equivalent to the recurrence, so it is
  false as well.
- Prior work: Theorem 33 and the weight-enumerator ring are from Rains and Sloane
  ([arXiv:math/0208001](https://arxiv.org/abs/math/0208001)). The same survey already notes
  that extremal Hermitian *linear* self-dual codes over GF(4) do not exist at length 102
  because of a negative coefficient (remarks on Table XIII). Even additive codes have the same
  weight-enumerator ring, so the same calculation applies. We found no earlier note that this
  contradicts the recurrence in A016729 (OEIS entry and history, web search, 2 Dec 2026).

Produced with AI assistants: Codex (OpenAI) found the argument; Claude (Anthropic) checked it
against the source and recomputed the certificate independently.

