50.1k views
2 votes
How many bits would be needed to count all of the students in class today? There are 42 students

1 Answer

1 vote

Answer:

6 bits

Step-by-step 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;


2^n = N

Where n is the number of bits and
N =64

Substitute 64 for N


2^n = 64

Represent 64 as a factor of 2


2^n = 2^6

2 on both sides cancel out;


n = 6

Hence, the number of bits is 6

User MBS
by
4.9k points