It is well known that $$\displaystyle \lim_{n \to+\infty }\sum_{k=1}^{n}\frac{k^{n}}{n^{n}}=\frac{e}{e-1}.$$
But if you try to verify this by considering its "continuous" counterpart which is
$$\displaystyle \lim_{x \to+\infty }\int_{1}^{x}\frac{y^{x}}{x^{x}}dy$$you see that the result is equal to $1$. Why do we get a different result in this case? Can you find an explanation? Any help will be highly appreciated!!