Thank you, Professor.
This how I calculate the probabilities. Let

- the number of heads for

, and let

be the number of heads in i-th experiment (out of 1000). Then, as Professor has shown previously,
Now,

. Therefore,
Next,
Next,
The rest can be calculated directly too, but they are essenctially 0 for the purpose of calculating the mean.