The random variable X can take only values 0, 1, 2, 3. Given that P(X = 0) = P(X - 1) = p and P(X = 2) = P(X = 3) such that ∑pi x2i = 2∑pixi find the value of p.
∑p(x) = 1 or 2p+2k = 1
k = 1/2-p