Given the following formula, in order to obtain a given $k$, you need to find the value of $n$.
$1 + 2 + 3 +\dots + n = k$
For example:
Given $k = 15$, The expression to be used will be: $1 + 2 + 3 + 4 + 5 = 15$
Here $n = 5$
Is there any formula to solve for $n$?