Let X be equal to the number of heads from tossing a coin twice. Verify that the following is the probability mass function of x.

p(X x)=1/2(2-x)x!

I forgot to mention.. for x 0,1,2