Let $ab=1$. Find
$$\begin{vmatrix} c & a & a^2 & ... & a^{n-1} \\ b & c & a & \dots & a^{n-2} \\ b^2 & b & c& \dots &a^{n-3} \\ \vdots & \vdots & \vdots & \ddots & \vdots\\ b^{n-1} & b^{n-2} & b^{n-3} & \dots & c \end{vmatrix}$$
I tried to decompose by line however it does not lead to a solution
Hint. Consistently subtract from each previous row the next one multiplied by $a$, and then add to each subsequent column the previous one multiplied by $a$. The result will be a triangular matrix.