Bernoulli trials refer to independent trials each with success probability p and failure probability 1-p.
Let P(n) be the probability when there is an even number of successes in n Bernoulli trials.
Show that
P(n)=p ( 1-P(n-1) ) + ( 1-p )P(n-1) for n larger and =1
Please answer with explanation, thx!