Let us recall the summation formula
$$\sum_{k=1}^nk=\frac{n(n+1)}{2}$$
How do we show that
$$\sum_{k=1}^nk=\frac{1}{2}n^2+\mathcal{O}(n) ?$$
I started by stating the definition of "big-o" notation where we let $f$ and $g$ be two functions defined on a domain $D\subseteq\mathbb{R}$ that is not bounded above. We write that $f(n)=\mathcal{O}(g(n))$ if there exists a positive constant $c$ such that $$\forall n\geq n_0, \ |f(n)|\leq c|g(n)|, $$ for some $n_0\in \mathbb{N}.$
I think that the positive constant is this $c=\frac{1}{2}n^2$.
So, the sequence would therefore me the summation formula? I do not know how to adequately approach this problem.