Motivated by this question:
Integration of $\displaystyle \int\frac{1}{1+x^8}\,dx$
I got curious about finding a general expression for the integral $\int \frac{1}{1+x^n},\,n \geq 1$. By factoring $1+x^n$, we can get an answer for any given $n$ (in terms of logarithms, arctangents, etc), but I was wondering whether a general one-two-liner formula in terms of elementary functions is known/available (WolframAlpha trials for specific $n$ show some structure.).