Sphere packing condition for a perfect code
Proof
Given a codeword
, the number of strings with Hamming distance π β C is given by π β£ { π₯ β π π π : π ( π₯ , π ) = π } β£ = ( π π ) ( π β 1 ) π since there are
combinations of positions different from ( π π ) , and each differing position may be one of π letters. Hence, for a code to be perfect, the closed balls of radius π β 1 must partition π , giving the expression above. π π π
The latter part can be interpreted as
The first
terms of a row in Pascalβs triangle sum to a power of π + 1 . π