Suppose a fair tetrahedral (4-sided) dice is rolled. It gives a random number k from {1, 2, 3, 4}.Following this, a fair coin is tossed k times
i). Suppose we were told all the coin tosses showed heads, what is the probability that the score of the dice was equal to 3?
ii). Generalise your result to the case where a fair n-sided dice is rolled giving some value 1 <= k <= n, following which a fair coin is tossed k times. If you were told all the coin tosses landed heads, what is the probability that the dice landed on the value s where 1 <= s <= n?