Modulus Summation
Haskell, 22 bytes
f x=sum$mod x<$>[1..x]
Try it online!
Explanation
Yes.
Ruby, 28 27 23 bytes
-4 bytes thanks to @daniero.
->n{(1..n).sum{|i|n%i}}
Try it online!
Ruby, 28 bytes
f=->n{n>($.+=1)?n%$.+f[n]:0}
Try it online!
05AB1E, 3 bytes
L%O
Try it online!