Playing with divisors is fun

I don’t understand the logic and the math behind the problem

hey @shivanshu12800
It’s well known fact that the number of divisors of n=∏piαi equals ∏(αi+1) where pi are primes in the factorization of n . Lets define P as the product of all divisors of n . If we find βi where P=∏piβi we will solve the problem.

All divisors of n=∏piαi can be represented as d=∏piki where 0≤ki≤αi. Lets fix some i0 and 0≤k0≤αi. There are ∏i≠i0(αi+1) divisors that ki0=k0. So βi=(0+1+…+αi)⋅∏i≠i0(αi+1)=αi(αi+1)2⋅∏i≠i0(αi+1)=αi(αi+1)2⋅allProdαi+1=αi2⋅allProd, where allProd=∏(αi+1).

Now the can calculate the number of divisors of P using βi.

@shivanshu12800 you can also refer this post for more understanding .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.