Ram has 2018 coins.
The coin has a chance of flipping heads, the coin has a chance of flipping heads, the coin has a chance of flipping heads, continuing such that the coin has a chance of flipping heads, where is the prime number.
Ram flips each of his coins once.
What is the probability that Ram flips an even number of heads?