Number of multiples of a prime in a given half-open interval

288 views
0
Let $a,b\in\mathbb{R}$ with $a<b$, and let $p$ be a prime. How many multiples of $p$ are there in the interval $(a,b]$?
Is it $\left\lceil \frac{b-a}{p}\right\rceil$?