QUANTAVANE

Constant weight codes

A(40,6,5) ≥ 874

A binary code of length 40 with 874 words, each with exactly 5 ones, any two of which differ in at least 6 positions: 2 more words than the 872 in Andries Brouwer's table. Quantavane found it on 3 November 2026.

Listed in Andries Brouwer's table of constant weight codes since 5 November 2026.

The record

Ours874 words
Previous best872 words
Previous sourcethe lower bound in Andries Brouwer's table of constant weight codes (read 4 November 2026)
Found3 November 2026
StatusListed in Andries Brouwer's table of constant weight codes since 5 November 2026.
CheckA separate program compared every pair of words: each has exactly 5 ones and any two differ in at least 6 positions.

So A(40,6,5), the largest size of such a code, is at least 874. Equivalently, any 3 of the 40 positions hold ones together in at most one word.

How it was found and checked

A union of 11 orbits of a group of order 114 that permutes the 40 positions. A separate program compared every pair of words: each has exactly 5 ones and any two differ in at least 6 positions.

A constant weight code is a set of binary words of length n, each with exactly w ones, any two of which differ in at least d positions. A(n,d,w) is the largest number of words such a code can have, and for most n, d and w it is unknown. Andries Brouwer's tables keep the best known lower and upper bounds; a record is a code with more words than the listed lower bound.

Questions

What is the best known lower bound for A(40,6,5)?

874, from our code; Brouwer's table listed 872 (read 4 November 2026).

How was it found?

A union of 11 orbits of a group of order 114 that permutes the 40 positions.

Is it in Brouwer's table yet?

Listed in Andries Brouwer's table of constant weight codes since 5 November 2026.

All constant weight codes