Problem 2894 · Easy

Divisible and Non-divisible Sums Difference

The non-divisible sum minus the divisible sum equals the total minus twice the sum of the multiples of m.

Open the interactive visualisation