Let m be any positive integer, whose cube is m3 .  Let a  and b two other positive integers such that a>b.  The difference of their squares is a2 –b2.

 

It is given that m3 = a2- b2

 

This can be written as m3 = (a-b) (a+b).

 

Let a-b = m  and a+b = m2 .  Solve for a and  b.

 

a= (m2+m)/2 and b= (m2 –m)/2.

 

Now we can choose any integer value for m and find out the corresponding  a and b

 

                                                                               ***