Naming a sum such as $\sum\limits_{x=1}^{n}{x}=\frac{n(n+1)}{2}$

68 Views Asked by At

If we let consider a simple sum such as the following:

$$\sum_{x=1}^{n}{x}=\frac{n(n+1)}{2}$$

Would it be correct to name the function that equals $\sum\limits_{x=1}^{n}{x}$ for a given upper bound, $g(n)$ or $g(x)$? I ask because the sum is written in terms of $x$ yet evaluated for inputs of $n$.