Pentru a scrie 21 in baza 2 se imparte succesiv la2 pana ce catul e zero si apoi se iau resturile in ordine inversa
21:2=10 rest 1
10:2=5 rest 0
5:2=2 rest 1
2:2=1 rest 0
1:2=0 rest 1
21=10101=1*2^4+1*2^2+1
36:2=18 rest 0
18:2=9 rest 0
9:2=4 rest 1
4:2=2 rest 0
2:2=1 rest 0
1:2=0 rest 1
36=100100
36=1*2^5+1*2^2