Note on the moments of a Bernoulli distribution