According to the information you are giving me, you must be referring to Coulomb's law because the electrostatic force in proportion to the displacement of charged particles is .
As you can see, there is a reason as to why this is also referred to as Coulomb's inverse square law because the r² represents the displacement or distance relative to the position of the particles which is squared, and it is inverse because the force and the product of the distance squared is equal to the product of the two charges particles multiplied by coulomb's constant (k) which is approximately 8.9875517923×10⁹ kg⋅m³⋅s⁻²⋅C⁻².
it gravitional pull on earth will increased becauste it is compress to a form of moon which is comperatively smaller so the gravitonal pull on per cm of earth will incrased so we can say that there will be change in acceleration due to gravity