Finding rational numbers within a specific range