f(n)=f(n-1)q+(1-f(n-1))pq, f(1)=pq, f(2)=pq(1+q(1-p))