Problem

Source: St Petersburg 2022 11.6

Tags: algebra



Find all pairs of nonzero rational numbers $x, y$, such that every positive rational number can be written as $\frac{\{rx\}} {\{ry\}}$ for some positive rational $r$.