In this link, I am not getting why is $A_n$ is finite? Prove that function is continuous in all irrational points
Why is the number of such positive integers at most $[\frac {1} {\epsilon}]$ , the integral part of ${1\over\epsilon}$? And why is the set of all those rationals numbers $\frac pq \in (0,1)$ with $\frac 1q \geq \epsilon $ is $ \{\frac pq : 1\le q \lt [\frac 1\epsilon] ,1 \le p \lt q\}$? And most important of all they call this (or denote this) set afterwards by , $\{r_k= {{p_k}\over{q_k}} : 1 \le k \le N\}$.
I got the idea of the proof, but not getting the actual proof; why are all these happening?