HTML colours are represented by 6-digit hexadecimal codes. Each digit can take on 1 of 16 values: 0, 1, 2, . . . , A, B, C, D, E, F.
(a) How many different colours can be represented?
(b) There are three types of pure colours: pure red (represented by xy0000); pure green (represented by 00xy00); pure blue (represented by 0000xy). How many pure colours are possible?
(c) Grayscale shades are representedbycodesxyxyxy consisting ofa repeatedpair of digits. Howmany grayscale shades are possible?
(d) Some monitors could only display colours with codes consisting of three pairs of repeating digits: xxyyzz. How many colours could these monitors display?
HTML colours are represented by 6-digit hexadecimal codes. Each digit can take on 1 of 16 values: 0, 1, 2, . . . , A, B, C, D, E, F.