[log_2(x)] + 1 != [log_2(x)]? I'm in discrete mathematics, and my teacher stated the former formula to be finding how many bits are needed to represent some number x. I asked him what the difference between the former and latter was, and he said something in regards to boundaries but I didn't have time to ask further.

Russell Marsh

Russell Marsh

Answered question

2022-10-08

log 2 ( x ) + 1   log 2 ( x ) ?
I'm in discrete mathematics, and my teacher stated the former formula to be finding how many bits are needed to represent some number x.
I asked him what the difference between the former and latter was, and he said something in regards to boundaries but I didn't have time to ask further.

Answer & Explanation

bewagox7

bewagox7

Beginner2022-10-09Added 10 answers

Hint For integers n, by definition we have
n = n .

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?