N consequitive heads

X=1/2(X+1) +1/4(X+2) ±------+N/2^N ismein X E(X) hai na kya mai sahi hu?

Yup
It was written X only for ease.