So , which you integrate to get . To find the constant, use the condition on the integral: . Therefore , and .
Next, , which you integrate to find , using the condition on the integral to find the constant. And so on.
The polynomials that you get in this way are slightly different from the usual Bernoulli polynomials, because the signs of some of the coefficients are different.