The factors of the number 31,791 are: 1, 3, 10597, 31791.
If you add them up, you will get the total of 42,392.