Could you give a hint how to prove this?
if $n>5$ is prime, prove $(n-1)|(n-2)!$
Could you give a hint how to prove this?
if $n>5$ is prime, prove $(n-1)|(n-2)!$
If $n$ is prime, then $n-1$ is composite unless $n=2 \text{ or } 3$. So the following line of argument begins by assuming $n>3$.
If $n>3$, then $n-1$ is composite, and it can be factored into two smaller integers, $(n-1)=ab$, each of which is smaller than $n-2$. This is true because an integer multiple of any positive integer $>1$ cannot equal the next larger integer (i.e. $k(n-2)\ne n-1$), so neither of $a,b$ can be as large as $(n-2)$.
If $n-1$ can be factored such that $a\ne b$, since $a,b<n-2$, they will each appear as separate terms in the product $(n-2)!$, and we are done. $a\mid (n-2)!$ and $b\mid (n-2)!$, so $ab\mid (n-2)!$, meaning $(n-1)\mid (n-2)!$. For odd primes, $n-1$ is even and can be always factored as $2$ times another number different from $2$, except when $n=5$. So far, the argument has been made assuming $n>3$, but now we must consider $5$ as a special case.
For $n=5$, where $n-1=4=2\times 2$ and $n-2=3$, the terms $1,2,3$ of $(n-2)!$ contain a factor of $2$ only once. In fact, $4\not \mid 3!=6$, so the proof fails for the case $n=5$, and we must require $n>5$ for it to be valid.
I hope that this not only shows that the proposition is true, but also explains why it must be conditioned on $n>5$
For $n > 5$ is prime, let $n-1 = ab$ where $1<a<b \leq \sqrt{n-1} \leq n-2$ if $n-1$ is not a perfect square and $n > 5$.
Since $a,b$ are distinct, $a,b \in \{1,2,...,n-3,n-2\}$ and are represented by two different elements so that $ab = n-1 \mid (n-2)!$.
If $n-1 = ab = x^2$ with $a,b = x$ then $a,b \in \{1,2,...,x,...,2x,...,x^2-2,x^2-1\}$ and so both $x$'s occur in the expansion of $(n-2)!$ and $n-1 \mid (n-2)!$ as $n > 5 \implies n-1 = x^2 > 4 \implies x > 2 \implies x^2 > 2x \implies x^2-1\geq 2x$.