Let τ(n) be the number of positive divisors of n, let f(n)=∑d∣nτ(d), and let g(n)=∑d∣nf(d). Let Pn be the product of the first n prime numbers, and let M=P1P2⋯P2021. Then ∑d∣Mg(d)1=ba, where a,b are relatively prime positive integers. What is the remainder when τ(ab) is divided by 2017? (Here, ∑d∣n means a sum over the positive divisors of n.)