find the binary expansion of 23. ex: 10101

find the binary expansion of 23. ex: 10101
Answer
Answer:
10111
Explanation:
Step1: Divide by 2 and get remainders
$23\div2 = 11\ remainder\ 1$
Step2: Divide the quotient by 2
$11\div2 = 5\ remainder\ 1$
Step3: Divide the new - quotient by 2
$5\div2 = 2\ remainder\ 1$
Step4: Divide the new - quotient by 2
$2\div2 = 1\ remainder\ 0$
Step5: Divide the new - quotient by 2
$1\div2 = 0\ remainder\ 1$
Step6: Read remainders from bottom - to - top
The binary expansion is 10111.