I'm developing a game where the character experience needed by level is given by Gauss' formula multiplied by 100: $ \dfrac{100\mathrm{level}(\mathrm {level}+1)}{2}$. So the experience table is something like this:
level : experience needed
0 0
1 100
2 300
3 600
Right now I'm trying to find a way to reverse the formula, and, having the player's experience, find their level. The problem is that I can't seem to find a formula that is not a quadratic equation. Is this even possible?
$$\dfrac{x(x+1)}{2}=y\implies (x)(x+1)=2y\implies x^2+x-2y=0\implies\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\ x=\dfrac{-1+\sqrt{1+8y}}{2}$$ Where y is $EXP/100$.
Note:This always returns positive and rational $\forall x$ generated using that equation.