— One problem of classical phase shifting for optical 3D surface reconstruction is the occurrence of ambiguities due to the use of fringe projection. We generally derive a number-theoretical approach to calculate absolute phase measurements which can be used as a base for a reliable surface reconstruction without any ambiguity. The essence of our method is the application of pattern sequences with different periods whereby we homogeneously use all pictures which were taken for the measurement. This leads to a higher average accuracy in the surface reconstruction. Furthermore we propose a technique to avoid typical calculation errors that are produced in classical phase shifting caused by discontinuities, occlusions and reflections on the surface.