The Bernoulli series and Leibniz’s analogy