Explicație pas cu pas:
Pentru a tranforma un numar din baza 10 in baza 2 se imparte succesiv numarul dat la 2 si se retine de la dreapta la stanga ultimul cat si resturile aferente.
a)
35 : 2 = 17 rest 1
17 : 2 = 8 rest 1
8 : 2 = 4 rest 0
4 : 2 = 2 rest 0
2 : 2 = 1 rest 0
1 : 2 = 0 rest 1
=> 35 in baza 10 = 100011 in baza 2
b)
101 : 2 = 50 rest 1
50 : 2 = 25 rest 0
25 : 2 =12 rest 1
12 : 2 =6 rest 0
6 : 2 = 3 rest 0
3 : 2 = 1 rest 1
1 : 2 = 1 rest 1
=> 101 in baza 10 = 1100101 in baza 2
c)
79 : 2 = 39 rest 1
39 : 2 =19 rest 1
19 : 2 = 9 rest 1
9 : 2 = 4 rest 1
4 : 2 = 2 rest 0
2 : 2 =1 rest 0
1 : 2 = 0 rest 1
=> 79 in baza 10 = 1001111 in baza 2
d)
138 : 2 = 69 rest 0
69 : 2 = 34 rest 1
34 : 2 = 17 rest 0
17 : 2 = 8 rest 1
8 : 2 = 4 rest 0
4 : 2 = 2 rest 0
2 : 2 = 1 rest 0
1: 2 =0 rest 1
=> 138 in baza 10 = 10001010 in baza 2