I was trying to understand the proof of the following formula:
$$ \varphi(n)= n\prod_{\substack{p \text{ prime }\ p \vert n}} \left( 1- \frac{1}{p}\right) $$
Using inclusion-exclusion.
What we want is the number of positive elements $\le$ that are coprime to $n$, Suppose $n=\prod_{i=1}^{k}p_{i}^{e_{i}}$ is the unique prime factsization of $n$ and let let $A_i$ be the set of such positive integers that $i$ prime number does not divide them with $1\le i\le k$ and the primes are all a factor of $n$,then we want $$\bigcap_{i=1}^{k} \left|A_{i}\right|$$
But here we need to know the number of positive integers $\le n$ which are a multiple of $p$,this is given by $$\lfloor \frac{n}{p} \rfloor$$ Where $\lfloor \rfloor$ denoted the floor function.
But how one can show that?
It's assumed to be obvious and self explanitory.
The multiples of $p \le n$ are $1p, 2p, 3p, ....., kp\le n$ for some $k$. That means that there $k$ such multiples and $kp \le n < (k+1)p$. So $k \le \frac pn < k+1$.
So $k = \lfloor \frac np \rfloor$.