How does this number system conversion algorithm work?

  1. Oct 15, 2010 #1
    50 | 0
    25 | 1
    12 | 0
    6 | 0
    3 | 1
    1 | 1
    0

    how does it work?

    (I know how to use the algorithm... my question is about how it can do the conversion)
     
  2. jcsd
  3. Oct 15, 2010 #2
  4. Oct 15, 2010 #3

    CRGreathouse

    User Avatar
    Science Advisor
    Homework Helper

    Looks like Egyptian multiplication.
     
  5. Oct 15, 2010 #4
    No, I think he simply means conversion of 50 into binary. 50 = 110010 = 32+16+2.
     
  6. Oct 16, 2010 #5
    Yes, if you look at the link I posted this is the same thing as what I call Russian multiplication.
     
  7. Oct 16, 2010 #6

    CRGreathouse

    User Avatar
    Science Advisor
    Homework Helper

    And this method, in turn, is closely related to the binary representation of the number.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Similar Discussions: How does this number system conversion algorithm work?
  1. Prime number algorithm (Replies: 4)

  2. Prime Number Algorithm (Replies: 3)

Loading...