Faulhaber's formula

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Use American English In mathematics, Faulhaber's formula, named after the early 17th century mathematician Johann Faulhaber, expresses the sum of the pth powers of the first n positive integers ∑k=1nkp=1p+2p+3p+⋯+np as a polynomial in n. In modern notation, Faulhaber's formula is ∑k=1nkp=1p+1∑r=0p(p+1r)Br+np+1−r. Here, (p+1r) is the binomial coefficient "p+1 choose r", and the Br+ are the second Bernoulli numbers, identical to the first ones except for B1+=12.[1]

The result: Faulhaber's formula

Faulhaber's formula concerns expressing the sum of the pth powers of the first n positive integers ∑k=1nkp=1p+2p+3p+⋯+np as a (p+1)th-degree polynomial function of n.

For Template:Math, six square pyramids with Template:Math steps fit in a cuboid of size Template:Math

The first few examples are well known. For p=0, we have ∑k=1nk0=∑k=1n1=n. For p=1, we have the triangular numbers ∑k=1nk1=∑k=1nk=n(n+1)2=12(n2+n). For p=2, we have the square pyramidal numbers ∑k=1nk2=n(n+1)(2n+1)6=13(n3+32n2+12n).

The coefficients of Faulhaber's formula in its general form involve the second Bernoulli numbers Bj+ which nearly coincide with the first Bernoulli numbers denoted Bj− (or simply Bj); the sole exception is at j=1, where B1−=−12 but B1+=12. The Bernoulli numbers begin B0=1B1+=12B2=16B3=0B4=−130B5=0B6=142B7=0,

Then Faulhaber's formula is that ∑k=1nkp=1p+1∑r=0p(p+1r)Br+np+1−r. Here, the Bj are the Bernoulli numbers as above, and (p+1r)=(p+1)!(p−r+1)!r!=(p+1)p(p−1)⋯(p−r+3)(p−r+2)r(r−1)(r−2)⋯2⋅1 is the binomial coefficient "p+1 choose r".

Examples

So, for example, one has for p=4, 14+24+34+⋯+n4=15∑j=04(5j)Bj+n5−j=15(B0n5+5B1+n4+10B2n3+10B3n2+5B4n)=15(n5+52n4+53n3−16n).

The first seven examples of Faulhaber's formula are ∑k=1nk0=11(n)∑k=1nk1=12(n2+22n)∑k=1nk2=13(n3+32n2+36n)∑k=1nk3=14(n4+42n3+66n2+0n)∑k=1nk4=15(n5+52n4+106n3+0n2−530n)∑k=1nk5=16(n6+62n5+156n4+0n3−1530n2+0n)∑k=1nk6=17(n7+72n6+216n5+0n4−3530n3+0n2+742n).

History

Ancient period

The history of the problem begins in antiquity, its special cases arising as solutions to related inquiries. The case p=1 coincides historically with the problem of calculating the sum of the first n terms of an arithmetic progression. In chronological order, early discoveries include:

1+2+…+n=12n2+12n, Template:Pad a formula known by the Pythagorean school for its connection with triangular numbers.
1+3+…+2n−1=n2, Template:Pad a result showing that the sum of the first n positive odd numbers is a perfect square. This formula was likely also known to the Pythagoreans, who in constructing figurate numbers realized that the gnomon of the nth perfect square is precisely the nth odd number.
12+22+…+n2=13n3+12n2+16n, Template:Pad a formula that calculates the sum of the squares of the first n positive integers, as demonstrated in Spirals, a work of Archimedes.[2]
13+23+…+n3=14n4+12n3+14n2, Template:Pad a formula that calculates the sum of the cubes of the first n positive integers, discovered as a corollary of a theorem of Nicomachus of Gerasa.[2]

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.[2]

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.[3]

Jakob Bernoulli's Summae Potestatum, Ars Conjectandi, 1713

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

∑k=1nkp=np+1p+1+12np+1p+1∑j=2p(p+1j)Bjnp+1−j.

Introducing also the first two Bernoulli numbers (which Bernoulli did not), the previous formula becomes ∑k=1nkp=1p+1∑j=0p(p+1j)Bj+np+1−j, using the Bernoulli number of the second kind for which B1+=12, or ∑k=1nkp=1p+1∑j=0p(−1)j(p+1j)Bjnp+1−j, using the Bernoulli number of the first kind Bj=Bj− for which B1=−12.

A rigorous proof of these formulas and Faulhaber's assertion that such formulas would exist for all odd powers took until Template:Harvs, 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 published an article[4] showing that Pascal's identity can be expressed by means of triangular matrices containing a modified Pascal's triangle:

(nn2n3n4n5)=(100001200013300146401510105)(n∑k=0n−1k1∑k=0n−1k2∑k=0n−1k3∑k=0n−1k4)[5][6]

This example is limited by the choice of a fifth-order matrix, but the underlying method is easily extendable to higher orders. Writing the equation as N→=AS→ and multiplying the two sides of the equation to the left by A−1, we obtain A−1N→=S→, thereby arriving at the polynomial coefficients without directly using the Bernoulli numbers. Expanding on Edwards' work, some authors researching the power-sum problem have taken the matrix path,[7] leveraging useful tools such as the Vandermonde vector.[8] Other researchers continue to explore through the traditional analytic route,[9] generalizing the problem of the sum of successive integers to any arithmetic progression.[10][11]

Polynomials calculating sums of powers of arithmetic progressions 

Consider the problem of finding polynomials Sh,dp for any nonnegative integer p such that

Sh,dp(n)=∑k=0n−1(h+kd)p=hp+(h+d)p+⋯+(h+(n−1)d)p,

given complex numbers h and d≠0. Faulhaber's formula handles the simple case S1,1p(n)=∑k=0n−1(1+k)p=1p+2p+…+np. The polynomials S1,2p(n)=∑k=0n−1(1+2k)p=1p+3p+…+(2n−1)p compute sums of powers of successive odd numbers, and so on. In general, such polynomials exist for any arithmetic progression.

Matrix method

The general case is solved using the following matrix formula:

Sh,d→(n)=T(h,d)A−1Nn→, with row-column definitions
[Sh,d→(n)]r:=Sh,dr−1(n),[Nn→]r:=nr,
[T(h,d)]r,c:={0if c>r(r−1c−1)hr−cdc−1if c≤r,[A]r,c:={0if c>r(rc−1)if c≤r,

where r (row) and c (column) are bound by a given matrix order m.[12]

Example

To generalize up to p=4, apply the above formula for matrix order m=5:  

(Sh,d0(n)Sh,d1(n)Sh,d2(n)Sh,d3(n)Sh,d4(n))=(10000hd000h22hdd200h33h2d3hd2d30h44h3d6h2d24hd3d4)(100001200013300146401510105)−1(nn2n3n4n5)

Note that the nonzero elements of T(h,d) follow the binomial theorem, and that A is just Pascal's triangle with each row's last element omitted. Letting h=1, d=2 and computing A−1, we have:

T(1,2)=(10000120001440016128018243216),A−1=(10000−121200016−121300014−12140−130013−1215)

Multiplication therefore yields

(S1,20(n)S1,21(n)S1,22(n)S1,23(n)S1,24(n))=(1000001000−13043000−10207150−830165)(nn2n3n4n5)=(nn2−13n+43n3−n2+2n4715n−83n3+165n5).

Methods involving Bernoulli polynomials

The following formula implicitly solves the problem using Bernoulli polynomials:

Sh,dp(n)=dpp+1(Bp+1(n+hd)−Bp+1(hd)) [13]

In particular:

S1,1p(n)=Bp+1(n+1)−Bp+1(1)p+1
S0,1p(n)=Bp+1(n)−Bp+1(0)p+1
S1,2p(n)=2pBp+1(n+12)−Bp+1(12)p+1

Furthermore, given the lower triangular matrix

[G(h,d)]r,c:={0if c>rdr−1r(rc)Br−c(hd)if c≤r,

one has the substitution G(h,d)=T(h,d)A−1,[12] allowing for a refinement of the above matrix method.

Faulhaber's formula in matrix form

Using the matrix method with h=1,d=1, Faulhaber's formula may be written as a product of matrices derived from Pascal's triangle. Letting S1,1p(n)=∑kp, we have

(∑k0∑k1∑k2∑k3∑k4∑k5∑k6)=(100000011000001210000133100014641001510105101615201561)(1000000120000013300001464000151010500161520156017213535217)−1(nn2n3n4n5n6n7),

choosing m=7. This can be simplified given the surprising fact that

(1000000−12000001−330000−14−640001−510−10500−16−1520−15601−721−3535−217)(100000011000001210000133100014641001510105101615201561)=(1000000120000013300001464000151010500161520156017213535217).

Let A‾ be the leftmost matrix. Then A‾T(1,1)=A, and so T(1,1)A−1=A‾−1. Hence

(∑k0∑k1∑k2∑k3∑k4∑k5∑k6)=(1000000−12000001−330000−14−640001−510−10500−16−1520−15601−721−3535−217)−1(nn2n3n4n5n6n7)

by substitution. Note the alternating signs in the inverted matrix. Since T(0,1) is the identity matrix, the equation for the alternatively indexed power sums ∑k=0n−1kp follows readily:

(n∑k=0n−1k1∑k=0n−1k2∑k=0n−1k3∑k=0n−1k4∑k=0n−1k5∑k=0n−1k6)=(1000000120000013300001464000151010500161520156017213535217)−1(nn2n3n4n5n6n7)

Since these matrix equations hold for every order, it is possible to obtain the polynomials of the sums of powers of successive integers without resorting to the numbers of Bernoulli but by inverting a matrix easily obtained from the triangle of Pascal.[14][15]

Faulhaber polynomials

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

Write a=∑k=1nk=n(n+1)2. Faulhaber observed that if p is odd then ∑k=1nkp is a polynomial function of a.

Proof without words for Template:Math [16]

For p=1, it is clear that ∑k=1nk1=∑k=1nk=n(n+1)2=a. For p=3, the result that ∑k=1nk3=n2(n+1)24=a2 is known as Nicomachus's theorem.

Further, we have ∑k=1nk5=4a3−a23∑k=1nk7=6a4−4a3+a23∑k=1nk9=16a5−20a4+12a3−3a25∑k=1nk11=16a6−32a5+34a4−20a3+5a23 (see Template:OEIS2C, Template:OEIS2C, Template:OEIS2C, Template:OEIS2C, Template:OEIS2C).

More generally, Template:Citation needed ∑k=1nk2m+1=122m+2(2m+2)∑q=0m(2m+22q)(2−22q)B2q[(8a+1)m+1−q−1].

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

Inversely, writing for simplicity Sm:=∑k=1nkm, we have 4a3=3S5+S38a4=4S7+4S516a5=5S9+10S7+S5 and generally 2m−1am=∑j>0(m2j−1)S2m−2j+1.

Faulhaber also knew that if a sum for an odd power is given by ∑k=1nk2m+1=c1a2+c2a3+⋯+cmam+1 then the sum for the even power just below is given by ∑k=1nk2m=n+122m+1(2c1a+3c2a2+⋯+(m+1)cmam). 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 Sm:=∑k=1nkm 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. The sums of coefficients on both sides must be equal, which follows by letting n=1. Some general formulae include: (m+1)Sm2=2∑j=0⌊m2⌋(m+12j)(2m+1−2j)B2jS2m+1−2j.m(m+1)SmSm−1=m(m+1)BmSm+∑j=0⌊m−12⌋(m+12j)(2m+1−2j)B2jS2m−2j.2m−1S1m=∑j=1⌊m+12⌋(m2j−1)S2m+1−2j. The latter formula may be used to recursively compute Faulhaber polynomials. Note that in the second formula, for even m the term corresponding to j=m2 is different from the other terms in the sum, while for odd m, this additional term vanishes because of Bm=0. Beardon has published formulas for powers of Sm, including a 1996 paper[17] which demonstrated that integer powers of S1 can be written as a linear sum of terms in the sequence S3,S5,S7,...:

S1N=12N∑k=0N(Nk)SN+k(1−(−1)N+k)

The first few resulting identities are then

S12=S3
S13=14S3+34S5
S14=12S5+12S7.

Although other specific cases of SmN – including S22=13S3+23S5 and S23=112S4+712S6+13S8 – are known, no explicit formula for SmN for positive integers m and N has yet been reported.

A 2019 paper by Derby[18] introduced a formula for Sm2:

Sm2=∑p=1n(2pmSm(p)−S2m)

The coefficients for S1,S2,S3 in relation to the vector (n,n2,n3,n4) are (1/2, 1/2), (1/6, 1/2, 1/3) and (0, 1/4, 1/2, 1/4). Applying the formula, The coefficients for S12,S22,S32 are (0, 1), (1/3, 0, 2/3) and (0, 1/2, 0, 1/2). These apply to the vector (Sm+1,Sm+2,Sm+3,Sm+4..),. So S12=S3,S22=1/3S3+2/3S5,S32=1/2S5+1/2S7.

The formula was stated and proved in Kariya[19] The pattern shows a much simpler implementation of the formula. To find the coefficients of Sm2, double the coefficients of Sm (which apply to the vector (n,n2,n3)) and set the second last coefficient to zero. Kariya would not have been familiar with matrix methods for sums of powers at the start of the 20th century, so he may not have been aware of this implementation of his formula.

Derby[20] generalised the Kariya fomula to one for all integer powers SmN, m, n positive integers:

SmN=∑k=1N(−1)k−1(Nk)∑r=1nrmkSmN−k(r).

This can be implemented iteratively with matrices, starting with the standard Faulhaber matrix. The m=1 case replicates Beardon's formula for S1N and confirms the above-stated results for m=2 and N=2 or 3. Results for higher powers include:

S24=154S5+518S7+59S9+427S11
S63=1588S8−142S10+1384S12−4798S14+1728S16+1928S18+349S20
S73=148S11−748S13+3564S15−2324S17+7796S19+1116S21+364S23.

Further generalization is possible by considering the arbitrary power-sum product P:=Sm1Sm2Sm3⋯Smr given positive integers m1,…,mr. For convenience define q:=∑k=1rmk, and let p0,…,pq+r be the Maclaurin coefficients of P — i.e. P(n)=∑k=0q+rpknk. It can be shown that

∏k=1rSmk=∑k=1q+r−1(1−(−1)q+r+k)pkSk.

In particular, the product S1r has trivially retrievable coefficients:

S1r(n)=(n(n+1)2)r=∑k=r2r12r(rk−r)nk.

Combining with the above gives

S1r=12r∑k=r2r−1(1−(−1)k)(rk−r)Sk

which is an indexical restatement of Beardon's formula. More generally,

Smr=∑k=1r(m+1)−1(1−(−1)r(m+1)+k)pkSk.

Compared to Derby's approach, this formula only requires knowledge of the coefficients of Smr.

Recurrence relation between sums of powers

Extending the Faulhaber's formula as a polynomial over the reals denoted by Sm(x), it satisfies the first-order recurrence relation

Sm′(x)=mSm−1(x)+Bm+.

The polynomial S'm is the derivative of Sm with respect to x, and the constants Bm+ are again the second Bernoulli numbers. This recurrence relation can be integrated to yield sums of higher powers:

Sm(x)=m∫0xSm−1(t)dt+Bm+x.

These results can be seen as corollaries to the integral recurrence of the Bernoulli polynomials. This recurrence relation is easy to remember as it is much akin to the derivatives of polynomials: (km)′=mkm−1 with an addition of the second Bernoulli numbers.

Calculated examples

The first four calculated examples are as shown below: since

S0(x)=x,

we have

S1(x)=∫0xtdt+B1+x=x22+x2

S2(x)=2∫0x(t22+t2)dt+B2+x=x33+x22+x6

S3(x)=3∫0x(t33+t22+t6)dt+B3+x=x44+x32+x24

S4(x)=4∫0x(t44+t32+t24)dt+B4+x=x55+x42+x33−x30.

In practice, when deriving Sm(x) from Sm−1(x), one can simply determine Bm+ by noting that Sm(1)=1.

Proof

We know that Sm(x) is a polynomial. Since it coincides with the power sum at integer values, its extension to the reals should satisfy

Sm(x)−Sm(x−1)=xm.

Similarly, we have

Sm−1(x)−Sm−1(x−1)=xm−1.

Note that the latter is a multiple of m away from the derivative of the former. Defining the residual Pm(x)=S'm(x)−mSm−1(x), we have

Pm(x)−Pm(x−1)=(S'm(x)−mSm−1(x))−(S'm(x−1)−mSm−1(x−1))=(S'm(x)−S'm(x−1))−m(Sm−1(x)−Sm−1(x−1))=mxm−1−mxm−1=0.

I.e., Pm is 1-periodic. By restricting the residual to be a polynomial, it must be a constant depending on m. Thus, the recurrence relation is obtained.

Variations

  • Replacing k with p−k, we find the alternative expression: ∑k=1nkp=∑k=0p1k+1(pk)Bp−knk+1.
  • Subtracting np from both sides of the original formula and incrementing n by 1, we get ∑k=1nkp=1p+1∑k=0p(p+1k)(−1)kBk(n+1)p−k+1=∑k=0p1k+1(pk)(−1)p−kBp−k(n+1)k+1,
where (−1)kBk=Bk− can be interpreted as "negative" Bernoulli numbers with B1−=−12.
  • We may also expand G(z,n) in terms of the Bernoulli polynomials to find G(z,n)=e(n+1)zez−1−ezez−1=∑j=0∞(Bj(n+1)−(−1)jBj)zj−1j!, which implies ∑k=1nkp=1p+1(Bp+1(n+1)−(−1)p+1Bp+1)=1p+1(Bp+1(n+1)−Bp+1(1)). Since Bn=0 whenever n>1 is odd, the factor (−1)p+1 may be removed when p>0.
  • It can also be expressed in terms of Stirling numbers of the second kind and falling factorials as[21] ∑k=0nkp=∑k=0p{pk}(n+1)k+1k+1, ∑k=1nkp=∑k=1p+1{p+1k}(n)kk. This is due to the definition of the Stirling numbers of the second kind as monomials in terms of falling factorials, and the behaviour of falling factorials under the indefinite sum.
Interpreting the Stirling numbers of the second kind, {p+1k}, as the number of set partitions of [p+1] into k parts, the identity has a direct combinatorial proof since both sides count the number of functions f:[p+1]→[n] 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 represents the number of elements in the image of f.

(n+1)k+1−1=∑m=1n((m+1)k+1−mk+1)=∑p=0k(k+1p)(1p+2p+…+np).

This in particular yields the examples below – e.g., take Template:Math to get the first example. In a similar fashion we also find

nk+1=∑m=1n(mk+1−(m−1)k+1)=∑p=0k(−1)k+p(k+1p)(1p+2p+…+np).

∑n=1∞nkxn=x(1−x)k+1Ak(x).
  • Faulhaber's formula was generalized by Guo and Zeng to a [[q-analog|Template:Mvar-analog]].[23]

Relationship to Riemann zeta function

Using Bk=−kζ(1−k), one can write ∑k=1nkp=np+1p+1−∑j=0p−1(pj)ζ(−j)np−j.

If we consider the generating function G(z,n) in the large n limit for ℜ(z)<0, then we find limn→∞G(z,n)=1e−z−1=∑j=0∞(−1)j−1Bjzj−1j! Heuristically, this suggests that ∑k=1∞kp=(−1)pBp+1p+1. This result agrees with the value of the Riemann zeta function ζ(s)=∑n=1∞1ns for negative integers s=−p<0 on appropriately analytically continuing ζ(s).

Faulhaber's formula can be written in terms of the Hurwitz zeta function:

∑k=1nkp=ζ(−p)−ζ(−p,n+1)

Umbral form

In the umbral calculus, one treats the Bernoulli numbers B0=1, B1=12, B2=16, ... as if the index j in Bj 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 ∑k=1nkp=1p+1((B+n)p+1−Bp+1). Here, the expression on the right must be understood by expanding out to get terms Bj that can then be interpreted as the Bernoulli numbers. Specifically, using the binomial theorem, we get 1p+1((B+n)p+1−Bp+1)=1p+1(∑k=0p+1(p+1k)Bknp+1−k−Bp+1)=1p+1∑k=0p(p+1j)Bknp+1−k.

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.[24]

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(bj)=Bj. Then one can say ∑k=1nkp=1p+1∑j=0p(p+1j)Bjnp+1−j=1p+1∑j=0p(p+1j)T(bj)np+1−j=1p+1T(∑j=0p(p+1j)bjnp+1−j)=T((b+n)p+1−bp+1p+1).

Notes

Template:Reflist

  1. ↑ With Bernoulli's first numbers, on the other hand, we have ∑k=0n−1kp=1p+1∑r=0p(p+1r)Br−np+1−r.
  2. ↑ 2.0 2.1 2.2 Template:Cite news
  3. ↑ Template:Cite journal 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. Template:Webarchive
  4. ↑ Template:Cite journal
  5. ↑ The first element of the vector of the sums is n and not ∑k=0n−1k0 because of the first addend, the indeterminate form 00, which should otherwise be assigned a value of 1
  6. ↑ Template:Cite book
  7. ↑ Template:Cite news
  8. ↑ Template:Cite news
  9. ↑ Template:Cite web
  10. ↑ Template:Cite arXiv
  11. ↑ Template:Cite journal
  12. ↑ 12.0 12.1 Template:Cite web
  13. ↑ Template:Cite journal
  14. ↑ Template:Citation.
  15. ↑ Template:Citation.
  16. ↑ Template:Citation
  17. ↑ Template:Cite journal
  18. ↑ Template:Cite journal
  19. ↑ Template:Cite journal
  20. ↑ Template:Cite journal
  21. ↑ Concrete Mathematics, 1st ed. (1989), p. 275.
  22. ↑ Template:Cite journal
  23. ↑ Template:Cite journal
  24. ↑ Template:Cite book