I have to solve this limit using definite integral
$${\lim_{n\to \infty} \frac{1}{n} \cdot \sum_{i=1}^n \frac{1}{1+(\frac{i}{n})^i}}$$
Well, my development was:
I tried to give the Riemann integral definition form, using a regular partition such that:
$$\int_a^bf(x)dx=\lim_{n\to\infty}\frac{b-a}{n}\cdot\sum_{i=1}f\left(a+i\frac{b-a}{n}\right)$$
So, i set $b=1, a=0$ for simplicity, then we have $f(\frac{i}{n})$ must be equal to ${\frac{1}{1+(\frac{i}{n})^i}}$.
Let ${x=\frac{i}{n}}$, then $${f(x)=\frac{1}{1+x^{nx}}}$$
The problem is that $n$ is a dummy variable that does not make sense outside the limit, that is, it does not make sense for the function $f$
So, I need to do some kind of algebraic transformation or variable change for $n$, in such a way that the function $f$ remains only in terms of $x$ and thus I can use it in the definite integral. However, I have not been able to find such a magical algebraic transformation or variable change for $n$.