1. Input: Converting (13)₁₆ to base 10
Let's take the example of converting the number (13)₁₆ to base 10 (decimal). We can break down the conversion process as follows:
First, we multiply each digit of the number by the corresponding power of 16:
(13)₁₆ = 1 * 16^1 + 3 * 16^0
Next, we calculate the results of the above multiplication:
(13)₁₆ = 16 + 3
Finally, we add up the results to obtain the decimal equivalent:
(13)₁₆ = 19₁₀
Therefore, (13)₁₆ is equal to (19)₁₀ in base-10.
2. Input: Converting (10101)₂ to base-8:
Now, let's convert the binary number (10101)₂ to base 8 (octal). The conversion process involves grouping the binary digits into sets of three, starting from the rightmost digit, and converting each group to its octal equivalent:
(10101)₂ = 010 101
The grouped binary digits are then converted to octal:
010₂ = 2₈
101₂ = 5₈
Combining the octal digits, we get:
(10101)₂ = (25)₈
Therefore, (10101)₂ is equal to (25)₈ in base-8.