I encountered some other problem and I found a beautiful proof here Write $1/1 + 1/2 + ...1/ (p-1)=a/b$ with $(a,b)=1$. Show that $p^2 \mid a$ if $p\geq 5$. (see Thomas Andrew's post)
But I thought he may miss the proof that $(a_1,(p-1)!)=1,$ which is not trivial for me. (As for the definitions of $a_1$ and $p$ please see the link above. The definitions are simple and clear there.)
My problem is just that how to prove $(a_1,(p-1)!)=1$.
I tried to use the property that $(n,m)=(n.n+km)$ for any integers $n,m,k.$ But it turns out it makes the expression messy and dirty. And I can't go further.
Any help will be thanked.
It is not neceassary to have $\text{gcd}(a_1,(p-1)!)= 1$. From Vieta's formula, in $f(x)$, coeff. of $x$ is sum of all products of $(p-2)$ roots of $f(x)$ choosen at a time. $$a_1=2\cdot3\cdots(p-1)+1\cdot 3\cdot \cdots(p-1)+\cdots +1\cdot 2\cdots (p-2)\\ =(p-1)!\big(1+\frac{1}{2}+\frac13+\cdots + \frac1{p-1}\big) $$
hence, the required sum is equal to $$\frac{a_1}{(p-1)!}$$ If some common factors between $a_1$ and $(p-1)!$ cancels out, then also $p^2|a_1$, as all terms of $a_1$ contains products of numbers below $p$.