n, k = map(int, input().split())
ans = 0
for b in range(k + 1, n + 1):
    temp = n // b
    temp2 = n % b
    ans += temp * (b - k) + max(temp2 - max(0, (k - 1)), 0)
print(ans)
a90c507c6f085ff668454bf6b52ba6167b381b9e
<mask token>

<mask token>
for b in range(k + 1, n + 1):
    temp = n // b
    temp2 = n % b
    ans += temp * (b - k) + max(temp2 - max(0, k - 1), 0)
print(ans)

n, k = map(int, input().split())
ans = 0
for b in range(k + 1, n + 1):
    temp = n // b
    temp2 = n % b
    ans += temp * (b - k) + max(temp2 - max(0, k - 1), 0)
print(ans)

n, k = map(int, input().split())
ans = 0
for b in range(k + 1, n + 1):
    temp = n // b
    temp2 = n % b
    ans += temp * (b - k) + max(temp2 - max(0, (k - 1)), 0)
print(ans)