Explain in python programming

(x^n-1)/(x-1) = x^(n-1)+x^(n-2)+...+x+1