Find all possible solutions to the equation $$(x^3-x)+(y^3-y)=z^3-z$$ where $(x,y,z)\gt1$ and $\in\mathbb{Z}$ and not all three of them are equal.
The original question didn't have the last condition of not all three of them are equal but I imposed this condition as, if all variables are equal then there exists infinite solutions.
My work:
We can easily see that permutations of $0,1$ are the trivial solutions of the equation. I don't know whether this equation has infinite solutions or not but I think so as, we can rewrite this equation as $$(x-1)(x)(x+1)+(y-1)(y)(y+1)=(z-1)(z)(z+1)$$ where each term is a product of three consecutive integers i.e. even if not all three of them are equal there may be infinite solutions.
Any help is greatly appreciated.
I was thinking like this (correct me if I am wrong):
map the function each of them:
$x^{3} - x → a^{2}$
$y^{3} - y → b^{2}$
$z^{3} - z → c^{2}$
By using Pythagorean' theorem:
$ a^{2} + b^{2} = c^{2}$
$ c = \sqrt{a^{2} + b^{2}}$
$ c = \sqrt{(x^{3} - x) + (y^{3} - y)}$
$ c = \sqrt{(x-1)(x)(x+1) - (y-1)(y)(y+1)}$
We can plot the graph of $c$ by using computer software like Julia or R or Python (with the boundary conditions such as $(x,y,z) > 1 ∧ x,y,z \in \mathbb{Z}$. When we know the value of $c$ we can easily plot all the possible values of $z$.
For the real analysis part, I am not an expert with this, but this is what I can think of: $(∀x, x \in X) ∧ (∀y, y \in Y) ↔ (x,y \in Z)$ with $x,y,z \in \mathbb{Z}$ and $(x,y,z) > 1$
Given the condition, we can safely assume that the solution set, $S$, is $(∀s, s \in S) ∧ (∀z, z \in Z): s \preceq z$