Source: https://www.gipsa-lab.grenoble-inp.fr/~christian.bulfone/MIASHS-L3/PDF/systemes-numeration.pdf