what is the defernition of a perfect number