Find the value of $n$ in this equation :$$n-1 + \frac{(n-1)}{4}\sum_{i=3}^n \csc\left(\frac{(i-2)\pi}{n-1}\right) \lt \frac{n}{4}\sum_{i=2}^n \csc\left(\frac{(i-1)\pi}{n}\right)$$
My try : I made $f(n) =n-1 + \frac{(n-1)}{4}\sum_{i=3}^n \csc\left(\frac{(i-2)\pi}{n-1}\right) - \frac{n}{4}\sum_{i=2}^n \csc\left(\frac{(i-1)\pi}{n}\right)$ and tried to solve $f(n)\lt 0$ but didn't get any result.
Note: I used Mathematica for solving it and $n=12$ is the first number that satisfies. Also I plotted it but still there is no way to solve it by hand and get the $12$.