# Python, 44 bytes

    lambda k:sum(i*(k%i<1)for i in range(1,1+k))

* Thanks to Stephen, save 1 byte by removing whitespace.
* Thanks to Jonathan Frech, save another 1 byte by changing if to multiply.