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.