Suppose that x,y,z are positive integers satisfying x is less than or equal to y is less than or equal to z, and such that the product of all three numbers is three times their sum. What is the sum of all possible values of z?

159 167 235 333 Total = 4

9 + 7 + 5 + 3==24 sum of "z's"

How did you get that guest?

By a very short computer code in C++.

Is the answer supposed to make any sense? ... Edit: Catmeg has explained and I will take a look with fresh eyes.

When you use C++ or any other non-obvious aid to answer questions could you please state that you have done so.

It will cut down on confusion.

I think what guest means by 159 is that

x = 1

y = 5

z = 9

3(1+5+9) = 1*5*9

=^._.^=

Thanks Catmg

I will have to look at the question/answer harder.