Hi, I have found some examples online of ternary sequences but still don't understand how to do

how many r-digit ternary sequences are there with:

a) and even # of 0s?

b) and even # of 0s and even # of 1s?

c) at least one 0 and at least one 1?

thanks for any help