An integer power sum adds a fixed nonnegative integer power of consecutive integers. Let be a nonnegative integer and a nonnegative integer. For , use the constant polynomial , including at zero, so . Summing the Bernoulli polynomial finite difference identity makes the intermediate terms cancel and givesThe sum is empty when . For the endpoints , the formula valid also at is insteadFor , , and this becomes the standard positive-endpoint formula. The exception at is essential: .[ref]
NIST Digital Library of Mathematical Functions. Karl Dilcher, Chapter 24, equations 24.4.1 and 24.4.7; the displayed equation 24.4.7 needs the endpoint adjustment at exponent zero
For , adding to changes the contribution from to . Equivalently,where only differs from our Bernoulli numbers. A quick endpoint check is : the sums over and are and , respectively. The latter is a triangular number.
New to topics? Read the docs here!