Problem

Source: USA TST 2000, Problem 1

Tags: inequalities, number theory, fractional part



Let $p$ be a prime number. For integers $r, s$ such that $rs(r^2 - s^2)$ is not divisible by $p$, let $f(r, s)$ denote the number of integers $n \in \{1, 2, \ldots, p - 1\}$ such that $\{rn/p\}$ and $\{sn/p\}$ are either both less than $1/2$ or both greater than $1/2$. Prove that there exists $N > 0$ such that for $p \geq N$ and all $r, s$, \[ \left\lceil \frac{p-1}{3} \right\rceil \le f(r, s) \le \left\lfloor \frac{2(p-1)}{3} \right\rfloor. \]