x | y
0 | 0
1 | 1
2 | 1
3 | 2
4 | 2
5 | 2
6 | 3
7 | 3
8 | 3
9 | 3
10 | 4
11 | 4
12 | 4
13 | 4
14 | 4
15 | 5
16 | 5
17 | 5
18 | 5
19 | 5
20 | 5
Desmos url: https://www.desmos.com/calculator/mwnivlqhfl
Pattern seems easy recognizable, but i can't figure out function $y = f(x)$
Note that $\forall k \in \mathbb{N}$ the points such that $f(x) = k$ are only those in $\Big[\frac{k(k+1)}{2};\frac{k(k+3)}{2}\Big]$. Now, let $a = \frac{k(k+1)}{2}, b = \frac{k(k+3)}{2}$: to find the inverse you have to solve for $k$ $$\begin{cases} a = \frac{k(k+1)}{2} \\ b = \frac{k(k+3)}{2} \end{cases}$$ Simple algebra caluli lead to $$\begin{cases} k = \frac{\sqrt{8a+1}-1}{2}\\ k = \frac{\sqrt{8a+9}-3}{6} \end{cases}$$ but you can rewrite those expression by noticing that the image (arrival set of function) is $\mathbb{N}$, and retrieve $$\begin{cases} k = \Big\lfloor \frac{\sqrt{8a+1}-3}{2} \Big\rfloor+1\\ k = \Big\lfloor \frac{\sqrt{8b+1}-3}{2} \Big\rfloor+1 \end{cases}$$ hence $$f(x)=\Big\lfloor \frac{\sqrt{8x+1}-3}{2} \Big\rfloor+1$$