Prove that the sum of rolling 500 dice being an even number is 1/2. The hint is to define A as the event that "the sum of the first 499 dice is even" and define B as the event that "the 500th dice is even".
My Attempt: Define X as the event "the sum of 500 dice is even"
Then: $$P(X) = P(B|A) + P(B^c|A^c)$$ $$=\frac{P(B \cap A)}{P(A)} +\frac{P(B^c \cap A^c)}{P(A^c)}$$ $$=\frac{P(B)P(A)}{P(A)} +\frac{P(B^c)P(A^c)}{P(A^c)}$$ $$P(B) + P(B^c) = \frac{1}{2}+\frac{1}{2}=1$$ Where the 2nd to 3rd step is because events B and A are independent of each other. Clearly this is wrong since $P(X)$ should be $\frac{1}{2}$ and not $1$.
I'm assuming there is a mistake in my first step. My thinking is that if the sum of the 499 dice is even, then the 500th has to also be even for the sum of 500 dice to be even, and if the sum of 499 dice is odd, then the 500th dice has to be odd.
Any help is greatly appreciated :)
Define the event $E_k = \{\text{the sum of} \ k \ \text{dice is even}\}$.
But the sum of $k$ dice is even if and only if the sum of first $k−1$ dice is even and the $k$-th die is even or that the sum of first $k−1$ dice is odd and $k$-th die is odd, then
$$P(E_k) = \frac{1}{2}P(E_{k-1})+\frac12P(E_{k-1}^c) = $$
$$\frac{1}{2}(P(E_{k-1})+P(E_{k-1}^c)) = \frac{1}{2}(P(E_{k-1})+1-P(E_{k-1})) = \frac12$$
So in particular $P(E_{500})= \frac12$.