An analogue of the Bernoulli polynomials