For any $n$ and any $x$, if one implements a loop to calculate:
$$\sum_{i=0}^n x^i$$
What is time complexity of said loop if we assume $x^i$ to have time complexity of $O(i)$?
What confuses me is the fact that in each iteration, $i$ will have a different value.