The force of Gravitation varies with the medium.
The gravitational force between two point masses m1 and m2 at separation r is given by F=km1m2r2 The constant k