Remainders#11403

Remainders

1 saniye
128 megabayt
Orta

After Fuad got acquainted with the remainder operator, he thought about the next mathematical problem. He wonders how to compute (n~mod~1) + (n~mod~2) + \ldots + (n~mod~m).

Here represents the remainder operator and (x~mod~y) represents the remainder obtained when is divided by . For example (8~mod~3) = 2.

Find the value of the above expression for the given positive integers and .

Giriş

Two integers and m~(1 \le n, m \le 2 \cdot 10^9).

Çıktı

Print the value of the given expression.

Örnekler

Örnek 1

Loading
Loading

Örnek 2

Loading
Loading

Örnek 3

Loading
Loading