how to find x and y so that x^5 – y^5 = z [closed]

  algebra, algorithm, c++

I am given an integer z and have to compute two whole numbers x and y that solve x^5 - y^5 = z. It is guaranteed, that this equation has a solution with two whole numbers. I have not gotten very far with solving this. Thanks for your help!

Source: Windows Questions C++