If M is the mass of one body and m is the mass of another body, and their separation is d, then the gravitational force between them is proportional to