Maths Olympiad Prep

Library / /509 of 520

Number theory Difficulty 7.5 National olympiad, round 2 Prove it

Example 2 Let NN be a positive integer, and φ(N)\varphi(N) be the number of positive integers in 1,2,,N1,2, \cdots, N that are coprime to NN, then
φ(N)=NpN(11p),\varphi(N)=N \prod_{p \mid N}\left(1-\frac{1}{p}\right),

where the meaning of the product symbol is given in Chapter 1, §5, Equation (18).

Solution

Let p1,p2,,pmp_{1}, p_{2}, \cdots, p_{m} be all the distinct prime divisors of NN. In Theorem 2, take the sequence AA to be 1,2,,N,K=p1pm1, 2, \cdots, N, K=p_{1} \cdots p_{m}. Thus, φ(N)\varphi(N) is the number of integers in AA that are coprime to KK, i.e., S(A;K)S(A ; K). Note that in this case we have (why)
[pi1,,pik]=pi1pikN,1i1<<ikm\left[p_{i_{1}}, \cdots, p_{i_{k}}\right]=p_{i_{1}} \cdots p_{i_{k}} \mid N, \quad 1 \leqslant i_{1}<\cdots<i_{k} \leqslant m

Therefore, Api1pik=N/(pi1pik)\left|A_{p_{i_{1}} \cdots p_{i_{k}}}\right|=N /\left(p_{i_{1}} \cdots p_{i_{k}}\right), and thus from equation (21) we derive
φ(N)=N1i1mNpi1+1i1<i2mNpi1pi2+(1)k1i1<<ikmNpi1pik++(1)mNp1pm=N(11p1)(11p2)(11pm)\begin{aligned} \varphi(N)= & N-\sum_{1 \leqslant i_{1} \leqslant m} \frac{N}{p_{i_{1}}}+\sum_{1 \leqslant i_{1}<i_{2} \leqslant m} \frac{N}{p_{i_{1}} p_{i_{2}}}-\cdots \\ & +(-1)^{k} \sum_{1 \leqslant i_{1}<\cdots<i_{k} \leqslant m} \frac{N}{p_{i_{1}} \cdots p_{i_{k}}}+\cdots+(-1)^{m} \frac{N}{p_{1} \cdots p_{m}} \\ = & N\left(1-\frac{1}{p_{1}}\right)\left(1-\frac{1}{p_{2}}\right) \cdots\left(1-\frac{1}{p_{m}}\right) \end{aligned}

This proves the desired conclusion. In Chapter 3, §3, φ(N)\varphi(N) has been discussed in detail, and this conclusion was proven using a different method.

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.