Home > Algorithms
NegaBinary Numbers (Posted on 2013-08-14) |
|
Find an algorithm for writing any positive integer in negabinary, i.e., as a sum of powers of -2.
For example,
7 = 11011 = (-2)^4 + (-2)^3 + (-2)^1 + (-2)^0
19 = 10111 = (-2)^4 + (-2)^2 + (-2)^1 + (-2)^0
Comments: (
You must be logged in to post comments.)
|
Subject |
Author |
Date |
| solution | Charlie | 2013-08-15 02:37:51 |
| solution | Daniel | 2013-08-14 21:20:31 |
|
|
Please log in:
Forums (0)
Newest Problems
Random Problem
FAQ |
About This Site
Site Statistics
New Comments (2)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On
Chatterbox:
|