Binary is easy, you'll see
What is the largest base 2 number you can get in 2678?
It's 11, and \(\displaystyle 2^{11} = 2048\)
So, in binary, you'll need at least 12 digits (11+1), and this would look like:
100000000000
This is 2048. What is left now? 2678 - 2048 = 630
Repeat again, and you'll see that \(\displaystyle 2^9 = 512\)
Since it's 9, you put a '1' in the (9+1)th digit, starting from the right:
101000000000
This is 2048+512.
Rinse and repeat, you'll get 118 left, meaning \(\displaystyle 2^6\);
101000010000
Again and you'll get 54, meaning \(\displaystyle 2^5\);
101001100000
Again and you'll get 22, meaning \(\displaystyle 2^4\);
101001110000
Again and you'll get 6, meaning \(\displaystyle 2^2\);
101001110100
Again and you'll get 2, meaning \(\displaystyle 2^1\);
101001110110
And now that's it since you are left with nothing this time! (2-2 = 0)
If you want to get the decimal number again, just do: \(\displaystyle 2^{11} + 2^9+2^6+ 2^5+2^4+2^2+2^1\) (Notice again that the power is the position of '1' in the binary number, minus 1)
Now to convert to hex, I think it's better you have a table of conversion with you, because:
Binary | Hex
0000 = 0
0001 = 1
0010 = 2
0011 = 3
0100 = 4
0101 = 5
0110 = 6
0111 = 7
1000 = 8
1001 = 9
1010 = A
1011 = B
1100 = C
1101 = D
1110 = E
1111 = F
You can always re-create that table, it's easy if you notice the pattern. BUt don't forget that it ends at F, or remember that F is the 6th letter and hex means 6, or just remember that it goes up to 1111 (which by the way means \(\displaystyle 2^3+2^2+2^1+2^0 = 15\))
So, let's take the binary we got earlier:
101001110110
Break it down in groups of 4 digits for the conversion: 1010 0111 0110
Look at your table and you should get 'A76'.
