Compute the Hamming parity bits r from data bits m using 2^r >= m + r + 1 for single-bit error correction.
漢明碼可檢測並糾正單位元錯誤。