$$g_2(\epsilon^1 \phi_1+ \epsilon^2 \phi_2+ \epsilon^3 \phi_3+\cdots)^2+ g_3(\epsilon^1 \phi_1+ \epsilon^2 \phi_2+ \epsilon^3 \phi_3+\cdots)^3+g_4(\epsilon^1 \phi_1+ \epsilon^2 \phi_2+ \epsilon^3 \phi_3+\cdots)^4+\cdots$$
I want to expand the above equation in such way to get coefficients of $\epsilon^7$. How long I have to do? Is there any way to get quick solution?
Edit: I need the coefficients of $\epsilon^7$ from the above equation i mentioned. The dots (...) mean the equation goes on with increasing dummy index and power index.
