The dice game is very common in movies. Briefly, the rule is that you need to bet on your choice, and the probability of winning is one-half. If you win, your money will get doubled, otherwise you will lose your money in this round.
One day, Tom came up with a brilliant strategy to make sure he wouldn't lose much money.
The steps of the strategy are described as following:
Now Tom wants to know the probability of his winning the money using this strategy.
The first line contains a number $t(t≤20)$ indicating that there are t test cases.
The next t lines contain a number $n(n≤20)$ each, indicating that the maximum round Tom would play.
Please output the probability that Tom will make money.(Reserve 4 digits after the decimal point)
Please use double instead of float In the first test case, $n$ equals to $1$.
The probability of wining and losing are equal, so the probability of winning at the first time is $0.5000$.
In the second test case, $n$ equals to $2$.The probability of wining and losing are equal, so the probability of winning at the first time is $0.5000$. When lose the game at the first time, the probability of winning at the second time is $0.5000$. Therefore the probability that Tom will make money equal to $0.5000 + 0.5000 \times 0.5000 = 0.7500$.