Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

How to convert a number given in Decimal to negative base.?

For eg I want to convert $67$ given in decimal base to base $-2$.?

share|improve this question
    
    
You might enjoy en.wikipedia.org/wiki/Quater-imaginary_base, which discusses an imaginary base system. –  Snowball Oct 26 '12 at 22:08
    
I've removed algebra tag, since we don't use algebra tag anymore, see meta for details –  Martin Sleziak Oct 27 '12 at 6:27

1 Answer 1

$67 = \color{red}1 \cdot (-2)^6 + \color{red}0 \cdot (-2)^5 + \color{red}0 \cdot (-2)^4 + \color{red}0 \cdot (-2)^3 + \color{red}1 \cdot (-2)^2 + \color{red}1 \cdot (-2)^1 + \color{red}1 \cdot (-2)^0$, so $67_{10} = 1000111_{-2}$.

An interesting feature of this base system is that you can represent negative numbers without a minus sign. For example, $-67_{10} = 11001101_{-2}$.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.