I was messing around with sums in desmos and tried to see if any of these sums had other functions that were similar to them. The one I was messing with was just summing up all the positive integers through a given integer (eg. When you input $3$ you get $1+2+3$). I found that the function $0.5x^2+0.5x$, when given an integer, gave the same output as the sum. Does anybody know why this is?
edit: just looked at the Wikipedia article for triangular numbers and that answered my question.
The formula $$\sum_{i=1}^n i = \frac{n(n+1)}{2}$$ is very well known. There's a slick argument to prove this: set $S_n:=\sum_{i=1}^n i$ and shuffle things around to get $$\begin{align}S_n+S_n&=(1+n)+(2+(n-1))+(3+(n-2))+\cdots((n-1)+2)+(n+1)\\&=n(n+1).\end{align}$$