I think it is inevitable here to just pose an expression for the
solution and then prove that it satisfies the requirements, rather
than deduce the solution directly form the requirements. So I'll use
the form of the solution that was suggested; on the other hand I will
prove everything about it directly rather than refer to theory.
The question discriminates against $0$, denying it citizenship of the natural numbers, and this bias (for me) complicates both formulae and understanding. Therefore I'll adapt the question as follows by first proclaiming $\def\N{\mathbf N}0\in\N$ (naturalisation of $0$), and then shifting everything one step down: $a_i=x_{i+1}-1$ for all $i\in\N$. Then the following formulation is clearly equivalent to the question: the sequence $(a_i)_{i\in\N}$ is determined the requirement that each $a_i\in\N$ is minimal such that $a_i\neq a_j$ for $0\leq j<i$, and $a_0+a_1+\ldots+a_i$ is divisible by $i+1$ (in particular one has $a_0=0$). Show that the map $i\mapsto a_i$ is an involution of $\N$, in other words $a_{a_i}=i$ for all $i\in\N$ (this of course implies that the map is surjective).
I will use floor and ceiling functions extensively; also I'll denote the complementary fractional part $\def\dn#1{\lfloor#1\rfloor}\def\up#1{\lceil#1\rceil}\up x-x$ of a real number $x$ by $\def\cfr#1{\operatorname{cf}(#1)}\cfr x$, and the golden ratio by $\phi$. The latter satisfies $1+\phi=\phi^2$ and therefore also $1/\phi+1=\phi$ and $1/\phi^2+1/\phi=1$, which identities will often be used without mention.
For an integer $k>0$ two complementary conditions will be important. The condition denoted $\def\lo{\operatorname{low}}\lo(k)$ will be said to hold if
$$
\cfr{k\phi}=\cfr{k/\phi}<1/\phi=1-1/\phi^2
\quad\text{or equivalently}\quad
\cfr{k/\phi^2}>1/\phi^2=1-1/\phi
$$
while the condition denoted $\def\hi{\operatorname{high}}\hi(k)$ will be said to hold if
$$
\cfr{k\phi}=\cfr{k/\phi}>1/\phi=1-1/\phi^2
\quad\text{or equivalently}\quad
\cfr{k/\phi^2}<1/\phi^2=1-1/\phi
$$
(the equivalences hold because $\cfr{k\phi}+\cfr{k/\phi^2}=1$).
The cases are mutually exclusive, and equality cannot happen since that would mean $(k+1)/\phi\in\mathbf N$, which is impossible because $\phi$ is irrational.
When $\lo(l)$, then putting $n=\up{l/\phi}$ one has $\cfr{l/\phi}=n-l/\phi<1/\phi$, and so $n\phi-l=\phi(n-l/\phi)<1$ whence $l=\dn{n\phi}$; conversely $\lo(\dn{n\phi})$ holds for every integer $n>0$. Similarly when $\hi(h)$, then putting $n=\up{h/\phi^2}$ one has $\cfr{h/\phi^2}=n-h/\phi^2<1/\phi^2$, so $n\phi^2-h=\phi^2(n-h/\phi^2)<1$ whence $h=\dn{n\phi^2}$; conversely $\hi(\dn{n\phi^2})$ holds for every integer $n>0$.
Now define $(a_i)_{i\in\N}$ explicitly by
$$
a_i=
\begin{cases}
0 & \text{if $i=0$,} \\
\up{i\phi}=i+\up{i/\phi} & \text{if $\lo(i)$,} \\
\dn{i/\phi}=i-\up{i/\phi^2} & \text{if $\hi(i)$.} \\
\end{cases}
$$
Writing indices $l$ with $\lo(l)$ as $l=\dn{n\phi}$ we get $a_l=l+n=\dn{n\phi+n}=\dn{n\phi^2}$. Similarly writing indices $h$ with $\hi(h)$ as $h=\dn{n\phi^2}$, we get $a_h=h-n=\dn{n\phi^2-n}=\dn{n\phi}$. We see that
$$
a_{\dn{n\phi}}=\dn{n\phi^2} \quad\text{and}\quad
a_{\dn{n\phi^2}}=\dn{n\phi} \qquad\text{for all $n\in\N$,}
$$
and since this covers all cases, clearly $i\mapsto A_i$ is an involution of $\N$.
On to the divisibility condition, which follows from the following stronger fact. Although straightforward by induction, it does not really give any deep understanding why this divisibility holds.
Lemma 1 For all $k\in\N$ one has $\sum_{i<k}a_i=k\dn{k/\phi}$.
Proof by induction on $k$. For $k=0$ the sum is empty and the right hand side is $0$. Now assume the lemma for $k$, deduce it for $k+1$. If $\hi(k)$, then $\phi\up{k/\phi}-k>1$ whence $\up{k/\phi}>(k+1)/\phi$ and $\dn{(k+1)/\phi}=\dn{k/\phi}$; also $a_k=\dn{k/\phi}$ in this case, and so
$$
\sum_{i\leq k}a_i=k\dn{k/\phi}+\dn{k/\phi}
=(k+1)\dn{k/\phi}=(k+1)\dn{(k+1)/\phi}.
$$
If on the other hand $\lo(k)$, then $\phi\up{k/\phi}-k<1$ whence $\up{k/\phi}<(k+1)/\phi$ and $\dn{(k+1)/\phi}=\dn{k/\phi}+1$; also $a_k=\up{k\phi}$ in this case, and so
$$
\sum_{i\leq k}a_i=k\dn{k/\phi}+\up{k\phi}
=k\dn{k/\phi}+\dn{k/\phi}+1+k=(k+1)(\dn{k/\phi}+1)=(k+1)\dn{(k+1)/\phi}.
$$
Finally, to show that each $a_i$ is the minimal number to satisfy the requirements of injectivity and divisibility, the following will be used.
Lemma 2 Whenever $0\leq i<\dn{k/\phi}$ one has $i\in\{a_0,a_1,\ldots,a_{k-1}\}$; moreover $\dn{k/\phi}\in\{a_0,a_1,\ldots,a_{k-1}\}$ holds if and only if $\lo(k)$.
Proof. From $i\leq\dn{k/\phi}-1$ and $a_i\in\{\up{i\phi},\dn{i/\phi}\}$ it follows (using $\phi>1$) that $a_i<k$, so $i=a_{a_i}\in\{a_0,a_1,\ldots,a_{k-1}\}$. Similarly for $i=\dn{k/\phi}$ one gets $a_i\leq k$, so we will have $\dn{k/\phi}\in\{a_0,a_1,\ldots,a_{k-1}\}$ unless $a_i=k$. But $a_i=k=a_{a_k}$ means that $i=a_k$ while we have $i<k$, so this can only occur if $a_k<k$, that is if $\hi(k)$; conversely if $\hi(k)$ then $i=\dn{k/\phi}=a_k$ and indeed $a_i=k$.
Now to wrap everything up, the sequence $(a_i)_{i\in\N}$ defines an involution of $\N$ that by lemma $1$ satisfies the divisibility condition. To show that each $a_k$ is minimal to satisfy the divisibility condition and distinctness from previous values $a_i$, note first that unless $\lo(k)$ holds, the value $a_k=\dn{k/\phi}<k+1$ is the first one in its congruence class modulo $k+1$, so divisibility alone shows it is minimal. When $\lo(k)$ does hold, lemma $2$ shows that all values $i\leq\dn{k/\phi}$ are already present among the previous values $a_0,a_1,\ldots,a_{k-1}$. But in this case $a_k=\up{k\phi}=\dn{k/\phi}+k+1$ is the second one in its congruence class modulo $k+1$, after the forbidden value $\dn{k/\phi}$, so one has minimality here as well.
Addendum Lemma 2 was only used for a small part above (just the case $i=\dn{k/\phi}$). However its full strength is useful to prove that the pairs $(k,a_k)$ also form the set of cold positions (safe pairs, losing positions) in the game of Wijthoff's Nim, where players take turns modifying a pair of natural numbers, decreasing either one of them, or both by the same amount, and a player incapable of moving (in position $(0,0)$) loses. Positions are classified inductively as cold/hot by: $(0,0)$ is cold; any position from which one can move to a cold position is hot; any position where one can move only to hot positions is cold. The fact that $\{\,(k,a_k)\mid k\in\N\,\}$ is the set of cold positions for this game translates into the following statement.
Proposition $(a_i)_{i\in\N}$ is the lexicographically minimal sequence for which the map $i\mapsto a_i$ is injective $\N\to\N$, and the map $i\mapsto a_i-i$ is injective $\def\Z{\mathbf Z}\N\to\Z$.
Proof. Since $\dn{n\phi^2}-\dn{n\phi}=n$, one easily sees that both maps are in fact bijections. Establishing minimality requires a bit more work. Lemma 2 shows that when $\hi(k)$ holds, the value $a_k=\dn{k/\phi}$ is the first value not yet used. For the case $\lo(k)$, first observe that the values $a_i-i$ for $0\leq i<k$ form a contiguous segment of $\Z$: the value $k=0$ occupies $0$, the values $0<l<k$ with $\lo(l)$ are $l=\dn{n\phi}$ running through $0<n<k/\phi$ and occupy the corresponding positive values $\dn{n\phi^2}-\dn{n\phi}=n$, while the values $0<h<k$ with $\hi(h)$ are $h=\dn{n\phi^2}$ running through $0<n<k/\phi^2$, and occupy the corresponding negative values $\dn{n\phi}-\dn{n\phi^2}=-n$. Thus there are $k$ successive values $a_i-i$ that are forbidden for $a_k-k$, and the actual value $a_k=\up{k\phi}$ occupies the first positive free value $\up{k\phi}-k=\up{k/\phi}$. This means that to prove minimality in this case, it suffices to exclude as candidates for $a_k$ the values up to $a_k-(k+1)=\up{k\phi}-k-1=\dn{k/\phi}$ inclusive, but this is just what lemma 2 does.