Colours

How many different colours can you encode if you have 3 digits per pixel? (no checkbit)

000

001 010 011 100 101 110 111

How many different colours can you encode if you have 3 digits per pixel and a checkbit?

000

101 110 011

Integers (positive and negative)

How many integers can you store in 3 bits?

111

110 101

000

001 010 011
-3 -2 -1 0 1 2 3

How many integers can you store in 4 bits, including a checkbit?

1111

0110 0101

0000

1001 1010 1011
-3 -2 -1 0 1 2 3