Let's use k instead of and p instead of because they are 'more familiar'. The probability to have k ones among n variables is...

(1)

... where...

(2)

The expected value of k is then...

(3)

... and the variance...

(4)

Marry Christmas from Serbia