1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sladkaya [172]
4 years ago
13

How many bits are required to represent the decimal numbers in the range from 0 to 999 in straight binary code?

Mathematics
1 answer:
ad-work [718]4 years ago
8 0
Note that powers of 2 can be written in binary as

2^0=1_2
2^1=10_2
2^2=100_2

and so on. Observe that n+1 digits are required to represent the n-th power of 2 in binary.

Also observe that

\log_2(2^n)=n\log_22=n

so we need only add 1 to the logarithm to find the number of binary digits needed to represent powers of 2. For any other number (non-power-of-2), we would need to round down the logarithm to the nearest integer, since for example,

2_{10}=10_2\iff\log_2(2^1)=\log_22=1
3_{10}=11_2\iff\log_23=1+(\text{some number between 0 and 1})
4_{10}=100_2\iff\log_24=2

That is, both 2 and 3 require only two binary digits, so we don't care about the decimal part of \log_23. We only need the integer part, \lfloor\log_23\rfloor, then we add 1.

Now, 2^9=512, and 999 falls between these consecutive powers of 2. That means

\log_2999=9+\text{(some number between 0 and 1})

which means 999 requires \lfloor\log_2999\rfloor+1=9+1=10 binary digits.

Your question seems to ask how many binary digits in total you need to represent all of the numbers 0-999. That would depend on how you encode numbers that requires less than 10 digits, like 1. Do you simply write 1_2? Or do you pad this number with 0s to get 10 digits, i.e. 0000000001_2? In the latter case, the answer is obvious; 1000\times10=10^4 total binary digits are needed.

In the latter case, there's a bit more work involved, but really it's just a matter of finding how many number lie between successive powers of 2. For instance, 0 and 1 both require one digit, 2 and 3 require two, while 4-7 require three, while 8-15 require four, and so on.
You might be interested in
Simplify 4(2x^3y^4)^4/2(2x^2y^6)^3. Show your work. Please help ASAP!!
vovikov84 [41]

Answer:

The simplified expression to the given expression is \frac{4x^6}{y^2}

Therefore \frac{4(2x^3y^4)^4}{2(2x^2y^6)^3}=\frac{4x^6}{y^2}

Step-by-step explanation:

Given fractional expression is \frac{4(2x^3y^4)^4}{2(2x^2y^6)^3}

To simplify the given expression as below :

\frac{4(2x^3y^4)^4}{2(2x^2y^6)^3}

=\frac{2(2x^3y^4)^4}{(2x^2y^6)^3}

=\frac{2[(2)^4(x^3)^4(y^4)^4]}{(2)^3(x^2)^3(y^6)^3}  ( using the property (a^m)^n=a^{mn})

=\frac{2[(2)^4(x^{12})(y^{16})]}{(2)^3(x^6)(y^{18})}

=2[(2)^4(x^{12})(y^{16})](2)^{-3}(x^{-6})(y^{-18})  (  ( using the property a^m=\frac{1}{a^{-m}} )

=2[2^{4-3}x^{12-6}y^{16-18}]( using the property a^m.a^n=a^{m+n} )

=2[2^1x^6y^{-2}]

=\frac{4x^6}{y^2} ( using the property a^m=\frac{1}{a^{-m}} )

Therefore the simplified expression is \frac{4x^6}{y^2}

Therefore \frac{4(2x^3y^4)^4}{2(2x^2y^6)^3}=\frac{4x^6}{y^2}

5 0
3 years ago
The volume lf a wood with 8m long , 6m wide and 10m height​
Lera25 [3.4K]
Idk but I think my homies know this
7 0
4 years ago
Read 2 more answers
Name a pair of vertical angles (there may be more than one choice)
Over [174]
2 and 5 and it's says i need more letters to summit this answer that's why i am typing all of this
5 0
3 years ago
Solve the equation and enter the value of d below. 6d + 7 d= 39​
MA_775_DIABLO [31]

Answer:

d=3

Step-by-step explanation:

13d=39

d=39/13

d=3

4 0
3 years ago
Read 2 more answers
Hii guys I am riyaz aly​
lesya [120]
Hello im Esmerallda
How are u
6 0
3 years ago
Other questions:
  • Examples of when you will use box and whisker plots in the real world
    11·1 answer
  • Edward wants to determine which skateboarder won a race. The actual time taken by four skateboarders to skate the same distance
    13·2 answers
  • Find the inverse f-1(x) for the function f(x).<br> 6x + 3y = 24
    15·1 answer
  • They are asking me what is 3 converted into a fraction
    5·2 answers
  • Find the surface area of the rectangular prism with the following
    9·2 answers
  • NUMERATOR<br> DENOMINATOR<br><br> 4/40
    6·2 answers
  • The diagram represents an 11 cm by 6 cm rectangle.
    5·1 answer
  • Question: In Boston, Massachusetts, there is a 60% probability of rain on a specific day. How was this probability most likely d
    12·1 answer
  • Please help me asap ​
    15·1 answer
  • Consider the graph of the function f(x)=(1/4)^x. Which statements describe key features of function f?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!