A Hamming code of order over is an -code over with and , and with PCM , an matrix whose columns are scalar multiples of each other.
Suppose is sent and is received. The error vector is .
Input: PCM and a received word .
Compute
If , then accept as the transmitted word (so ); STOP
Compare with the columns of . If for some , then set ( at th position), and decode to ; STOP
Report that more than one error has occurred