The bit of math is the Shell Theorem <https://en.wikipedia.org/wiki/Shell_theorem>.