This is from DJH Garling's book, Inequalities: A Journey into Linear Analysis
Suppose $\left\{a_i\right\}$ and $\left\{f_i\right\}$ are positive sequences such that:
$$\sum^\infty_{i=1}a_i=\infty$$
and $$f_i\rightarrow f>0$$
Show that as $N\rightarrow\infty$:
$$\left.\left(\sum^N_{i=1}f_ia_i\right)\middle/\left(\sum^N_{i=1}a_i\right)\right.\rightarrow f$$
The problem appears in the section on AM-GM, so I assume it should be used somewhere in the proof.
The approaches I've tried so far don't involve AM-GM:
Consider $$\left|\left(\sum^N_{i=1}f_ia_i\right)\middle/\left(\sum^N_{i=1}a_i\right)-f\right|=\left|\left(\sum^N_{i=1}f_ia_i\right)\middle/\left(\sum^N_{i=1}a_i\right)-f_i+f_i-f\right|$$ by triangle inequality and convergence of $f_n$ to $f$: $$\begin{align*} &\leq\left|\left(\sum^N_{i=1}f_ia_i\right)\middle/\left(\sum^N_{i=1}a_i\right)-f_i\right|+o(1)\\ &=\left|\sum^N_{i=1}f_i\left(\frac{a_i}{\sum^N_{i=1}a_i}-\frac{1}{N}\right)\right| + o(1) \end{align*}$$ which must be $o(1)$ since $f_n$ converges to a finite value.
Any help seeing where AM-GM could play a role would be much appreciated. I could also use some feedback on what I've tried so far.
I see a few problems with the proof: