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.4-32

Exercise 1.2.4-32

proved in Lean solution written

RatingM18
MarkersM (mathematical)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory

The task

Show that a double sum over pairs c∣d∣nc \mid d \mid n can be rewritten with the inner index running over the divisors of n/cn/c.

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

Both sides add one term for each pair of divisors in a chain. Write down which pairs occur on each side.

Hint 2

Substitute d=cd′d = cd' on the left side.

Solution

Show the solution

The left side is the sum of f(c,d)f(c, d) over the set P={(c,d):c∣d and d∣n}.P = \{(c, d) : c \mid d \text{ and } d \mid n\}. The right side is the sum of f(c,cd′)f(c, cd') over the set Q={(c,d′):c∣n and d′∣(n/c)}.Q = \{(c, d') : c \mid n \text{ and } d' \mid (n/c)\}.

Map (c,d)∈P(c, d) \in P to (c,d/c)(c, d/c). Since c∣dc \mid d, the number d/cd/c is an integer. Since d∣nd \mid n, also c∣nc \mid n, and d/cd/c divides n/cn/c because n/c=(d/c)(n/d)n/c = (d/c)(n/d). So the image lies in QQ.

Map (c,d′)∈Q(c, d') \in Q to (c,cd′)(c, cd'). Here c∣cd′c \mid cd', and cd′∣c⋅(n/c)=ncd' \mid c \cdot (n/c) = n, so the image lies in PP.

The two maps undo each other. So they form a one-to-one correspondence between PP and QQ, and the term f(c,d)f(c, d) at (c,d)(c, d) equals the term f(c,cd′)f(c, c d') at (c,d′)(c, d'). Hence the two sums are equal. □\square

Check

For n=12n = 12 both sets have 18 elements. The count is ∑d∣12τ(d)=1+2+2+3+4+6=18\sum_{d \mid 12} \tau(d) = 1 + 2 + 2 + 3 + 4 + 6 = 18 on the left, and ∑c∣12τ(12/c)=6+4+3+2+2+1=18\sum_{c \mid 12} \tau(12/c) = 6 + 4 + 3 + 2 + 2 + 1 = 18 on the right. A computer run with the test function f(c,d)=(7c+d2) mod 11f(c, d) = (7c + d^2) \bmod 11 and n=36n = 36 gives the same value on both sides.

Remarks

The identity changes a sum over divisors of divisors into a sum over a product structure. With f(c,d)=h(c) k(d/c)f(c, d) = h(c)\,k(d/c) it gives ∑d∣n∑c∣dh(c)k(d/c)=∑c∣nh(c)∑e∣n/ck(e)\sum_{d \mid n}\sum_{c \mid d} h(c)k(d/c) = \sum_{c \mid n} h(c)\sum_{e \mid n/c} k(e), which is the associative law of Dirichlet convolution for the functions hh, kk and the constant 11.

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.