How do the steps of successive division get converted into binary numbers?

Click For Summary

Discussion Overview

The discussion revolves around the process of converting decimal numbers to binary using successive division. Participants explore methods for performing this conversion and clarify the role of remainders in forming the binary representation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant describes the process of dividing a number by its base and recording the remainders until reaching zero, questioning how to convert these into a binary number.
  • Another participant provides a step-by-step example of converting the decimal number 42 to binary, detailing the powers of 2 and the corresponding binary digits.
  • A third participant shares their professor's explanation that the binary number is formed by assembling the remainders from successive divisions, noting the order of the bits from right to left.
  • One participant expresses uncertainty about the reasoning behind the method and asks if a proof was provided, while attempting to apply the method to convert the number 31 to binary.

Areas of Agreement / Disagreement

Participants generally agree on the method of using successive division to convert decimal numbers to binary, but there is no consensus on the underlying reasoning or proof for why this method works.

Contextual Notes

Some participants express uncertainty regarding the proof of the method, indicating a potential limitation in understanding the theoretical basis behind the conversion process.

treehouse
Messages
105
Reaction score
0
So, I can see that it works by dividing a number by its base, recording the remainder, and then repeating until the answer is 0 (instead of a fraction, you wind up with an answer of 0 with a remainder). But how do I convert all the steps' answers&remainders into a binary number?
 
Engineering news on Phys.org
Do you mean converting decimal numbers to binary? I can show you a method of doing this.

Try an example.

Choose the number 42 decimal.

The highest power of 2 that will be less than 42 is 32 (ie 2^5).

So, write down a 1 and subtract 32 from 42 to get 10.
1

The next lower power of 2 is 16 (2^4) but this is greater than 10 and you can't subtract 16 from 10, so write down a 0.
10

The next lower power of 2 is 8 (2^3) and this is less than 10 so write down a 1 and subtract 8
from 10 to get 2.
101

The next lower power of 2 is 4 (2^2) but this is greater than 2 (so you can't subtract it from 2) so write down a 0.
1010

The next lower power of 2 is 2 (2^1) and this equals 2 so write down a 1 and subtract 2 to get 0.
10101.

The next lower power of 2 (ie 2^0) is 1, but you can't subtract 1 from 0 so write down another 0.
101010

You can check if this is right like this:
1 times 32, plus 0 times 16, plus 1 times 8, plus 0 times 4, plus 1 times 2, plus 0 times 1.
= 32 + 8 + 2
= 42

So, 101010 is the binary equivalent of 42 decimal.
 
Last edited:
My professor's answer: "You take all the remainders (ignore the quotients) and assemble them into your binary number. The first remainder is the rightmost bit and the last remainder is the leftmost bit."

So the way you'd do forty-two using successive division would be to divide forty-two by two. The answer is twenty-one, and the remainder is 0 (so the first digit to the right is 0). Then you'd divide twenty-one by two, and the remainder is 1 (so the second digit to the right is 1). Then you'd divide ten by two. The answer is five with a remainder of 0. Next divide five by two. The answer is two with a remainder of 1. Then divide two by two - the remainder is 0. Then one by two - you get a 1 (the answer is zero with a remainder of 1). So this gives you 101010.
 
That seems to work, although I can't immediately see why it should. Did your prof give a proof of this?

Try 31

Divide by 2 gives 15 and 1 remainder.
1
Divide by 2 gives 7 and 1 remainder
11
Divide by 2 gives 3 and 1 remainder
111
Divide by 2 gives 1 and 1 remainder
1111
Divide by 2 gives 0 and 1 remainder
11111

Which is correct. 16 + 8 + 4 + 2 + 1 = 31
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 3 ·
Replies
3
Views
9K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
4
Views
2K
  • · Replies 47 ·
2
Replies
47
Views
7K