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.3-2

Exercise 1.2.3-2

proved in Lean solution written

Rating01
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.3 of Volume 1. Companion chapter: Sums and products

The task

Say which terms the sum over all integers jj with 1≤j≤n1 \le j \le n has when n=3.14n = 3.14.

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

The index jj is an integer. Only the relation under the sign decides which values of jj occur, so nn need not be an integer.

Solution

Show the solution

The integers jj with 1≤j≤3.141 \le j \le 3.14 are 11, 22 and 33. The integer 44 is too large. So ∑1≤j≤3.14aj=a1+a2+a3.\sum_{1 \le j \le 3.14} a_j = a_1 + a_2 + a_3.

Check

The sum with the limits ∑j=13aj\sum_{j=1}^{3} a_j has the same three terms. For aj=j2a_j = j^2 both give 1+4+9=141 + 4 + 9 = 14.

Remarks

The sum with a relation under the sign is defined by the set of the integers that satisfy it. This is why the form ∑1≤j≤n\sum_{1 \le j \le n} is more general than ∑j=1n\sum_{j=1}^n. See Exercise 1.2.3-3 for a case where the set of values matters in a subtler way.

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

In Lean

proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.

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

Something is wrong? Report it.