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-18

Exercise 1.2.3-18

not stated yet in Lean solution written

RatingM20
MarkersM (mathematical)
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

For the relations R(i)=R(i) = "nn is a multiple of ii" and S(i,j)=S(i, j) = "1≤j<i1 \le j < i", write the interchanged sum of Eq. (9): find the relations S′(j)S'(j) and R′(i,j)R'(i, j).

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

Use the recipe of Eq. (9): S′(j)S'(j) says that some ii has both R(i)R(i) and S(i,j)S(i,j), and R′(i,j)R'(i,j) says that both hold.

Hint 2

Take nn a positive integer. Which jj lie below some divisor of nn? Use the largest divisor, nn itself.

Solution

Show the solution

Let n≥1n \ge 1 be an integer. The relation R′(i,j)R'(i, j) is "R(i)R(i) and S(i,j)S(i,j)", that is, "ii divides nn and 1≤j<i1 \le j < i", or in short "ii divides nn and i>j≥1i > j \ge 1".

The relation S′(j)S'(j) says that there is an integer ii that divides nn and has 1≤j<i1 \le j < i. Such an ii satisfies i≤ni \le n, since a divisor of a positive integer is at most the integer. So j<i≤nj < i \le n, and then 1≤j<n1 \le j < n. Conversely, if 1≤j<n1 \le j < n, then i=ni = n divides nn and j<nj < n. So S′(j)S'(j) is "1≤j<n1 \le j < n".

Eq. (9) gives ∑i∣n∑1≤j<iaij=∑1≤j<n∑i∣ni>jaij.\sum_{i \mid n} \sum_{1 \le j < i} a_{ij} = \sum_{1 \le j < n} \sum_{\substack{i \mid n \\ i > j}} a_{ij}.

Check

Let n=12n = 12 and aij=ija_{ij} = ij. The divisors of 1212 are 1,2,3,4,6,121, 2, 3, 4, 6, 12. The left side adds i⋅(1+⋯+(i−1))=i⋅i(i−1)/2i \cdot (1 + \cdots + (i-1)) = i \cdot i(i-1)/2 over these ii: 0+2+9+24+90+792=9170 + 2 + 9 + 24 + 90 + 792 = 917. The right side adds, for each j=1,…,11j = 1, \ldots, 11, jj times the sum of the divisors of 1212 larger than jj. This also gives 917917 (computed with python3).

Remarks

Without the condition that nn be positive the relation S′S' changes: for n=0n = 0 the number nn is a multiple of every integer ii, and S′(j)S'(j) becomes "j≥1j \ge 1". The simplest case of Eq. (9) is Exercise 1.2.3-4.

This solution is checked, 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.