Independent trials that result in a success with probability p and a failure with probability 1-p are called Bernoulli trials. Let $P_n$ denote the probability that n Bernoulli trials result in an even number of success (0 being considered an even number). Show that $P_n=p(1-P_{n-1})+(1-p)P_{n-1}$ $n \ge 1$ and use this to prove (by induction) that $P_n=\frac{1+(1-2p)^n}{2}$
So $P_n$ denotes the probability that n Bernoulli trials result in an even number of successes p = probability of success p-1 = probability of failure
$P_n=p(1-P_{n-1})+(1-p)P_{n-1}$ $n \ge 1$
I can see that the first part of the equation is the probability of success multiplied by the probability that n-1 trials result in failure, plus the probability of failure multiplied by probability that n-1 trials result in success.
But I don;t know how to show this mathematically..
So I think for the second part, for induction I need to start with the base case, n=1: $$P_n=p(1-P_{n-1})+(1-p)P_{n-1}$$ $$P_1=p(1-P_{1-1})+(1-p)P_{1-1}$$ $$P_0=p(1-P_{0})+(1-p)P_{0}$$
Then I get kind of stuck, well..$P_0$ is probability of n=0 trials, so would that be 0? $$P_0=p(1)=0$$
Then for induction, I need to show that n+1 is true right?