According to WolframAlpha, the solution to the indefinite integral $\int{\frac{x^n-1}{x-1}}dx$, where n is some constant is
-$\frac{x^{n+1}{_2F_1}(1,n+1;n+2;x)}{n+1}-\log(1-x)+C$, where $\log$ denotes the natural logarithm and ${_2F_1}$ is the Gauss' hypergeometric function. I am still new to hypergeometric functions and that has just lost me completely; I have no idea how they arrived at this solution. Please if anyone could kindly explain to me how they came by this solution, I would be highly indebted to them. Please help. Thank you in advance.