I'd like to get some help in solving this floor function as the rest of the internet doesn't seem to be very helpful.
$$\int_{1/4}^{1/\pi}\left\lfloor\frac{2}{x}\right\rfloor \text{dx}$$
What really stumped me, is the floor function. I can't wrap my head around that and need help explaining why it works. I have seen a couple of videos dealing with functions that aren't in the denominator, but this confuses me.
For $x\in\left(\frac 14,\frac 27\right)$, $\left\lfloor\frac 2x\right\rfloor=7$. For $x\in\left(\frac 27,\frac 2{2\pi}\right)$, $\left\lfloor\frac 2x\right\rfloor=6$. If you can visualize this, then I think you can find the answer :)