How does this number system conversion algorithm work?

0131313131313
Messages
6
Reaction score
0
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)
 
Physics news on Phys.org
Looks like Egyptian multiplication.
 
No, I think he simply means conversion of 50 into binary. 50 = 110010 = 32+16+2.
 
CRGreathouse said:
Looks like Egyptian multiplication.

Yes, if you look at the link I posted this is the same thing as what I call Russian multiplication.
 
sjb-2812 said:
Yes, if you look at the link I posted this is the same thing as what I call Russian multiplication.

And this method, in turn, is closely related to the binary representation of the number.
 

Similar threads

Replies
17
Views
2K
Replies
12
Views
2K
Replies
2
Views
2K
Replies
5
Views
2K
Replies
5
Views
2K
Replies
11
Views
3K
Replies
1
Views
1K
Replies
10
Views
3K
Back
Top