Sponsored
Use these hints if you're stuck. Try solving on your own first.
With arithmetic progression we know that the sum of integers in the range <code>[1, n]</code> is <code>n * (n + 1) / 2 </code>.
Solve with full IDE support and test cases