retagged by
599 views
0 votes
0 votes

what is  Nega Binary representation of (41)10 ?

I just google first about negaBinary (-2 ) , The procedure says divide number by -2 , to get positive remainder and then read from bottom to top 

But my answer doesnt match with the answer given in book

(41) = (-2)*(-20) + 1(LSB)

-20 = (-2)*(10) + 0 

(10)= (-2)*(5) + 0

(5) = (-2)*(-2) +1

(-2)= (-2)*(1) +0

1 = (-2)*(0) + 1 (MSB)

So answer what i get is 101001

But they give answer = 1111101

Can you please explain and correct me ?

 

retagged by

1 Answer

0 votes
0 votes

The base \scriptstyle -r expansion of a number can be found by repeated division by \scriptstyle  -r, recording the non-negative remainders of \scriptstyle  0, 1,\ldots r-1, and concatenating those remainders, starting with the last. Note that if \scriptstyle  a / b = c, remainder d, then \scriptstyle  bc + d = a

for 41 it should be like this,

41/-2 = -20, remainder 1

-20/-2 = 10, remainder 0

10/-2 = -5, remainder 0

-5/-2 = 3, remainder 1

3/-2 = -1, remainder 1

-1/-2 = 1, remainder 1

1/-2 = 0, remainder 1

so the nega binary of 41 is 1111001.

Wikipedia covers it in detail.

Related questions

1.1k
views
1 answers
1 votes
shaz asked Jul 23, 2018
1,138 views
Assume that the exponent e is constrained to lie in the range 0 <= e <= X with a bias of q, that the base is b, and that the ... are the largest and smallest positive values that can be written as normalized floating-point numbers?
1.1k
views
1 answers
0 votes
rahul sharma 5 asked May 22, 2017
1,075 views
IEEE 754 32 bit representation for reference:-1. For the demoralized numbers,why the exponent is -126 and not -127? For 0 we say it is Mantissa=0 and B.E=0, ... if i am 0 or infinity or NAN then can i say that system is overflow/underflow?
2.4k
views
1 answers
1 votes
spriti1991 asked Apr 9, 2015
2,384 views
Consider the following Statements :S1: Booth algorithm reduces the spaces for fixed point signed multiplicationS2: Booth algorithm increases time for fixed point signed ... ) s2 is truec) cant sayd)None of theseplease explain the answer
706
views
1 answers
0 votes
spriti1991 asked Apr 9, 2015
706 views
Consider the statements S1: Problem of redundant expression can be avoided using normalization S2. Ambiguity may be solved by using the concept of Biased exponent Which of the following is true ?a) s1b) s2 c)both d) none of these