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
Plz, Help I'll give brainlist to whoever answers all questions!
Tatiana [17]

Answer:

Step-by-step explanation:

1. Area => 7.5 x 2 = 15 m² (Choice B)

2. Area => 5 x 11 = 55 in² (Choice B)

3. Area = (12 x 18) * 0.5 = 108 cm² (Choice A)

4. Triangular Pyramid (Choice D)

6. Area of Rectangle => 12 x 9 = 108

   Area of Triangle => 7x6 = 42

   Sum of Area => 150

7.  Surface Area => (4x4)x6 = 96 in² (Choice D)

8. Volume = 3x15x14 = 630 in³ (Choice D)

7 0
2 years ago
Read 2 more answers
Pls help solve!!!!!!!!
Svetradugi [14.3K]
Its also 40°30' because the median is also a bisector in isosceles triangle
5 0
3 years ago
10n -11 =3 + 4n + 6n​
MrRissso [65]

Answer:

10n -11 =3 + 4n + 6n​

10n - 10n -11 =3-3 + 4n + 6n​

-11 - 3 = -10n + 4n + 6n

-14= -10n + 10n

-14 = n

Step-by-step explanation:

10n -11 =3 + 4n + 6n​

10n - 10n -11 =3-3 + 4n + 6n​

-11 - 3 = -10n + 4n + 6n

-14= -10n + 10n

-14 = n

3 0
2 years ago
Please help!
wariber [46]
Ya is = 10x-28 see the picture for explanation
5 0
2 years ago
Need help ASAP really lost
svetoff [14.1K]
63 degrees, if that angle is 72 that means the other must be 54 (add to 180), and if that angle on the other triangle is 54, the others must be 63 (add to 180).
5 0
2 years ago
Read 2 more answers
Other questions:
  • Solve the system of linear equations below.
    10·1 answer
  • Use the number 751,486
    8·1 answer
  • Marco walked 27/100 kilometers to the park. Then he walked 3/10 kilometers to the library. What fraction of a kilometer did he w
    14·1 answer
  • True or false: if x=1, then x>0. If false, give a counterexample.
    13·2 answers
  • Find the equation of the line passing<br> through the points (2, 1) and (5, 10).<br> y = [? ]x + [ ]
    8·1 answer
  • Does this graph represent a function? Why or why not?
    12·1 answer
  • E) 340 people participated in a conference. If the ratio of ladies and gentleman is
    9·1 answer
  • The gym class has 27 students and 3 soccer balls. What is the ratio of students to soccer balls? O A. 27: 1 O B. 24: 1 O C. 30 :
    6·1 answer
  • Pls help I need to get this one right to get 100 on major
    9·2 answers
  • in the figure below, point B is on line segment DC. If AB = BC, what is the measure of angle ABE? FREE BRAINlIEST FOR THE FIRST
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!