Let $N_m(x)$ denote the number of positive integers not exceeding $x$ that are relatively prime to $m$ , then how to prove that $\lim_{x \to \infty} \dfrac{N_m(x)}x=\dfrac{\phi (m)}m$ , where $\phi(.)$ is the Euler's phi function ?
2026-03-27 14:10:39.1774620639
On
The probability that a random integer is prime to a given integer $m$ is $\frac{\phi(m)}m$?
122 Views Asked by user123733 https://math.techqa.club/user/user123733/detail At
3
There are 3 best solutions below
2
On
This question can be answered rigorously using the Wiener-Ikehara Theorem. Suppose the prime factorization of $m$ is $$m = \prod_p p^v.$$ Suppose we set $$\Lambda(s) = \sum_{\gcd(n,m)=1} \frac{1}{n^s}.$$
By inspection we get the following Euler product for $\Lambda(s)$: $$\Lambda(s) = \zeta(s) \prod_p \left(1-\frac{1}{p^s}\right).$$
Then by the Wiener-Ikehara theorem we have that $$\sum_{n\le x, \; \gcd(m,n)=1} 1 \sim \prod_p \left(1-\frac{1}{p}\right) \times x.$$
It follows that $$\frac{1}{x} \sum_{n\le x, \; \gcd(m,n)=1} 1 \sim \prod_p \left(1-\frac{1}{p}\right) = \frac{\varphi(m)}{m}.$$
Remark. The variable $p$ in the above ranges over the prime factors of $m$ (as opposed to all primes).
Some hints
and don't forget that :$K=\left \lfloor\frac{x}{m}\right\rfloor$ and $\lim_{x\to \infty} \frac{K}{x}=\frac{1}{m}$