Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let $x, y$ and $z$ be integers such that $−10\leq x,y,z\leq 10$. How many ordered triplets $(x,y,z)$ satisfy $x^3+y^3+z^3=3xyz$?

x,y,z are allowed to be equal.

When I tried I got any one of x,y,z to be 0. I am not sure this is correct. And I got 21 as the answer which i am sure is not.

share|cite|improve this question
Factorize it as $(x+y+z)((x-y)^2 + (y-z)^2 + (z-x)^2) = 0$ probably helps. – user27126 Dec 7 '12 at 11:33
up vote 5 down vote accepted

$\textbf{Hint}$: Note that $$x^3+y^3+z^3-3xyz=(x+y+z)(x^2+y^2+z^2-xy-yz-zx)=\frac{1}{2}(x+y+z)[(x-y)^2+(y-z)^2+(z-x)^2]=0$$ if and only if either $x+y+z=0$ or $x=y,y=z$ and $z=x$. Now count the number of ordered triples for the first case using generating functions.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.