Source: https://fac.umc.edu.dz/ista/pdf/cours/Chapitre-2_SYSTEMES DE NUMERATION ET CODAGE.pdf