The force between two celestial bodies is a Newtonian gravitational force.
It is also called Newton's law of universal gravitation. We can write it down mathematically in the following way:
[tex]F=G \frac{ m_{1} m_{2} }{ r^{2}} [/tex]
We can see from this formula that gravitational force is inversely proportional to the square of the distance between bodies.
The electrostatic force between two charges is Coulombs force. We can write it down like this:
[tex]F= k_{e} \frac{ q_{1} q_{2} }{ r^{2}} [/tex]
This force is also inversely proportional to the square of the distance between interacting particles.
The nuclear force is a little bit more complicated. It can be expressed using the so-called Yukawa potential, which has the following form:
[tex] V_{y} =- g^{2} \frac{ e^{-ur} }{r} [/tex]
This interaction does not follow the inverse-square law.
The final answer should be 8.