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]
3 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]3 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
3(2-3+4) <br><br>math problem help me to slove​
mel-nik [20]

Answer:

9 is the answer

Step-by-step explanation:

  • 3(2-3+4)
  • 3(6-3)
  • 3(3)
  • 9
6 0
3 years ago
Read 2 more answers
Solve for a. Please help!
Marizza181 [45]

Answer:

a = 7

Step-by-step explanation:

This is a special trig triangles. Special trig triangles are identified by their angle measures and their sides have a unique relationship. This is a 30 - 60 - 90 triangle which has sides 1 - √3 - 2 or multiples of this. This means all 30 - 60 - 90 triangles have side lengths with the pattern 1 - √3 - 2. Here the triangle has a - 7√√3 - 14. The value of a is 7 since 7*√3 = 7√3 and 2*7 = 14.

8 0
3 years ago
What is the inverse function f f(x)=radical x +7
Arte-miy333 [17]

Step-by-step explanation:

by switching the places of x and y ans solving for y

4 0
3 years ago
Can you help me please
notsponge [240]

9514 1404 393

Answer:

  1. reflection across the origin
  2. rotation 180° about the origin
  3. reflection across the x-axis, and translation right 6 units

Step-by-step explanation:

The figure and its image are symmetrical about the origin, so the following three transformations are equivalent:

  1. reflection across the origin

  2. rotation 180° about the origin

  3. reflection across both x- and y-axes, in either order

__

The figure itself has left-right symmetry, so only one reflection is necessary to map the figure to its image: reflection across a horizontal line. Following that reflection, the image can be put into place by an appropriate translation. One such pair of transformations is ...

  4. reflection across the x-axis and translation 6 units right, in either order

8 0
3 years ago
What's the cube root of 81?
Alexxandr [17]

The cube root of 81 is 4.32674871092

6 0
3 years ago
Read 2 more answers
Other questions:
  • The circumference of circle B is 48. The circumference of circle A is 12. How many times greater is the area of circle B to the
    12·1 answer
  • I live exactly 42.6 miles from my mom. To get to her house I drive 36.25 miles due North. I turn right and drive due East onto 1
    10·1 answer
  • If the scale on a map is 1/4 in. = 50 miles, how many miles do 3 3/8 inches represent?
    12·2 answers
  • A motorbike uses petrol and oil mixed in the ratio 13:2
    11·1 answer
  • How do I solve for question 18 and what is the answer? Please help ASAP❤️
    14·1 answer
  • Please help!! 15 points!
    10·2 answers
  • Is this sequence arithmetic? -2.4,9.8,22,34.2...
    9·1 answer
  • The graph below shows data that was collected from a person's commute to work over the course of one month. The equation of the
    13·2 answers
  • Can someone help me with this
    7·2 answers
  • I NEED AN ANSWER ASAP\
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!