There is not any mathematical but beside that
Newton combined his laws of motion with Kepler's laws and deduced the law of gravitation. Path of planets around the sun are elliptical so for simplicity we can assume the orbit to be circular. Let us consider $a$ planet of mass $m$ moving with constant speed $v$ in a circular orbit.
$$T=\frac{2\pi r}{v}$$ and $v>0$
Where $r$ is the radius of circular path
And from Kepler;s 3rd law, where $k$ is a constant of proportionality.
$$T^2=kr^3$$
From above two equations we can rewrite
$$\frac {4\pi ^2r^2 }{v^2}=kr^3$$
We know that an object in a circular path is accelerated and its acceleration towards the centre is
$$\frac {v^2}{r}$$,and $r>0$ because the distance between two point masses should be no nul
$$F=\frac {mv^2}{r}$$
$$F = \frac{m.4\pi ^2}{kr^2}$$
$$F \propto \frac {1}{r^2}$$
$$F \propto m$$
Now force on the planet due to the sun = force on the sun due to the planet.
If the force is proportional to the mas of the planet, it should be proportional to the mass of the sun.
$$F \propto \frac{Mm}{r^2}$$
$$F = G \frac{Mm}{r^2}$$