Discrete Dynamics for the Core-periphery Model