Dickfore said:
I think there is no solution.
D H said:
Yes, there is a solution.
Ah, I just noticed I made a mess with the constraints, and I missed the solutions. After revising it, I found the two possible solutions.
I say two, because if (a, b, c) is a solution, then so is (b, a, c). But, in searching for a solution, it is sufficient to assume that a \ge b. Then, you find one solution.
Let us look at the constraints for
a and
b. Because
c is a positive integer, we have c \ge 1 \Rightarrow c^2 \ge 1 \Rightarrow a^3 + b^3 = 2012 - c^2 \le 2011. Then, suppose a is fixed. We have the following constraints for
b:
<br />
b \ge 1, \ b \le a, \ b^3 \le 2011 - a^3 \Leftrightarrow b \le \sqrt[3]{2011 - a^3}<br />
Notice that there are two constraints for the upper bound of
b. The smaller of them determines the true upper bound:
<br />
1 \le b \le \min \left\lbrace a, \sqrt[3]{2011 - a^3} \right\rbrace<br />
Of course, the minimum is no greater than any of its arguments. This establishes the bounds on
a:
<br />
\left \lbrace \begin{array}{rcl}<br />
1 & \le & a \\<br />
1 & \le & 2011 - a^3<br />
\end{array}\right. \Leftrightarrow 1 \le a \le \sqrt[3]{2010}<br />
Notice that \sqrt[3]{2010} \approx 12.62, so 1 \le a \le 12 are the integer bounds for
a.
Now, you may make a double loop to go through all allowed values for
a and
b. For a given pair (
a,
b), c^2 = 2012 - a^3 - b^3 is uniquely determined. But, is this a true solution when
c is an integer? This establishes a selection criterion.
The program spits out a unique positive integer triple (
a,
b,
c) as a solution. Due to the above mentioned symmetry, (
b,
a,
c) is also a solution.
You ought to have enough information to sift through all the cases. If you are patient, you may even do it by hand. We are not allowed to give you a detailed solution, nor post the final answer without you making a significant attempt, so this is where I stop.
Thanks D_H for re-checking.