Convert 18 to a binary number

Answer: \(18_{10} = 10010_2\)

Explanation: Divide by 2 repeatedly:
\(18 \div 2 = 9\) r 0; \(9 \div 2 = 4\) r 1; \(4 \div 2 = 2\) r 0; \(2 \div 2 = 1\) r 0; \(1 \div 2 = 0\) r 1.
Read remainders bottom to top: 10010. (Also \(18 = 2^4 + 2^1\), so bits at positions 4 and 1 are 1.)