SP867 CUBES - Perfect Cubes
Description
For hundreds of years Fermat's Last Theorem, which stated simply that for _n_ > 2 there exist no integers _a_, _b_, _c_ > 1 such that _a_^_n_ = _b_^_n_ + _c_^_n_, has remained elusively unproven. (A recent proof is believed to be correct, though it is still undergoing scrutiny.) It _is_ possible, however, to find integers greater than 1 that satisfy the "perfect cube" equation _a_^3 = _b_^3 + _c_^3 + _d_^3 (e.g. a quick calculation will show that the equation 12^3 = 6^3 + 8^3 + 10^3 is indeed true). This problem requires that you write a program to find all sets of numbers {_a_,_b_,_c_,_d_} which satisfy this equation for _a_
Input Format
N/A
Output Format
N/A