Faulhaber's formula explained

In mathematics, Faulhaber's formula, named after the early 17th century mathematician Johann Faulhaber, expresses the sum of the p-th powers of the first n positive integers\sum_^n k^p = 1^p + 2^p + 3^p + \cdots + n^pas a polynomial in n. In modern notation, Faulhaber's formula is \sum_^n k^ = \frac \sum_^p \binom B_r n^ .Here, \binom is the binomial coefficient "p + 1 choose r", and the Bj are the Bernoulli numbers with the convention that B_1 = +\frac12.

The result: Faulhaber's formula

Faulhaber's formula concerns expressing the sum of the p-th powers of the first n positive integers\sum_^n k^p = 1^p + 2^p + 3^p + \cdots + n^pas a (p + 1)th-degree polynomial function of n.

The first few examples are well known. For p = 0, we have\sum_^n k^0 = \sum_^n 1 = n .For p = 1, we have the triangular numbers\sum_^n k^1 = \sum_^n k = \frac = \frac12(n^2 + n) .For p = 2, we have the square pyramidal numbers\sum_^n k^2 = \frac = \frac13(n^3 + \tfrac32 n^2 + \tfrac12n) .

The coefficients of Faulhaber's formula in its general form involve the Bernoulli numbers Bj. The Bernoulli numbers begin \beginB_0 &= 1 & B_1 &= \tfrac12 & B_2 &= \tfrac16 & B_3 &= 0 \\B_4 &= -\tfrac & B_5 &= 0 & B_6 &= \tfrac & B_7 &= 0,\end where here we use the convention that B_1 = +\frac12. The Bernoulli numbers have various definitions (see Bernoulli number#Definitions), such as that they are the coefficients of the exponential generating function \frac = \frac \left(\operatorname \frac +1 \right) = \sum_^\infty B_k \frac .

Then Faulhaber's formula is that \sum_^n k^ = \frac \sum_^p \binom B_k n^ .Here, the Bj are the Bernoulli numbers as above, and\binom = \frac = \fracis the binomial coefficient "p + 1 choose k".

Examples

So, for example, one has for,\begin 1^4 + 2^4 + 3^4 + \cdots + n^4 &= \frac \sum_^4 B_j n^\\&= \frac \left(B_0 n^5+5B_1n^4+10B_2n^3+10B_3n^2+5B_4n\right)\\&= \frac \left(n^5 + \tfracn^4+ \tfracn^3- \tfracn \right) .\end

The first seven examples of Faulhaber's formula are \begin\sum_^n k^0 &= \frac \, \big(n \big) \\\sum_^n k^1 &= \frac \, \big(n^2 + \tfrac n \big) \\\sum_^n k^2 &= \frac \, \big(n^3 + \tfrac n^2 + \tfrac n \big) \\\sum_^n k^3 &= \frac \, \big(n^4 + \tfrac n^3 + \tfrac n^2 + 0n \big) \\\sum_^n k^4 &= \frac \, \big(n^5 + \tfrac n^4 + \tfrac n^3 + 0n^2 - \tfrac n \big) \\\sum_^n k^5 &= \frac \, \big(n^6 + \tfrac n^5 + \tfrac n^4 + 0n^3 - \tfrac n^2 + 0n \big) \\\sum_^n k^6 &= \frac \, \big(n^7 + \tfrac n^6 + \tfrac n^5 + 0n^4 - \tfrac n^3 + 0n^2 + \tfracn \big) .\end

History

Ancient period

The history of the problem begins in antiquity and coincides with that of some of its special cases. The case

p=1

coincides with that of the calculation of the arithmetic series, the sum of the first

n

values of an arithmetic progression. This problem is quite simple but the case already known by the Pythagorean school for its connection with triangular numbers is historically interesting:
1+2+...+n=1
2
2+1
2
n

n,

polynomial
1(n)
S
1,1
calculating the sum of the first

n

natural numbers.For

m>1,

the first cases encountered in the history of mathematics are:

1+3+...+2n-1=n2,

polynomial
1(n)
S
1,2
calculating the sum of the first

n

successive odds forming a square. A property probably well known by the Pythagoreans themselves who, in constructing their figured numbers, had to add each time a gnomon consisting of an odd number of points to obtain the next perfect square.

12+22+\ldots+n

2=1
3
3+1
2
n
2+1
6
n

n,

polynomial
2(n)
S
1,1
calculating the sum of the squares of the successive integers. Property that is demonstrated in Spirals, a work of Archimedes.

13+23+\ldots+n

3=1
4
4+1
2
n
3+1
4
n

n2,

polynomial
3(n)
S
1,1
calculating the sum of the cubes of the successive integers. Corollary of a theorem of Nicomachus of Gerasa.[1] L'insieme
m(n)
S
1,1
of the cases, to which the two preceding polynomials belong, constitutes the classical problem of powers of successive integers.

Middle period

Over time, many other mathematicians became interested in the problem and made various contributions to its solution. These include Aryabhata, Al-Karaji, Ibn al-Haytham, Thomas Harriot, Johann Faulhaber, Pierre de Fermat and Blaise Pascal who recursively solved the problem of the sum of powers of successive integers by considering an identity that allowed to obtain a polynomial of degree

m+1

already knowing the previous ones.[1]

Faulhaber's formula is also called Bernoulli's formula. Faulhaber did not know the properties of the coefficients later discovered by Bernoulli. Rather, he knew at least the first 17 cases, as well as the existence of the Faulhaber polynomials for odd powers described below.[2]

In 1713, Jacob Bernoulli published under the title Summae Potestatum an expression of the sum of the powers of the first integers as a th-degree polynomial function of , with coefficients involving numbers, now called Bernoulli numbers:

n
\sum
k=1

kp=

np+1+
p+1
1
2

np+{1\over

p
p+1} \sum
j=2

{p+1\choosej}Bjnp+1-j.

Introducing also the first two Bernoulli numbers (which Bernoulli did not), the previous formula becomes\sum_^n k^p = \sum_^p B_j n^,using the Bernoulli number of the second kind for which B_1=\frac, or\sum_^n k^p = \sum_^p (-1)^j B_j^- n^,using the Bernoulli number of the first kind for which B_1^- =-\frac.

A rigorous proof of these formulas and Faulhaber's assertion that such formulas would exist for all odd powers took until, two centuries later. Jacobi benefited from the progress of mathematical analysis using the development in infinite series of an exponential function generating Bernoulli numbers.

Modern period

In 1982 A.W.F. Edwards publishes an article [3] in which he shows that Pascal's identity can be expressed by means of triangular matrices containing the Pascal's triangle deprived of 'last element of each line:

\begin{pmatrix} n\\ n2\\ n3\\ n4\\ n5\\ \end{pmatrix}=\begin{pmatrix} 1&0&0&0&0\\ 1&2&0&0&0\\ 1&3&3&0&0\\ 1&4&6&4&0

n-1
\\ 1&5&10&10&5 \end{pmatrix}\begin{pmatrix} n\\ \sum
k=0
n-1
k
k=0
n-1
k
k=0
n-1
k
k=0

k4\\ \end{pmatrix}

[4] [5]

The example is limited by the choice of a fifth order matrix but is easily extendable to higher orders. The equation can be written as:

\vec{N}=A\vec{S}

and multiplying the two sides of the equation to the left by

A-1

, inverse of the matrix A, we obtain

A-1\vec{N}=\vec{S}

which allows to arrive directly at the polynomial coefficients without directly using the Bernoulli numbers. Other authors after Edwards dealing with various aspects of the power sum problem take the matrix path [6] and studying aspects of the problem in their articles useful tools such as the Vandermonde vector.[7] Other researchers continue to explore through the traditional analytic route [8] and generalize the problem of the sum of successive integers to any geometric progression[9] [10]

Proof with exponential generating function

Let S_(n)=\sum_^ k^p,denote the sum under consideration for integer

p\ge0.

Define the following exponential generating function with (initially) indeterminate

z

G(z,n)=\sum_^ S_(n) \fracz^p.We find \beginG(z,n) =& \sum_^ \sum_^ \frac(kz)^p=\sum_^e^=e^\cdot\frac,\\=& \frac.\endThis is an entire function in

z

so that

z

can be taken to be any complex number.

Bj(x)

\frac=\sum_^ B_j(x) \frac,where

Bj=Bj(0)

denotes the Bernoulli number with the convention

B1=-

1
2
. This may be converted to a generating function with the convention
+
B
1=1
2
by the addition of

j

to the coefficient of

xj-1

in each

Bj(x)

(

B0

does not need to be changed):\begin\sum_^ B^+_j(x) \frac =& \frac+\sum_^jx^\frac\\=& \frac+\sum_^x^\frac\\=& \frac+ze^\\=& \frac\\=& \frac\endIt follows immediately thatS_p(n)=\fracfor all

p

.

Faulhaber polynomials

The term Faulhaber polynomials is used by some authors to refer to another polynomial sequence related to that given above.

Writea = \sum_^n k = \frac . Faulhaber observed that if p is odd then \sum_^n k^p is a polynomial function of a.

For p = 1, it is clear that\sum_^n k^1 = \sum_^n k = \frac = a. For p = 3, the result that\sum_^n k^3 = \frac = a^2 is known as Nicomachus's theorem.

Further, we have \begin\sum_^n k^5 &= \frac \\\sum_^n k^7 &= \frac \\\sum_^n k^9 &= \frac \\\sum_^n k^ &= \frac\end (see,,,,).

More generally, \sum_^n k^ = \frac \sum_^m \binom(2-2^)~ B_ ~\left[(8a+1)^{m+1-q}-1\right].

Some authors call the polynomials in a on the right-hand sides of these identities Faulhaber polynomials. These polynomials are divisible by because the Bernoulli number is 0 for odd .

Inversely, writing for simplicity

sj:=

n
\sum
k=1

kj

, we have \begin4a^3 &= 3s_5 +s_3 \\8a^4 &= 4s_7+4s_5 \\16a^5 &= 5s_9+10s_7+s_5\end and generally 2^ a^m = \sum_ \binom s_.

Faulhaber also knew that if a sum for an odd power is given by\sum_^n k^ = c_1 a^2 + c_2 a^3 + \cdots + c_m a^then the sum for the even power just below is given by\sum_^n k^ = \frac(2 c_1 a + 3 c_2 a^2+\cdots + (m+1) c_m a^m).Note that the polynomial in parentheses is the derivative of the polynomial above with respect to a.

Since a = n(n + 1)/2, these formulae show that for an odd power (greater than 1), the sum is a polynomial in n having factors n2 and (n + 1)2, while for an even power the polynomial has factors n, n + 1/2 and n + 1.

Expressing products of power sums as linear combinations of power sums

Products of two (and thus by iteration, several) power sums

s
jr
n
:=\sum
k=1
jr
k

can be written as linear combinations of power sums with either all degrees even or all degrees odd, depending on the total degree of the product as a polynomial in

n

, e.g.

30s2s4=-s3+15s5+16s7

. Note that the sums of coefficients must be equal on both sides, as can be seen by putting

n=1

, which makes all the

sj

equal to 1. Some general formulae include: \begin(m+1)s_m^2 &= 2\sum_^\binom(2m+1-2j)B_s_.\\m(m+1)s_ms_&=m(m+1)B_ms_m+\sum_^\binom(2m+1-2j)B_s_.\\ 2^ s_1^m &= \sum_^ \binom s_.\endNote that in the second formula, for even

m

the term corresponding to

j=\dfracm2

is different from the other terms in the sum, while for odd

m

, this additional term vanishes because of

Bm=0

.

Matrix form

Faulhaber's formula can also be written in a form using matrix multiplication.

Take the first seven examples \begin\sum_^n k^0 &= \phantom1n \\\sum_^n k^1 &= \phantom\tfracn+\tfracn^2 \\\sum_^n k^2 &= \phantom\tfracn+\tfracn^2+\tfracn^3 \\\sum_^n k^3 &= \phantom0n+\tfracn^2+\tfracn^3+\tfracn^4 \\\sum_^n k^4 &= -\tfracn+0n^2+\tfracn^3+\tfracn^4+\tfracn^5 \\\sum_^n k^5 &= \phantom0n-\tfracn^2+0n^3+\tfracn^4+\tfracn^5+\tfracn^6 \\\sum_^n k^6 &= \phantom\tfracn+0n^2-\tfracn^3+0n^4+\tfracn^5+\tfracn^6+\tfracn^7 .\endWriting these polynomials as a product between matrices gives\begin\sum k^0 \\\sum k^1 \\\sum k^2 \\\sum k^3 \\\sum k^4 \\\sum k^5 \\\sum k^6 \end =G_7\beginn \\n^2 \\n^3 \\n^4 \\n^5 \\n^6 \\n^7 \end,where G_7 = \begin1& 0& 0& 0& 0&0& 0\\& & 0& 0& 0& 0& 0\\& && 0& 0& 0& 0\\0& & & & 0&0& 0\\-& 0& & & &0& 0\\0& -& 0& & & & 0\\& 0& -& 0& && \end .

Surprisingly, inverting the matrix of polynomial coefficients yields something more familiar:G_7^=\begin 1& 0& 0& 0& 0& 0& 0\\-1& 2& 0& 0& 0& 0& 0\\ 1& -3& 3& 0& 0& 0& 0\\-1& 4& -6& 4& 0& 0& 0\\ 1& -5& 10& -10& 5& 0& 0\\-1& 6& -15& 20& -15& 6& 0\\ 1& -7& 21& -35& 35& -21& 7\\\end = \overline_7

In the inverted matrix, Pascal's triangle can be recognized, without the last element of each row, and with alternating signs.

Let

A7

be the matrix obtained from

\overline{A}7

by changing the signs of the entries in odd diagonals, that is by replacing

ai,j

by

(-1)i+jai,j

, let

\overline{G}7

be the matrix obtained from

G7

with a similar transformation, thenA_7=\begin1& 0& 0& 0& 0& 0& 0\\1& 2& 0& 0& 0& 0& 0\\1& 3& 3& 0& 0& 0& 0\\1& 4& 6& 4& 0& 0& 0\\1& 5& 10& 10& 5& 0& 0\\1& 6& 15& 20& 15& 6& 0\\1& 7& 21& 35& 35& 21& 7\\\end and A_7^=\begin1& 0& 0& 0& 0&0& 0\\-& & 0& 0& 0& 0& 0\\& -&& 0& 0& 0& 0\\0& & -& & 0&0& 0\\-& 0& & -& &0& 0\\0& -& 0& & -& & 0\\& 0& -& 0& &-& \end=\overline_7 .Also\begin\sum_^ k^0 \\\sum_^ k^1 \\\sum_^ k^2 \\\sum_^ k^3 \\\sum_^ k^4 \\\sum_^ k^5 \\\sum_^ k^6 \\\end =\overline_7\beginn \\n^2 \\n^3 \\n^4 \\n^5 \\n^6 \\n^7 \\\endThis is because it is evident that\sum_^k^m-\sum_^k^m=n^m and that therefore polynomials of degree

m+1

of the form \fracn^+\fracn^m+\cdots subtracted the monomial difference

nm

they become \fracn^-\fracn^m+\cdots .

This is true for every order, that is, for each positive integer, one has

-1
G
m

=\overline{A}m

and
-1
\overline{G}
m

=Am.

Thus, it is possible to obtain the coefficients of the polynomials of the sums of powers of successive integers without resorting to the numbers of Bernoulli but by inverting the matrix easily obtained from the triangle of Pascal.[11] [12]

Variations

k

with

p-k

, we find the alternative expression: \sum_^n k^p= \sum_^p \frac1 B_ n^.

np

from both sides of the original formula and incrementing

n

by

1

, we get \begin\sum_^n k^ &= \frac \sum_^p \binom (-1)^kB_k (n+1)^ \\&= \sum_^p \frac \binom (-1)^B_ (n+1)^, \end

where

kB
(-1)
k

=

-
B
k
can be interpreted as "negative" Bernoulli numbers with
-
B
1=-\tfrac12
.

G(z,n)

in terms of the Bernoulli polynomials to find \beginG(z,n) &= \frac - \frac\\&= \sum_^ \left(B_j(n+1)-(-1)^j B_j\right) \frac, \end which implies \sum_^n k^p = \frac \left(B_(n+1)-(-1)^B_\right) = \frac\left(B_(n+1)-B_(1) \right). Since

Bn=0

whenever

n>1

is odd, the factor

(-1)p+1

may be removed when

p>0

.

\sum_^n k^p = \sum_^p \left\\frac, \sum_^n k^p = \sum_^ \left\\frac. This is due to the definition of the Stirling numbers of the second kind as mononomials in terms of falling factorials, and the behaviour of falling factorials under the indefinite sum.

Interpreting the Stirling numbers of the second kind,

\left\{{p+1\atopk}\right\}

, as the number of set partitions of

\lbrackp+1\rbrack

into

k

parts, the identity has a direct combinatorial proof since both sides count the number of functions

f:\lbrackp+1\rbrack\to\lbrackn\rbrack

with

f(1)

maximal. The index of summation on the left hand side represents

k=f(1)

, while the index on the right hand side is represents the number of elements in the image of f.

\begin(n+1)^-1 &= \sum_^n \left((m+1)^ - m^\right)\\&= \sum_^k \binom (1^p+2^p+ \dots + n^p).\end

This in particular yields the examples below – e.g., take to get the first example. In a similar fashion we also find\beginn^ = \sum_^n \left(m^ - (m-1)^\right) = \sum_^k (-1)^\binom (1^p+2^p+ \dots + n^p).\end

An(x)

is
infty
\sum
n=1

nk

n=x
(1-x)k+1
x

Ak(x)

.

Relationship to Riemann zeta function

Using

Bk=-k\zeta(1-k)

, one can write\sum\limits_^n k^p = \frac - \sum\limits_^\zeta(-j)n^.

If we consider the generating function

G(z,n)

in the large

n

limit for

\Re(z)<0

, then we find\lim_G(z,n) = \frac=\sum_^ (-1)^B_j \fracHeuristically, this suggests that \sum_^ k^p=\frac.This result agrees with the value of the Riemann zeta function \zeta(s)=\sum_^\frac for negative integers

s=-p<0

on appropriately analytically continuing

\zeta(s)

.

Umbral form

In the umbral calculus, one treats the Bernoulli numbers B^0 = 1, B^1 = \frac, B^2 = \frac, ... as if the index j in B^j were actually an exponent, and so as if the Bernoulli numbers were powers of some object B.

Using this notation, Faulhaber's formula can be written as \sum_^n k^p = \frac \big((B+n)^ - B^ \big) . Here, the expression on the right must be understood by expanding out to get terms B^j that can then be interpreted as the Bernoulli numbers. Specifically, using the binomial theorem, we get\begin\frac \big((B+n)^ - B^ \big)&= \left(\sum_^ \binom B^k n^ - B^ \right) \\&= \sum_^ \binom B^k n^ .\end

A derivation of Faulhaber's formula using the umbral form is available in The Book of Numbers by John Horton Conway and Richard K. Guy.[16]

Classically, this umbral form was considered as a notational convenience. In the modern umbral calculus, on the other hand, this is given a formal mathematical underpinning. One considers the linear functional T on the vector space of polynomials in a variable b given by T(b^j) = B_j. Then one can say\begin\sum_^n k^p &= \sum_^p B_j n^ \\&= \sum_^p T(b^j) n^ \\&= T\left(\sum_^p b^j n^ \right) \\&= T\left(\right).\end

A general formula

The series

1m+2m+3m+..nm

as a function of m is often abbreviated as

Sm

. Beardon (see External Links) have published formulas for powers of

Sm

. For example, Beardon 1996 stated this general formula for powers of

S1:   S

N
1

=

1
2N
N
\sum
r=0

{N\chooser}SN+r(1-(-1)N-r)

, which shows that

S1

raised to a power N can be written as a linear sum of terms S_3,\;\; S_5,\;\; S_7... For example, by taking N to be 2, then 3, then 4 in Beardon's formula we get the identities
 2
S
1

=S3,  S

 3
1

=

1
4

S3+

3
4

S5,  

 4
S
1

=

1
2

S5+

1
2

S7

. Other formulae, such as
 2
S
2

=

1
3

S4+

2
3

S5

and
 3
S
2

=

1
12

S4+

7
12

S6+

1
3

S8

are known but no general formula for
N
S
m
, where m, N are positive integers, has been published to date. In an unpublished paper by Derby (2019) the following formula was stated and proved:
N
S
m

=

N
\sum
k=1

(-1)k-1{N\choose

n
k}\sum
r=1

rmk

  N-k
S
m

(r)

.This can be calculated in matrix form, as described above. In the case when m = 1 it replicates Beardon's formula for
N
S
1
. When m = 2 and N = 2 or 3 it generates the given formulas for
  2
S
2
and
 3
S
2
. Examples of calculations for higher indices are
 4
S
2

=

1
54

S5+

5
18

S7+

5
9

S9+

4
27

S11

and
 3
S
6

=

1
588

S8-

1
42

S10+

13
84

S12-

47
98

S14+

17
28

S16+

19
28

S18+

3
49

S20

.

External links

Notes and References

  1. News: Janet. Beery. Sum of powers of positive integers. 2009. MMA Mathematical Association of America . 10.4169/loci003284.
  2. Donald E. Knuth . Johann Faulhaber and sums of powers . Mathematics of Computation . 1993 . 61 . 277 - 294 . math.CA/9207222. 10.2307/2152953. 203. 2152953. Donald E. Knuth . The arxiv.org paper has a misprint in the formula for the sum of 11th powers, which was corrected in the printed version. Correct version.
  3. Anthony William Fairbank. Edwards . Sums of powers of integers: A little of the History . The Mathematical Gazette. 66. 435 . 1982. 22–28 . 10.2307/3617302. 3617302 . 125682077 .
  4. The first element of the vector of the sums is

    n

    and not
    n-1
    \sum
    k=0

    k0

    because of the first addend, the indeterminate form

    00

    , which should otherwise be assigned a value of 1
  5. Book: Edwards, A.W.F.. Pascal's Arithmetical Triangle: The Story of a Mathematical Idea. 84. Charles Griffin & C.. 1987. 0-8018-6946-3.
  6. News: Dan. Kalman . Sums of Powers by matrix method . Semantic scholar . 1988. 2656552 .
  7. News: Gottfried. Helmes . Accessing Bernoulli-Numbers by Matrix-Operations . Uni-Kassel.de . 2006.
  8. Web site: F.T. Howard. Sums of powers of integers via generating functions. 1994. 10.1.1.376.4044.
  9. Wolfdieter. Lang . On Sums of Powers of Arithmetic Progressions, and Generalized Stirling, Eulerian and Bernoulli numbers. 2017 . math.NT . 1707.04451 .
  10. Do. Tan Si. Obtaining Easily Sums of Powers on Arithmetic Progressions and Properties of Bernoulli Polynomials by Operator Calculus. Canadian Center of Science and Education. Applied Physics Research. 1916-9639. 9. 2017.
  11. .
  12. .
  13. [Concrete Mathematics]
  14. Kieren MacMillan, Jonathan Sondow. Proofs of power sum and binomial coefficient congruences via Pascal's identity . . 2011 . 118 . 6 . 549 - 551 . 10.4169/amer.math.monthly.118.06.549. 1011.0076. 207521003 .
  15. Guo . Victor J. W. . Zeng . Jiang . 30 August 2005 . A q-Analogue of Faulhaber's Formula for Sums of Powers . The Electronic Journal of Combinatorics . 11 . 2 . 10.37236/1876 . 2005math......1441G . math/0501441 . 10467873 .
  16. Book: . The Book of Numbers . Springer . 1996 . 0-387-97993-X . 107 .