Toss a coin n times. Let $X_n= \#heads-\#tails$ If the probability of heads is p, find the distribution and expectation of $X_n$.
I know how to find a distribution if I roll a dice twice, three, or four times. \begin{array}{l|c} %l/c/r = left-align/centre/right-align | for a vertical bar \mathrm{Outcome} & X = \mbox{#heads} - \mbox{#tails}\\\hline HH & 2 \\ HT & 0 \\ TH & 0 \\ TT & -2 \\ \end{array}
$F(x)= P(X\leq x)$ = \begin{cases} 0, & \text{if } x < -2, \\ \frac{1}{4}, & \text{if } -2 \leq x < 0 \\ \frac{3}{4}, & \text{if } 0 \leq x <2\\ 1, & \text{if } x \geq 2 \end{cases}
How would I do a distribution to the n times?
I know that the expectation of X is:
$E\{X\}$=$$\sum_{i=1}^{\infty} x_iP\{\Lambda_i\} $$
How would I tackle this?