How does this number system conversion algorithm work?

  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. CRGreathouse

    CRGreathouse 3,682
    Science Advisor
    Homework Helper

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

    CRGreathouse 3,682
    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 a link to this question via email, Google+, Twitter, or Facebook