Here, robjohn simplifies $$\int_0^\infty\frac{x^n}{1+x^m}\mathrm{d}x =\frac1m\int_0^\infty\frac{x^{\frac{n-m+1}m}}{1+x}\mathrm{d}x$$ How do you go about this shuffling of powers into the numerator?
I've tried multiple factoring strategies such as factoring the bottom into $$x-e^{i\pi(2k+1)/3},\quad k=0,1,...,n-1$$ as well as attempting to simplify the end result back into the first, but to no avail.
A step by step demonstration would be really appreciated!