Say I have
n=5 I would like to perform the following equation:
5^2 + 4^2 + 3^2 + 2^2 + 1^2 = 55
I know that a triangular number can be worked out with the following equation:
However it is at this point where I've not been able to work out the required adjustments to suite this use case.
What would be the correct equation?