In this study, the general solution of a receding contact problem of layered medium resting on rigid foundation is considered. The layered medium consists of N homogeneous layer with varying material properties and heights. The contact surfaces can be receding or attached. The problem may include M receding contact surfaces. The layered medium is loaded with n concentrated loads transmitted by circular stamps and r distributed loads. The problem is reduced to integral equation system using elasticity theory and Fourier integral transform. The numerical solution of the system is done by using Matlab. A program is written to solve the problem given by the user with any geometry and loading. The program is tested with two studies from the literature and it was shown that the results are compatible.