For an integer , Faulhaber's formula expresses a sum of powers as a polynomial in the upper limit:where are the Bernoulli polynomials. The identity makes the sum telescope. This is a discrete analogue of finding an antiderivative.[ref]
For the result is ; for it is . Although the displayed polynomial has rational coefficients, it takes integer values at nonnegative integers.
New to topics? Read the docs here!