Convert 42 (10) into binary number
Answers
Step-by-step explanation:
Step 1: Perform the successive MOD by 3 for the given decimal number 42 and note down the remainder (either 0 or 1) for each operation. The last remainder is the MSB (most significant bit) and the first remainder is the LSB (least significant bit).
Perform the successive MOD by 3 for the given decimal number 42 and note down the remainder (either 0 or 1) for each operation. The last remainder is the MSB (most significant bit) and the first remainder is the LSB (least significant bit).42/2=21:
remainder is 0
remainder is 0LSB
remainder is 0LSB21/2=10:
remainder is 0LSB21/2=10: remainder is 1
remainder is 0LSB21/2=10: remainder is 110/2=5:
remainder is 0LSB21/2=10: remainder is 110/2=5:remainder is 0
remainder is 0LSB21/2=10: remainder is 110/2=5:remainder is 05/2=2:
remainder is 0LSB21/2=10: remainder is 110/2=5:remainder is 05/2=2:remainder is 1
remainder is 0LSB21/2=10: remainder is 110/2=5:remainder is 05/2=2:remainder is 12/2=1:
remainder is 0LSB21/2=10: remainder is 110/2=5:remainder is 05/2=2:remainder is 12/2=1: remainder is 0
remainder is 0LSB21/2=10: remainder is 110/2=5:remainder is 05/2=2:remainder is 12/2=1: remainder is 01/2=0:
remainder is 0LSB21/2=10: remainder is 110/2=5:remainder is 05/2=2:remainder is 12/2=1: remainder is 01/2=0:remainder is 1
remainder is 0LSB21/2=10: remainder is 110/2=5:remainder is 05/2=2:remainder is 12/2=1: remainder is 01/2=0:remainder is 1MSB
Step 2: Write the remainder from MSB to operation the equivalent binary number 101010= 42 = 101010.
Answer:
I hope this answer is helpful for you. ☺️