Convergence of a series to an integral Suppose we have a real function $f$ bounded continuous on $[0,1]$.
We know that 
$$ \frac 1 n \sum_{i=1}^n f(x_i) \to \int_0^1 f(x) \,dx$$
for $x_i \in [(i-1)/n, i/n]$, as $n\to \infty$.
Now suppose we have a sequence $f_n$ of bounded continuous functions on $[0,1]$ converging pointwise to $f$.
Is it true that
$$ \frac 1 n \sum_{i=1}^n f_n(x_i) \to \int_0^1 f(x) \,dx$$
 A: Consider the sequence of continuous functions $\{f_n\}_{n=1}^\infty$ defined on $[0,1]$ that arises by setting $f_1(x)=x$, and for $n=2,3,\ldots$
 \begin{align}f_n(x) :=
  \begin{cases}
                                n^2x , \;  \text{ if } x \in \left[0 , \,\frac{1}{n}\right],  \\
                                   2n - n^2x , \;  \text{ if } x \in \left[\frac{1}{n} , \,\frac{2}{n}\right], \\
    0, \; \text{ if } x \in \left[\frac{2}{n}, \,1\right].\end{cases} 
\end{align}
So for $n=1,2, \ldots$ we have $|f_n(x)| \leq n$, for all $x \in [0,1]$ (each function in the sequence is bounded on $[0,1]$). Moreover, $\lim\limits_{n\to \infty} f_n(x)=0$ and so the pointwise limit is the bounded and continuous function $f(x):=0$ $(x \in [0,1])$. For $n=1,2,...$ let $S_n := \big\{\frac{i}{n} \in [0,1] : i \in \mathbb{N}\big\}$ and for $i=1,\ldots,n$ we allow $x_i \in S_n$ to denote the number $\frac{i}{n}$. Then we have
\begin{equation}\frac{1}{n} \sum_{x_i \in S_n} f_n(x_i) = 1 \;\;\; (n=1,2,\ldots)
\end{equation}
but $\frac{1}{n} \underset{x_i \in S_n}{\sum} f(x_i)=0$ for all $n \in \mathbb{N}$ (notice that for $n=2,3,\ldots$ we have $f_n(x_{n-1})=n$ ). In other words, $ \lim\limits_{n \to \infty} \frac{1}{n} \overset{n}{\underset{i =1}\sum} f_n\left(\frac{i}{n}\right) = 1$ (limit of a constant sequence) but $ \int_0^1 f(x) \,dx=0$.
Since this is a counterexample, the statement is not true...
As a bonus:

A: Let $f_n(x) = n^2x^n(1-x).$ Then $f_n\to 0$ pointwise everywhere on $[0,1].$ But
$$\frac{1}{n}\sum_{i=1}^{n}f_n(i/n) > \frac{1}{n}f_n((n-1)/n) = \frac{1}{n}n^2(1-1/n)^n\frac{1}{n} \to \frac{1}{e} \ne \int_0^1 0\,dx.$$
