What is the value of $$\sum _{k=1}^n\frac{x_k}{x_k-1}$$ given that $x_1,x_2,\dots,x_n $ are the roots of the equation $x^n-3x^{n-1}+2x+1=0\,$?
I wrote it as $ n+\sum _{k=1}^n\frac{1}{x_k-1}$ but didn't really help much.
I think Vieta's formulas come in handy here, but I didn't get to the part where I could actually use any.
Could I have some hints on how to get this done?
Thank you. The answer is $S=3n-5$.