It’s quarantine and you’re so bored that you decided to dedicate some time to level up your math skills. Unfortunately, yesterday you bumped into a problem you couldn’t solve. However, you’ve dreamt of this problem for the entire night, so maybe today the luck will be on your side?
For given natural numbers n, m let S(n,m) be a set of positive integer numbers, such that for every element k from this set, (nmodk)+(mmodk)≥k, where amodb – is the remainder of a divided by b.
The problem asks to compute the value of the next function: F(n,m)=∑_k∈S_(n,m)D(k), where D(x) - is the number of positive divisors of the number x.
Two natural numbers n, m. 1≤n,m≤109.
One number - value of a function F(n,m).
S(4,7)=5,8,9,10,11,D(5)=2,D(8)=4,D(9)=3,D(10)=4,D(11)=2