An exact closed equation for the cosmological pair correlation