The factors of the number 40,871 are: 1, 23, 1777, 40871.
If you add them up, you will get the total of 42,672.