Rosetta Problems

Sum of remainders

https://marisaoj.com/problem/394