Decimal-to-binary by repeated division When converting a positive decimal integer to binary using repeated division by 2, the first remainder obtained corresponds to which bit of the final binary result?

Difficulty: Easy

Correct Answer: LSB

Explanation:


Introduction / Context:
Repeated division by 2 is a standard manual algorithm to convert decimal integers to binary. Understanding which end of the binary number each remainder represents avoids reversed outputs.


Given Data / Assumptions:

  • The method divides by 2 repeatedly and records the remainder at each step.
  • Remainders are 0 or 1.
  • The process stops when the quotient becomes 0.


Concept / Approach:
Every division by 2 extracts the least significant bit of the current quotient. Therefore, the first remainder corresponds to the least significant bit (LSB). Writing remainders from last to first reconstructs the binary number from MSB to LSB.


Step-by-Step Solution:

1) Start with N and compute N mod 2 → this is the LSB.2) Update N = floor(N / 2) and repeat.3) Collect remainders in order of computation: LSB first, then next bit, and so on.4) To form the final binary, reverse the remainder sequence so the last remainder becomes the MSB.


Verification / Alternative check:
Example: N=13. Remainders: 13 mod 2=1 (LSB), 6 mod 2=0, 3 mod 2=1, 1 mod 2=1 → bits (from first to last remainder) 1,0,1,1 ⇒ reversed 1101₂, which is correct.


Why Other Options Are Wrong:

  • MSB choices suggest the first remainder is the MSB, which is incorrect.
  • The conditional statements add confusion; the algorithm always yields LSB first.


Common Pitfalls:
Writing remainders in the order generated without reversing, which results in a mirrored binary number.


Final Answer:
LSB

More Questions from Number Systems and Codes

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion