Question
A bag contains $2n+1$ coins. It is known that $n$ of these coins have heads on both sides, whereas the other $n+1$ coins are fair. One coin is selected at random and tossed. If the probability that the toss results in heads is $\frac{31}{42}$, then the value of $n$ is