Relationship between mass, distance, and gravitational force