g(0)=0, g(n+1) = (1-k^2) g(n) + k^2 a_0 ( 1- a_0 )