p^4+3p^3(1-p)+p^2(1-p)^2