PROBLEM
Let the natural numbers $a,b,p$ be non-zero, and $p$ be an odd prime number, so that the relation $\frac{a}{b}=1+\frac{1}{2}+... +\frac{1}{p-2}$. Show that $a-b$ is divisible by $p$.
WHAT I THOUGHT OF
I think that the formula $\frac{y-x}{x*y}=\frac{1}{x}+\frac{1}{x}$ as we can rewrite the second part to fit. I don't know what else to do or how to start solving it! Hope one of you can help me!
Interpret everything modulo $p$. First of all, we have $$ 1^{-1} + 2^{-1} + \ldots + (p-1)^{-1} = 1 + 2 + \ldots + (p-1) = \frac{p-1}{2} \cdot p \equiv 0 \mod p. $$ Because $(p-1)^{-1} = -1$, it follows that $$ 1^{-1} + 2^{-1} + \ldots + (p-2)^{-1} \equiv 1 \mod p, $$ and we obtain $a \equiv b \mod p$.