n, k = list(map(int, input().split()))

count = 0



if k == 0:

    count += n * n



else:

    for b in range(k + 1, n + 1):

        q, r = n // b, n % b

        count += q * (b - k) + max((r + 1 - k), 0)

        

print(count)
n, k = list(map(int, input().split()))

ans = 0



if k == 0:

    ans = n ** 2

else:

    for b in range(k + 1, n + 1):

        q, r = n // b, n % b

        ans += (b - k) * q + max(r + 1 - k, 0)

    

print(ans)
n, k = list(map(int, input().split()))
count = 0
if k == 0:
    count += n * n
else:
    for b in range(k + 1, n + 1):
        q, r = n // b, n % b
        count += q * (b - k) + max((r + 1 - k), 0)
print(count)

n, k = list(map(int, input().split()))
ans = 0
if k == 0:
    ans = n**2
else:
    for b in range(k + 1, n + 1):
        q, r = n // b, n % b
        ans += (b - k) * q + max(r + 1 - k, 0)
print(ans)

-count = 0 +ans = 0 -    count += n * n +    ans = n**2 -        count += q * (b - k) + max((r + 1 - k), 0) -print(count) +        ans += (b - k) * q + max(r + 1 - k, 0) +print(ans)