1. ## Cube problem

While playing one day, Thomas decided to build larger cubes out of a box of individual sugar cubes. So, emptying out the box onto the floor and using the sugar cubes as if they were building blocks, Thomas made three larger, solid cubes, with no sugar cubes left over.
At this point the family dog bounded into the room and sent the sugar cubes flying in all directions. The dog then picked up one of the sugar cubes in his mouth and left, crunching noisily.
Knowing he would be blamed for the mess if he didn't clean it up, Thomas picked up the remaining sugar cubes. Once he had done this, however, the temptation to keep playing with them proved too strong, and he began building again. This time he built two cubes rather than three, and again no sugar cubes were left over.
What is the smallest number of sugar cubes that could have been in the box when Thomas started playing with them?

i found the answer somewhere but i do not know how to approach this problem

2. Originally Posted by BKelAB
While playing one day, Thomas decided to build larger cubes out of a box of individual sugar cubes. So, emptying out the box onto the floor and using the sugar cubes as if they were building blocks, Thomas made three larger, solid cubes, with no sugar cubes left over.
At this point the family dog bounded into the room and sent the sugar cubes flying in all directions. The dog then picked up one of the sugar cubes in his mouth and left, crunching noisily.
Knowing he would be blamed for the mess if he didn't clean it up, Thomas picked up the remaining sugar cubes. Once he had done this, however, the temptation to keep playing with them proved too strong, and he began building again. This time he built two cubes rather than three, and again no sugar cubes were left over.
What is the smallest number of sugar cubes that could have been in the box when Thomas started playing with them?
If $\displaystyle x^3+y^3+z^3 - 1 = r^3+s^3$ then $\displaystyle x^3+y^3+z^3 = 1^3+r^3+s^3$. It is known (see for example here) that the smallest solution of that equation in distinct positive integers is $\displaystyle 9^3+6^3+4^3 = 1^3+2^3+10^3 = 1009$. Maybe there is a smaller solution if repetitions are allowed, but I don't see one. On the other hand, 1009 is an awful large number of sugar cubes to be playing with.