You toss n coins, each showing heads with probability p, independently of the other tosses. Each coin that shows tails is tossed again. Let X be the total number of heads.
a. What type of distribution does X have? Specify its parameter(s).
b. What is the probability mass function of the total number of heads X?