How to simplify a multiplication of several summations? The formula is $$-\sin(i)\sum_{n=0}^\infty (\frac{w}{2i})^n\sum_{n=0}^\infty (\frac{w}{i})^n\sum_{n=0}^\infty \frac{(-1)^n}{(2n)!} (w)^{2n-1}.$$
I only want to get the coefficient of the $w^{-1}$ term, and the coefficients of other terms are negligible, so it looks like this
$$-\sin(i)\sum_{n=0}^\infty (\frac{w}{2i})^n\sum_{n=0}^\infty (\frac{w}{i})^n\sum_{n=0}^\infty \frac{(-1)^n}{(2n)!} (w)^{2n-1} = -\sin(i)w^{-1}+ ...$$
I want to have this kind of expression because I'm finding the residue of a function $f$ at the point $i$, so I only need to know the coefficient of the $w^{-1}$ term.
I tried to use the small $o$ notation, but I don't know if I use it correctly.
$$-\sin(i)\sum_{n=0}^\infty (\frac{w}{2i})^n\sum_{n=0}^\infty (\frac{w}{i})^n\sum_{n=0}^\infty \frac{(-1)^n}{(2n)!} (w)^{2n-1} = -\sin(i)(1+o(1))(1+o(1))(w^-1+o(1)),$$
where $\Phi(w) = o(\Psi(w))$ means $lim_{w\to 0} \Phi(w)/\Psi(w) = 0$.

By the definition of Laurent series multiplication, the only terms that will contribute to $w^{-1}$ in the product are the lowest-indexed terms (said another way, the first coefficient in the product series is the product of the first coefficients.)
Those are $\left(\frac{w}{2i}\right)^0$, $\left(\frac{w}{i}\right)^0$, and $\frac{(-1)^0}{0!}$.  Their product is $1$, and with the additional term of $-\sin(i)$ on the outside, the coefficient for $w^{-1}$ must be $-\sin(i)$.
