taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.11.2-4

Exercise 1.2.11.2-4

not stated yet in Lean solution written

RatingHM20
MarkersHM (needs higher mathematics)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.11.2 of Volume 1. Companion chapter: Euler's summation formula

The task

Express Sm(n)=∑0≤k<nkmS_m(n)=\sum_{0\le k<n}k^m with Bernoulli polynomials.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

Find the difference Bm+1(x+1)−Bm+1(x)B_{m+1}(x+1)-B_{m+1}(x) from the generating function of Bm(x)B_m(x).

Hint 2

Sum the difference over x=0,1,…,n−1x=0,1,\ldots,n-1.

Solution

Show the solution

From (8), ∑mBm(x)zmm!=(∑kBkzkk!)(∑jxjzjj!)=zexzez−1\sum_mB_m(x)\frac{z^m}{m!}=\Bigl(\sum_kB_k\frac{z^k}{k!}\Bigr)\Bigl(\sum_j\frac{x^jz^j}{j!}\Bigr)=\frac{ze^{xz}}{e^z-1}. Then ∑m(Bm(x+1)−Bm(x))zmm!=zexz(ez−1)ez−1=zexz=∑mxmzm+1m!\sum_m\bigl(B_m(x+1)-B_m(x)\bigr)\frac{z^m}{m!}=\frac{ze^{xz}(e^z-1)}{e^z-1}=ze^{xz}=\sum_m\frac{x^mz^{m+1}}{m!}. The coefficient of zm+1/(m+1)!z^{m+1}/(m+1)! gives Bm+1(x+1)−Bm+1(x)=(m+1)xmB_{m+1}(x+1)-B_{m+1}(x)=(m+1)x^m. Sum over x=0,1,…,n−1x=0,1,\ldots,n-1; the left side telescopes:

Sm(n)=Bm+1(n)−Bm+1(0)m+1=1m+1(Bm+1(n)−Bm+1)=1m+1∑k=0m(m+1k)Bknm+1−k.S_m(n)=\frac{B_{m+1}(n)-B_{m+1}(0)}{m+1}=\frac1{m+1}\bigl(B_{m+1}(n)-B_{m+1}\bigr)=\frac1{m+1}\sum_{k=0}^{m}\binom{m+1}kB_kn^{m+1-k}.

(For m=0m=0 read 00=10^0=1, so that S0(n)=nS_0(n)=n.)

Check

For m=3m=3, n=10n=10: B4(x)=x4−2x3+x2−130B_4(x)=x^4-2x^3+x^2-\frac1{30}, so 14(B4(10)−B4(0))=14(10000−2000+100)=2025=13+⋯+93\frac14(B_4(10)-B_4(0))=\frac14(10000-2000+100)=2025=1^3+\cdots+9^3. For m=2m=2, n=5n=5 the sum is 3030 and the formula gives 3030.

Remarks

Euler's formula (10) with f=xmf=x^m gives the same result, since the remainder is zero when m+1m+1 derivatives vanish. This route uses only the generating function. The case m=1m=1 gives (n2)\binom n2.

This solution is drafted, and a person has not reviewed it yet. The source.

In Lean

not stated yet The exercise is not stated in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.