For positive integers , , , let us write if is divisible by . Let be the sum of all positive integers less than or equal to for which , and be the sum of all positive integers less than or equal to for which . Find the value of .
Problem 1113
Official solution
Note that . So, we see that is the sum of the numbers
while is the sum of the numbers
For we have so we obtain