in Digital Logic
554 views
0 votes
0 votes
in Digital Logic
554 views

2 Answers

2 votes
2 votes
Best answer
Largest number in base $b = b^k-1$.

Let $l$ be the required no. of bits in base $x$ which gives the largest number as $x^l-1$

We need $x^l - 1 \geq b^k -1 \\ \implies x^l \geq b^k \\ \implies l \log x \geq k \log b \\ \implies l \geq \frac{k \log b}{\log x}$
selected by
by

2 Comments

Sir what is the reason behind this inequality which you have used , why can't be <= or >= ?
1
1
Sorry. It must be >=. Why not <? because we want to ensure all numbers representable in base b using k bits must be represantable in base x- there is no problem in having more bits but minimum we need this many (>=) bits.
1
1
1 vote
1 vote
log b^k base x = k (log b )/log x

Related questions