The factors of the number 39,587 are: 1, 31, 1277, 39587.
If you add them up, you will get the total of 40,896.