contestada

A bit is a 0 or a 1. A bit string of length 9 is a sequence of 9 digits, all of which are either 0 and 1.
(a) How many bit strings of length 9 are there?
(b) How many bit strings of length 9 or less are there?