I was attempting a problem about the expansion of n! using sine function.
The photograph contains the exact statement of the problem and my attempted solution.
I am looking for the completion of my attempt or a different solution to the problem.
The problem is:
$$u! = 2^{u(u-1)/2}\prod_{m=2}^u\prod_{k=1}^{m-1}\sin\left(\frac{k\pi}m\right)$$
We can write $$\sin\frac{k\pi}{m}=\frac{e^{k\pi i/m}-e^{-k\pi i/m}}{2i} =-\frac{e^{-k\pi i/m}}{2i}(z-e^{2k\pi i/m})\quad\hbox{with}\quad z=1\ .$$ If we multiply all these terms for $k$ from $1$ to $m-1$, the exponentials become $$e^{-(1+2+\cdots+(m-1))\pi i/m}=e^{-(m-1)\pi i/2}=(-i)^{m-1}$$ and the terms with $z$s become $$\frac{z^m-1}{z-1}\ .$$ To check the last statement note that the numerator is the product of all factors $z-e^{2k\pi i/m}$ with $k$ from $0$ to $m-1$, and the denominator then cancels out the term with $k=0$. Putting all this together we get $$\prod_{k=1}^{m-1}\sin\frac{k\pi}{m} =\frac{1}{2^{m-1}}\lim_{z\to1}\frac{z^m-1}{z-1} =\frac{m}{2^{m-1}}$$ by L'Hopital's Rule. Therefore $$\prod_{m=2}^u\prod_{k=1}^{m-1}\sin\frac{k\pi}{m} =\frac22\times\frac34\times\cdots\times\frac{u}{2^{u-1}} =\frac{u!}{2^{1+2+\cdots+(u-1)}} =\frac{u!}{2^{u(u-1)/2}}\ .$$