Answer:
6 bits
Explanation:
Given
Students = 42
Required
Get the number of bits
First, we need to represent 42 as a factor of 2;
Since, 42 is not a direct factor of 2, we look for the closest factor of 2 greater than 42
In this case, the number is 64
The number of bits is then calculated using;
[tex]2^n = N[/tex]
Where n is the number of bits and [tex]N =64[/tex]
Substitute 64 for N
[tex]2^n = 64[/tex]
Represent 64 as a factor of 2
[tex]2^n = 2^6[/tex]
2 on both sides cancel out;
[tex]n = 6[/tex]
Hence, the number of bits is 6