The sum counts the words within Hamming distance of a fixed word. For a binary linear code the bound reads : there must be at least as many syndromes as errors to be told apart. It goes back to Hamming.
A code meeting the bound with equality is perfect: every word lies within distance of exactly one codeword. The Hamming codes are perfect with , since .
Unlike its quantum analogue, the quantum Hamming bound, which in general is proved only for non-degenerate codes, this bound holds for every classical code.