It is well known that for any sequence $\{x_n\}$ of real or complex numbers which converges to a limit $x$, the sequence of averages of the first $n$ terms is also convergent to $x$. That is, the sequence $\{a_n\}$ defined by
$$a_n = \frac{x_1+x_2+\ldots + x_n}{n}$$
converges to $x$. How "severe" of a weighting function $w(n)$ can we create that the sequence of weighted averages $\{b_n\}$ defined by
$$b_n = \frac{w(1)x_1 + w(2)x_2 + \ldots + w(n)x_n}{w(1)+w(2)+\ldots+w(n)} $$
is convergent to $x$? Is it possible to choose $w(n)$ such that $\{b_n\}$ is divergent?