Suppose that
z x y
————————
0 1 0
1 2 0
2 2 1
3 3 0
4 3 1
5 3 2
6 4 0
7 4 1
8 4 2
9 4 3
. . .
. . .
. . .
n xn yn
the z column is from 0 to n, and the x and y columns are the corresponding values. Do equations exist that can be used to derive the xn and yn values based on n (n can be arbitrary value)?
$\newcommand{\round}{\operatorname{round}}$
The formula given by @Leox
$$x_n=\underbrace{\round(\sqrt{2n})}_N$$
is exact. I will use it in the following closed-form expression I propose for the second sequence:
$$y_{n-2}=n-1- \frac12 \ \underbrace{\round(\sqrt{2n})}_N \times (\underbrace{\round(\sqrt{2n})}_N-1) \tag{1}$$
(valid for $n \ge 2$).
Explanation: one recognizes in (1) the classical formula $S=\frac12 N (N-1)$ for the sum of the $N-1$ first integers ; indeed the zeros in sequence $y_n$ "uprise" at positions $1, 1+2, 1+2+3, etc.$ ; subtracting $S$ at the right position and with the right amount allows the recurrent "zero-settings".
Edit: in fact, I just decovered that sequence $x_n$ is known in OEIS with interesting comments, in particular the fact that "For any $n \ge 0$, $x_{n+1}$ is the least integer $m$ such that $m(m+1)/2$ is larger than $n$." making the connection with the second sequence: it is another way to express the formula (1).