2260.41 – Two Cubes


The combined volume of two cubes, each with integral sides, is equal to the combined length of all their edges. What is the side length of the two cubes?


Solution

Let xx and yy be the two side lengths. The combined volume is x3+y3x^3 + y^3 while the combined lengths of all sides (12 per cube) is 12x+12y12 x + 12 y. Thus we are looking for a whole-number solution of the equation:

x3+y3=12x+12y,x^3 + y^3 = 12 x + 12 y,

or

x3+y312x12y=0.x^3 + y^3 - 12 x - 12 y = 0.

Since only integer solutions are sought and the quantity x3+y312x12yx^3 + y^3 - 12 x - 12 y grows larger and larger as xx and yy grow, any solution will be in a small region of the first quadrant. This is perfect for a computer search, using your spreadsheet. Tabulating x3+y312x12yx^3 + y^3 - 12 x - 12 y for values of xx and yy between 1 and 6 gives the result shown in the figure.

There is a solution x=4,y=2x = 4, y = 2 (and with these values reversed). As the values at the edge of the table will only grow larger, this must be the only solution.

2260_41_solution_779239583f.png