Is there some kind of formula/shortcut for solving something like this? I could write it all out, but seems unpractical.
What I'm currently using:
[ 50(50+1)/2 - ( i - 1)(i -1 +1)/2 ] * i
Just fill out that 50 times .
I made a program to solve it and it gave out: 834275.