Let $C$ denote the circle $|z|=1$ oriented counterclockwise. Show that
i)$\int_Cz^ne^{\frac{1}{z}}dz=\frac{2\pi i}{(n+1)!}$ for $n=0,1,2$
ii)$\int_C e^{z+\frac{1}{z}}dz=2\pi i\sum_{n=0}^\infty\frac{1}{n!(n+1)!}$
I'm stuck in this exercise, because
$$\int_Cz^ne^{\frac{1}{z}}dz=2\pi i *Res_{z=0}z^ne^{\frac{1}{z}}$$ $$z^ne^{\frac{1}{z}}=z^n\sum_{n=0}^\infty \frac{z^{-n}}{n!}=\sum_{n=0}^\infty \frac{1}{n!}$$
Anyone can help me?
You made an error in the last line, where you wrote
$$z^n \sum_{n = 0}^\infty \frac{z^{-n}}{n!} = \sum_{n = 0}^\infty \frac{1}{n!}.$$
This equation does not even make sense since the summation index $n$ cannot appear outside the summation. What you should have is
$$z^n e^{1/z} = z^n \sum_{k = 0}^\infty \frac{z^{-k}}{k!} = \sum_{k = 0}^\infty \frac{z^{n-k}}{k!} = \sum_{k = -\infty}^n \frac{z^k}{(n-k)!}.$$
The residue of $z^n e^{1/z}$ at $z = 0$ is the coefficient of $z^{-1}$ in the above Laurent series expansion, which is $\frac{1}{(n+1)!}$. Therefore, $\int_C z^n e^{1/z}\, dz = 2\pi i \cdot\operatorname{Res}_{z = 0} z^n e^{1/z} = \frac{2\pi i}{(n+1)!}$.