How would you make a function for this Input/Output:
For example, 3:
You multiply x (3) by itself
Then you multiply x - 1 (2) by itself and add it to 9 (3 squared) And so on.....
You could say it's x squared + x - 1 squared and so on, but I'm looking for a way to write this as an arithmetic equation.
EDIT: The formula for this is 1/6x (x + 1) x (2x + 1). Thank you to yurnero and sranthrop.