Maths Olympiad Prep

Library / /20 of 23

Number theory Difficulty 5.6 AIME, harder Prove it United States

Problem:

For all positive integers nn, prove that
k=1nϕ(k)nk=n(n+1)2 \sum_{k=1}^{n} \phi(k)\left\lfloor\frac{n}{k}\right\rfloor=\frac{n(n+1)}{2}
(For a positive integer nn, ϕ(n)\phi(n) denotes the number of positive integers less than or equal to nn and relatively prime to nn. For a real number xx, x\lfloor x\rfloor denotes the greatest integer less than or equal to xx.)

Solution

Solution:

Consider the fractions a/ba / b, where aa and bb range over integers such that 1abn1 \leq a \leq b \leq n. We will count these fractions in two ways:

a. By unreduced form. For each denominator bb, there are bb possible numerators a=1,2,,ba=1,2, \ldots, b, so the total number of fractions is
1+2++n=n(n+1)2 1+2+\cdots+n=\frac{n(n+1)}{2}

b. By reduced form. Suppose a fraction a/ba / b has been reduced to c/dc / d. Given the denominator dd, there are ϕ(d)\phi(d) possible numerators cc such that cdc \leq d and c/dc / d is in lowest terms. To get from c/dc / d back to a/ba / b, we must multiply numerator and denominator by a positive integer kk such that kckdnk c \leq k d \leq n. Since kckdk c \leq k d always holds if cdc \leq d, the choice of kk is limited only by the inequality kdnk d \leq n, which has n/d\lfloor n / d\rfloor solutions. Thus there are ϕ(d)n/d\phi(d)\lfloor n / d\rfloor fractions a/ba / b for a given choice of dd, so the total number of fractions is
d=1nϕ(d)nd \sum_{d=1}^{n} \phi(d)\left\lfloor\frac{n}{d}\right\rfloor
Since both methods of counting must yield the same answer, the identity follows.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.