g(n+1) = 4*g(n)*(1-g(n))