$$S=\{a^3+b^3+c^3-3abc|a,b,c\in\Bbb Z\}$$
Can we decide $S$? that is, we want to find all integers of the form $a^3+b^3+c^3-3abc$.
obviously,
- if $m,n\in S$, then $mn\in S$, so we only need to consider primes;
- if $n\in S$, then $-n\in S$.
Let $f(a,b,c)=a^3+b^3+c^3-3abc$. $f(0,0,0)=0$, $f(1,0,0)=1$, $f(1,1,0)=2$, we get that $0,1,2\in S$
p.s. I find a solution for $a,b,c \geq0$: $n=2^rp_1^{r_1}\dotsb p_s^{r_s}$, $p_1< p_2<...$ are odd primes, then a suficient and necessary condition for $n$ can be expressed as $a^3+b^3+c^3-3abc$($a,b,c \geq0$) is $p_1>3$ or $p_1=3$ with $r_1\geq2$
Here's an answer to my question, but it's certainly not obvious: https://math.stackexchange.com/questions/1860381/given-integers-m-n-find-integers-a-b-c-such-that-a3b3c3-3abc-m-n?rq=1
– Geoffrey Sangston May 24 '17 at 19:47