The factors of the number 40,039 are: 1, 40039.
If you add them up, you will get the total of 40,040.