I have an equation in eqnarray environment. The equation has a sum notation with subscript and superscript. The problem is that the subscript and superscript appear on sideways of the sum notation which looks pretty ugly. I came to know about \displaystyle but it can be used only with inline equation.
How can I use such a command with the equation or eqnarray environment.

