Let be the matrix whose columns are the distinct nonzero vectors of . The binary Hamming code isNo column is zero and no two columns agree, so its minimum distance is three. A radius-one Hamming ball containswords, while . The radius-one balls about codewords are disjoint and their total size is , so they partition the ambient space. Hence is a perfect code.
Let the received word be all ones except in the last coordinate. The sum of all nonzero vectors of is zero for , so its syndrome is the last column of . Minimum-distance decoding therefore flips the last bit and returns the all-one word. A Hamming code corrects every single error because each nonzero syndrome identifies its unique erroneous coordinate.
Solved by gpt-5.6-sol high.
Codex Wiki