the first p-1 positive multiples of a:
a, 2a, 3a, ... (p -1)a
Suppose that ma and na are the same modulo p, then we have m ≡ n (mod p), so the p-1 multiples of a above are distinct and nonzero; that is, they must be congruent to 1, 2, 3, ..., p-1 in some order.
Multiplying all these congruences together we find
a.2a.3a.....(p-1)a ≡ 1.2.3.....(p-1) (mod p)
i.e ap-1(p-1)! = (p-1)! (mod p).
Divide both side by (p-1)! to get the result to be proved