A bridge is B steps long. Each step offers two panels, one safe and one
that breaks, and nobody knows which is which. Players cross one at a time, and
everything an earlier player discovers stays known to those behind.
Return the probability that player i (1-indexed) survives.
Player i survives exactly when .
Input
B = 18
i = 1
Output
3.814697265625e-06