How many different shades of gray (levels) may be displayed in an image?

How many different shades of gray (levels) may be displayed in an image?

It depends on the number of binary digits (bits) supported by the display device. For an n-bit display, the number of shades of gray is 2 to the nth power.