Notes on the Euler formula