Conversion from decimal base into another system of numeration

The first step to convert a decimal number into another in base $$b$$ is to do successive integer divisions of the number by base $$b$$.

How would number $$7$$ be expressed in a numeration system of base $$5$$?

To find this, it will be necessary to divide $$7$$ by $$5$$ and keep the quotient and the remainder:

$$(7)_{10} \Rightarrow \begin{eqnarray} &7 & |\underline{5} \\ & \fbox{2} & \fbox{1} \end{eqnarray}$$

The first digit of the number we are looking for is the result of the division, and the second one is the remainder.

This way, the equivalent of $$7$$ in base $$5$$ will be:

$$(12)_5$$

We can prove that the operation is correct by decomposing the number:

$$(12)_5=1\cdot5^1+2\cdot5^0=5+2=7$$

Following the same line, the number $$13$$ is equivalent in binary (system in base $$2$$) to:

$$\begin{eqnarray} &(13)_{10} \Rightarrow & 13 & |\underline{2} & & & \\ & & \fbox{1} & 6 & |\underline{2} & \\ & & & \fbox{0} & 3 & |\underline{2} \\ & & & & \fbox{1} & \fbox{1} \end{eqnarray}$$

The first digit of the number we are looking for is the result of the last division, the second digit is the remainder of the same division, and the third and fourth digits are the remainders of the previous divisions, so the obtained number is:

$$(13)_{10}=(1101)_2$$

It is possible to prove again that the calculations are correct by decomposing the obtained number:

$$(1101)_2=1\cdot2^3+1\cdot2^2+0\cdot2^1+1\cdot2^0=8+4+0+1=13$$

Convert $$47$$ into hexadecimal system:

Hexadecimal means base $$16$$, so it will be necessary to divide $$47$$ by $$16$$ as many times as possible to find the number:

$$(47)_{10} \Rightarrow \begin{eqnarray} &47 & |\underline{16} \\ & \fbox{15} & \fbox{2} \end{eqnarray}$$

So:

$$(47)_{10}=(2(15))_{16}=(2F)_{16}$$

Remember that the symbol to express $$15$$ in hexadecimal is $$F$$.

Decomposing the number in powers of $$16$$ is a way of proving that the result is correct:

$$(2F)_{16}=2\cdot16^1+15\cdot16^0=32+15=47$$

To convert the following number into binary system:

$$(115)_6$$

First, it is necessary to convert it into decimal system and then into binary by doing all the possible integer divisions by $$2$$.

$$(115)_6=1\cdot6^2+1\cdot6^1+5\cdot6^0=36+6+5=47$$

$$\begin{eqnarray} &(47)_{10} \Rightarrow & 47 & |\underline{2} & & & & & \\ & & \fbox{1} & 23 & |\underline{2} & & & & \\ & & & \fbox{1} & 11 & |\underline{2} & & & \\ & & & & \fbox{1} & 5 & |\underline{2} & & \\ & & & & & \fbox{1} & 2 & |\underline{2} \\ & & & & & & \fbox{0} & \fbox{1} \end{eqnarray}$$

So that:

$$(115)_6=(101111)_2$$