p_{n} = p^{\frac{n+k}{2}}(1-p)^{\frac{n-k}{2}}