Monday, 14 September 2015

combinatorics - Number of Relatively Prime Factors



Given a number n, in how many ways can you choose two factors that are relatively prime to each other (that is, their greatest common divisor is 1)?



Also, am I going in the correct direction by saying if n is written as pa11pa22pakk, where pi is a prime and ai1, then the number of factors n has is (a1+1)(a2+1)(ak+1), and when I choose a factor x=pb11pb22pbkk, the number of factors is (c1+1)(c2+1)(ck+1), where ci=0 if bi0 and ci=ai otherwise?


Answer



We interpret the question as asking for the number of unordered pairs of (distinct) divisors of n that are relatively prime. For me it is easier to think in terms of ordered pairs.




So we are producing an ordered pair (x,y) of relatively prime divisors of n. Examine one after the other the primes pi. At each prime we have three types of choices: (i) assign pi to x; (ii) assign it to y; (iii) assign it to neither. If we assign pi to x, it can be done in ai ways, for the power of pi is at our disposal. Same with y. And we can assign to neither in 1 way,for a total of 2ai+1. Thus the total number of ordered pairs is P, where
P=k1(2ai+1).
This includes the ordered pair (1,1). Now for unordered pairs of distinct relatively prime divisors, there are P12 possibilities.



Remark: If we want the product of the two factors to be n, the counting becomes much simpler. For ordered pairs, we choose a subset of the set of primes, and assign paii in the chosen subset to x, and assign the rest to y. There are 2k ways of choosing x, and then y is determined. So there are 2k ordered pairs, and for n>1, there are 2k1 unordered pairs.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...