This question is directly related to a previous question I asked:
Question from *Spivak Calculus*, Ch.22 - #9 i) - relationship between sequences and integration.
My problem is I can't seem to work out how to get the correct partition for the following upper sum which I'm equating to a sequence.
The original expression we are asked to evaluate is:
$$\lim_{n \to \infty}\frac{\sqrt[n]{e} + \sqrt[n]{e^{2}} + \dots + \sqrt[n]{e^{2n}}}{n}$$
EDIT: This is the question directly from the textbook (here I am asking about part (ii):
A formula that can be deduced for this is:
$$a_{n} = \frac{1}{n}\sum_{i = 1}^{n}(e^{\frac{i}{n}})^{2}$$
The problem I'm having is figuring out the correct way to express the partition. For the original question I found the formula to be:
$$a_{n} = \frac{\sum_{i = 1}^{n}e^{\frac{i}{n}}}{n}$$
From which we can determine a partition to be of length $\frac{1}{n}$ over the interval $[0,1]$ (I think my original issue is I'm not even sure how this interval was determined to be the "right" one). But with this idea we arrive at:
$$\int_{x=0}^1 e^x \, dx = \lim_{n \to \infty} \frac{1}{n} \sum_{i=1}^n e^{i/n}.$$
I know for this question the interval is supposed to be $[0,2]$, but I haven't been able to formally work it out. From the expression I have above what I was expecting to arrive at was something of the form:
$$a_{n} = \frac{2}{n}\sum_{i = 1}^{n}(e^{\frac{i}{n}})^{2}$$
From which the interval would could be instantly seen. But that didn't occur for me. What is it that I'm missing in being able to work out the correct intervals?

Recall that for a partition $x_k:=a+\frac{b-a}{N}k$, $k=0,\ldots,M$ , of an interval $[a,b]$ and a function $f$, $$ \frac{b-a}{N}\sum^N_{k=1}f(x_k)=h\sum^N_{k=1}f\big(a+kh), \qquad h=\frac{b-a}{N} $$ is a Riemann approximation to $\int^b_a f(x)\,dx$
For (ii), $\frac{1}{n}\sum^{2n}_{j=1}e^{i/n}$ can be seen as a Riemann sum for the integral $\int^2_0e^{x}\,dx$.