A bag holds fair_coins ordinary coins and double_headed_coins coins with
heads on both sides. You draw one coin uniformly at random, flip it n times,
and every flip comes up heads. Return the probability that the coin is
double-headed.
n heads with probability 1n heads with probability Input
fair_coins = 999
double_headed_coins = 1
n = 10
Output
0.5061789421651013