  In this paper, we introduce a new function related to the sum of element
orders of finite groups. It is used to give some criteria for a finite group to
be cyclic, abelian, nilpotent, supersolvable and solvable, respectively.
