906 views
0 votes
0 votes
What is the minimum number of bits required to represent (516)base 7 in base 4.

2 Answers

1 votes
1 votes

(516)7 = 5 * 72 + 1 * 71 + 6 * 70 = 258

We know

40 =1 ,

41 =4,

42 =16 ,

43 =64 ,

44 =256 &

Since we have to represent the number 258 in base 4, 5 digits is enough.

PS: Using n digits, I will be able to represent numbers from ( 0 to rn-1 ) . For example Using 4 digits of base 4 , I can represent numbers from 0 to 44 - 1, ( i.e., 0 to 255 ). In our case the number is slightly greater than 255 , so we need one more digit to represent the number, Hence 5 digits

0 votes
0 votes
(516) base 7  = (10002) base 4

so according to this answer is 5.

plz, comment if wrong

No related questions found