Reorganized Eulers calculation