Good job! I spent hours trying to solve this in wolfram only to get paid promotions slammed in my face, and a random guest is able to solve my answer clearer than it, appreciated for clearing my problem up :D
(You can use my method for writing math expressions if you prefer:)
1.Write the formula you want to put in this forum somewhere.
2.Copy/Paste it into Desmos on the left
Site link: https://www.desmos.com/calculator
In which it will turn the formula you entered into LaTeX (A kind of system to write math expressions.)
3.Choose the Sigma symbol (LaTeX) option on the tool bar above.
4.Copy/Paste your formula from Desmos into the LaTeX interface.
5.Press OK.
5.Done!
(See you having a hard time dealing with brackets and spacings :) )