Let's say for q4 instead of 6000 we have no.5 with prime factors being 5 now 5 has exactly two divisors ie 1 & 5. Now take another no. 10 now it has 2 prime factors 2 and 5 with their power being 1nd 10 has 4 divisors ie 1,2,5,10 ...
In both of the no.s their is similar pattern for counting no.of divisors that is for 5 ...the power of prime factor is 1 andwhen u add1 to the power u get 2.
Similarly for 10 u hv two prime factors each with powers 1 only! So no. Of divisors for 10 would be (1+power of prim factor a)*(1+power of prime factor b) so for 10, 2*2=4 are the no. of divisors including 1 nd 10
Extend this case with 150 also...u will get 12 divisors
Now 6000 can be written as 2^4*3*5^3
So total no of divisors= (4+1)*(1+1)*(3+1)=40