I came across a question in my High School Calculus textbook:
Find $\lim_{n \to \infty} a_n$ where $a_n = \frac{1}{n^2} + \frac{2}{n^2} + \frac{3}{n^2} + ... + \frac{n}{n^2}$
My approach was to simply distribute the limit to each term in the partial sum. I believed this would be legitimate according to the limit laws. Once I evaluated the individual limits, the limit of the partial sum came out to equal $0$:
$$\begin{aligned} \lim_{n \to \infty} a_n &= \lim_{n \to \infty}(\frac{1}{n^2} + \frac{2}{n^2} + \frac{3}{n^2} + ... + \frac{n}{n^2}) \\ &= \lim_{n \to \infty}(\frac{1}{n^2}) + \lim_{n \to \infty}(\frac{2}{n^2}) + \lim_{n \to \infty}(\frac{3}{n^2}) + ... + \lim_{n \to \infty}(\frac{n}{n^2}) \\ &= 0+0+0+...+0 \\ &=0 \end{aligned}$$
However, the textbook first combined the fractions and simplified it, only to find that the limit of the partial sum equals $1/2$:
$$\begin{aligned} a_n &= \frac{1+2+3+...+n}{n^2} \\ &= \frac{\frac{n(n+1)}{2}}{n^2} \\ &= \frac{1}{2}(\frac{n+1}{n}) \\ &= \frac{1}{2}(1+\frac{1}{n}) \end{aligned}$$
$$\therefore \lim_{n \to \infty}a_n = \frac{1}{2}$$
Both solutions seemed to be legitimate. However, after pondering on the question for a bit, I starting to think that maybe the limit laws don't apply to partial sums... As $n\rightarrow\infty$, the number of terms also approaches infinity, so then distributing the limit an "infinite" number of times might be wrong, considering how weird infinity is. But I'm not so convinced about that.
Is there some sort of restriction on how the limit can be distributed? Is there something I'm missing that completely invalidates my approach to the problem?