So I'm not a mathematician but a writer. I'd like to know if there's a formula that could solve the following problem for a sci-fi book I'm writing:
How many satellites would it take to surround a sphere of diameter $x$, where the satellites are $y$ miles apart from each other, and $z$ miles above the sphere?
e.g. $x = 8,000$ miles, $y = 1$ mile, $z = 100$ miles.

Your satellites occupy a sphere of diameter $x+2z$. That sphere has a surface area of $4\pi(x/2+z)^2$. If each satellite is a distance about $y$ from its neighbors, we can assume that for each satellite, there is a circle of diameter $y$ centered on that satellite with no other satellites in it. That circle has area approximately equal to $\pi (y/2)^2$ (this is approximate since we are talking about a circle on the larger sphere of diameter $x+2z$, and areas on a sphere are different from areas in the plane, but since $x+2z$ is much bigger than $y$, the difference is negligible). It is not possible to perfectly cover a sphere in circles, but it is possible to cover about $$\frac{\pi\sqrt{3}}{6}\approx 91\%$$ of a sphere in circles. Therefore, to get the number of satellites, we divide the area of the sphere they occupy (adjusted to $91\%$) by the area of the circle for each individual satellite: $$\text{number of satellites}=\frac{\pi\sqrt{3}}{6}\frac{4\pi (x/2+z)^2}{\pi (y/2)^2}=\frac{\pi}{\sqrt{3}}\frac{2(x+2z)^2}{y^2}.$$ Plugging in $x=8000$, $y=1$, and $z=100$, we get $243,919,738$ satellites.