On a sum involving the Euler function