If $1,a,a^2,...,a^{n-1}$ are the n$^\text{th}$ roots of unity, then prove that$$\sum_{i=1}^{n-1}\frac{1}{2-a^i}=\frac{(n-2)2^{n-1}+1}{2^n-1}$$
$$ \alpha_r=e^{i\tfrac{2\pi r}{n}}=a^{r-1}\\ x^n=1\implies x^n-1=(x-1)(x-a)(x-a^2)...(x-a^{n-1})=0 $$
$$ \sum_{i=1}^{n-1}\frac{1}{2-a^i}=\frac{1}{2-a}+\frac{1}{2-a^2}+\frac{1}{2-a^3}+....+\frac{1}{2-a^{n-1}}\\ = $$ Note: This is solved using derivative of logarithm in Problem based on sum of reciprocal of ℎ roots of unity which is good, but I am looking for more of a direct and easier way to find the solution.