1. No Profile Picture
Registered User
Devshed Newbie (0 - 499 posts)

Join Date
Jan 2013
Posts
7
Rep Power
0

#### Numerical problem

How many bits are required to represent a 3 digit pin?
2. 1. How many possible "digit"s are there?
2. How many possible bits are there?
3. What's the lowest power of (answer from #2) that is at least as much as (answer to #1)?
3. No Profile Picture
Registered User
Devshed Newbie (0 - 499 posts)

Join Date
Jan 2013
Posts
7
Rep Power
0
A digit can be from 0 to 9. Total no of digits are 3.
4. So that's 10^3=1000 combinations, right? What's the lowest power of 2 that's >= 1000? And how many bits is that?
5. No Profile Picture
Registered User
Devshed Newbie (0 - 499 posts)

Join Date
Jan 2013
Posts
7
Rep Power
0
2 raised to the power 10 is 1024.
6. No Profile Picture
Registered User
Devshed Newbie (0 - 499 posts)

Join Date
Jan 2013
Posts
7
Rep Power
0
Originally Posted by sargun70
2 raised to the power 10 is 1024.
Yes there are 1000 combinations.
7. Seems I have to be more and more exact... I meant > not >=.

Have you figured out the answer yet? Do you know why the answer is not 11?
8. No Profile Picture
Registered User
Devshed Newbie (0 - 499 posts)

Join Date
Jan 2013
Posts
7
Rep Power
0
Yes I get it. The answer is 10.