To convert a decimal number to binary, we need to continuously divide the decimal number by 2, until the quotient becomes 0. The binary number is obtained by writing the remainders (0 or 1) obtained in reverse order.
Here's the step-by-step process:
- Divide 89 by 2. Quotient is 44 and remainder is 1.
- Divide 44 by 2. Quotient is 22 and remainder is 0.
- Divide 22 by 2. Quotient is 11 and remainder is 0.
- Divide 11 by 2. Quotient is 5 and remainder is 1.
- Divide 5 by 2. Quotient is 2 and remainder is 1.
- Divide 2 by 2. Quotient is 1 and remainder is 0.
- Divide 1 by 2. Quotient is 0 and remainder is 1.
So the remainders obtained in reverse order are: 1 0 1 1 0 0 0
Therefore, the binary representation of 89 is 1011001.