The factors of the number 512 are: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512.
If you add them up, you will get the total of 1,023.