A few hours ago I asked this question. This problem came up while working on a graph labeling problem. I already have a exponential algorithm working. But I want to further reduce the complexity.
Turns out there are too many solutions for $o_1^2-o_2^2=2(o_3^2-o_4^2)$, $o_i$ being odd, such that $o_1>o_2$ and $o_3>o_4$. This doesn't allow me to get a $\mathcal{O}(n^2)$ algorithm for the labeling.
So now I am concentrating on getting a $\mathcal{O}(n^3)$ to work, which requires $o_1^3-o_2^3 = 2(o_3^3-o_4^3)$ ($o_i$ being odd, and $o_1>o_2$ and $o_3>o_4$) to have either no solution or a few solutions. Is this possible??
If not, does a positive integer $x$ exist such that $o_1^x-o_2^x = 2(o_3^x-o_4^x)$ have no (or a few) solutions.
Seems I have to work on my Number theory concepts.
Any hints will be appreciated. Thanks for your patience.