3rd Power Diophantine Generator

Just for fun I wrote a little program in Mathematica to implement Cal’s method so I could brute force the crap out of this.

It checks all triples (l, w, h) = (i, a, ( i^2)/(2a)) where i is even and a is odd.

It’s up to about i = 1,000,000 now with no luck. Of course I’m pretty I haven’t checked anything that hasn’t been previously checked by people who have spent more time on this problem than I have.

I’ll let it run for a while, but I don’t believe a solution exists so I’ll probably kill it sooner rather than later.

Code below. Mathematica is effin’ sweet.


CheckTrip[{a_, b_, c_}] := (Sqrt[a^2 + b^2] == Floor[Sqrt[a^2 + b^2]]) && 
			   (Sqrt[a^2 + c^2] == Floor[Sqrt[a^2 + c^2]]) && 
			   (Sqrt[c^2 + b^2] == Floor[Sqrt[c^2 + b^2]])

i = 2;
While[Not[Or @@ (CheckTrip /@ ({i, #, i^2/(2 #)} & /@ Select[Divisors[i^2/2], OddQ]))], If[Mod[i, 10000] == 0, Print*]; i = i + 2]



Trust me on this and move on.

??
What do you mean “no luck”? You haven’t found any other quadruples?

There’s a easier way. In order for 2ab to be a square, there are two possibilities:
1.) a = 2e^2 and b = f^2, so c = 2ef

or

2.) a = 2e and b = ef^2 so c = 2ef
Just plug in values for e and f in the above and chug. The simplest case of 1, 2, 2 has e = 1 and f = 1 in the either case.

I had no luck solving the perfect cuboid problem. I had plenty of luck finding pythagorean quads.

This program takes an even i and generates every triple (l, w, h) = (i, a, ( i^2)/(2a)) where a is odd. Thus l^2 = 2 w h, so we know the long diagonal of the rectangular solid is an integer. At this point we only have to check if the face diagonals are integers. If they are the program stops, otherwise i is incremented by 2 and the program marches on.

It is well-known (and has been known, although it is not clear if it was proved, for 2500 years) that you get all primitive Pythagorean triples (no common divisor) if you take numbers u > v > 0 and of opposite parity and let x = 2uv, y = u^2 - v^2, z = u^2 + v^2. As far as non-primitive ones, well in order that (x,y,z) be generable, z = u^2 + v^2 would have to be the sum of two squares. That necessary condition might be sufficient. At any rate you can generate (6,8,10), but not (9,12,15).

Here is amusing variation. You can generate all primitive integer-sided triangles with a 60 degree angle by a slightly more complicated generating formula, but no integer-sided triangle can contain a 30 degree angle.

Ha, when I saw the thread title I thought “Oh, great, has someone been sucked into believing some perpetual motion machine scam again?”

“Can the 3rd Power Diophantine Generator solve our energy woes?” is what I was envisioning.