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
PLEASE HELP PLEASE PLEASE PLEASE
Nookie1986 [14]

Answer:

33

Step-by-step explanation:

The product of the secant segment lengths is a constant.

... TC×CV = UC×CW

... 14(2x+2) = 12(2x+5) . . . . substitute the values from the diagram

... 28x +28 = 24x +60 . . . . eliminate parentheses

... 4x = 32 . . . . . . . . . . . . . . add -28-24x

... x = 8 . . . . . . . . . . . . . . . . divide by 4

UW = 12 + 2x + 5 = 17+2·8 . . . . UW = UC + CW

UW = 33

3 0
3 years ago
What is 2.05 +4.77 ?
Effectus [21]

The answer is 6.82

2 + 4 = 6

.05 + .77 = .82

6 + .82  = 6.82

4 0
3 years ago
Read 2 more answers
WILL MARK BRAINLIEST!! please answer all questions
lana66690 [7]

Answer:

1a) −24x^4−52x^3+198x^2+126x−325

2a) 14x^2+7x−41

3a) 30x^3+9x^2+32x−7

Step-by-step explanation:

7 0
3 years ago
1/9 equals what squared?​
Alex

Answer:

1/3 I think??????

7 0
3 years ago
Solve the word problem.  The height of a triangle with base b and area A is given by the formula h = 2A/B .  What is the height
jeka94
h =  \frac{2A}{b} \ \ \ and\ \ \ A=26\ cm^2\ \ \ and\ \ \ b=8\ cm\\\\h= \frac{2\cdot26}{8} = \frac{2\cdot2\cdot13}{2\cdot2\cdot2} = \frac{13}{2} =6.5\ [cm]\\\\Ans.\ D
4 0
3 years ago
Other questions:
  • Use the figure and flowchart Proof to answer the question which property of equality accurately completes reason C
    7·2 answers
  • Use the order of operations to simplify the following expression
    12·1 answer
  • Which is greater 13.255 or 13.525?
    10·2 answers
  • What is the distance between the points 3,7 and 15,16 on a coordinate plane
    14·1 answer
  • A handyman knows from experience that his 29-foot ladder rests in its most stable position when the distance of its base from a
    5·1 answer
  • What is the equation of the quadratic graph with a focus of (3, 4) and a directrix of y = 8?
    10·1 answer
  • 14. Classify a triangle with the following side lengths: 16 cm, 12 cm, and 16 cm. ​
    6·2 answers
  • Find the slope<br><br><br> Don’t mind my answer! I clicked a random on accident
    13·2 answers
  • What's the y-intercept? y= 2x^2+6x+7​
    9·1 answer
  • The expressions below model different possibilities for the area of a pool. Identify which of the following expressions have at
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!