Simplify $\sum_{m=1}^{6} \frac{1}{(\sin k)(\sin k - \cos k)}$ where $k = \theta + \frac{m \pi}{4}$ Good Day, I was trying to solve the below problem:

Simplify $$\sum_{m=1}^{6} \frac{1}{(\sin k)(\sin k - \cos k)}$$ where $k = \theta + \frac{m \pi}{4} \text{and } 0 < \theta < \frac{\pi}{2}.
$

I was thinking of decomposing the fraction somehow and getting a telescoping sum or something, but was unable to do so. I am absolutely clueless and there is nothing that I know that simplifies or progresses on the problem. The only thing that I think works is $$\frac{1}{(\sin k)(\sin k - \cos k)} = \frac{1}{\sin^2k-\sin k \cos k} = \frac{2}{1 - \cos 2k-\sin2k}$$ but again I've no idea how to proceed.
Any help would be appreciated. Thanks.

$\displaystyle\sum_{m=1}^{6} \frac{1}{(\sin k)(\sin k - \cos k)}$
$\displaystyle\implies\frac{1}{\sqrt2}\sum_{m=1}^{6} \frac{1}{(\sin k)(\sin (k -\frac{\pi}{4})}$
$\displaystyle\implies\sum_{m=1}^{6} \frac{\sin\frac{\pi}{4}}{\sin k\sin (k -\frac{\pi}{4})}$
$\displaystyle\implies\sum_{m=1}^{6} \frac{\sin\bigg(k-(k-\frac{\pi}{4})\bigg)}{(\sin k)(\sin (k -\frac{\pi}{4})}$
$\displaystyle\implies\sum_{m=1}^{6} \frac{\sin\bigg(A-B\bigg)}{(\sin A)(\sin B)}$
$\displaystyle\implies\displaystyle\sum_{m=1}^{6}(\cot B-\cot A)$
$\displaystyle\implies\sum_{m=1}^{6}(\cot(k -\frac{\pi}{4}) -\cot k)$
$\displaystyle\implies\sum_{m=1}^{6}\bigg(\cot(\theta+(m-1)\frac{\pi}{4}) -\cot (\theta +m\frac{\pi}{4})\bigg)$
$\displaystyle\implies\sum_{m=1}^{6}g(m-1)-g(m)$ where $g(m)=\cot (\theta+\frac{m\pi}{4})$
Now it can be telescoped to $g(0)-g(6)$
