Concept 04 / 09Permutations and Combinations
Selections from Identical Objects and Counting Divisors
Selecting from groups of identical objects with (p + 1)(q + 1)... choices, the number of divisors of a number, sum and product of divisors, even and odd divisors, and ways to write a number as a product of two factors.
When objects of the same kind are identical, a selection is described only by how many of each kind are taken. If there are identical objects of one kind, of another and of a third, then from the first kind we can take objects ( options), and similarly for the others. So the number of selections (including taking nothing) is
,
and the number of non-empty selections is . If, in addition, there are distinct objects, each of those can be taken or not, contributing a factor : total non-empty selections.
Counting divisors is exactly this problem. Every positive integer factors uniquely into primes, . A divisor of is formed by choosing, for each prime, an exponent between and , which is a selection from identical copies of . So
number of divisors .
This includes and . The number of proper divisors (excluding ) is , and excluding both and it is .
Sum of divisors. Expanding the product gives every divisor exactly once, so
.
Even and odd divisors. For an odd divisor, the exponent of must be ; so if with odd, the number of odd divisors is , and the number of even divisors is . Similarly, divisors that are multiples of a given correspond to divisors of (when ).
Product of divisors. Divisors pair up as and , each pair multiplying to . With divisors there are pairs, so the product of all divisors is . This formula also works when is a perfect square (then is odd, and pairs with itself).
Factorising into two factors. The number of ways to write as an ordered product is . As an unordered product, it is if is not a perfect square and if it is. The number of ways to write as a product of two coprime factors (unordered) is , where is the number of distinct prime factors: each prime power goes entirely to one factor or the other.
Key Takeaways:
- identical items of three kinds: selections, minus for non-empty.
- .
- .
- ( odd): odd divisors , even divisors .
- Product of all divisors .
- is odd is a perfect square.
- Unordered factor pairs: , or for squares; coprime pairs: .
- Pitfall: treating identical objects as distinct, which gives instead of .
Brain-Teaser 1: How many divisors does have? How many are even, how many are multiples of , and what is their sum?
Solution: . So . Odd divisors are divisors of : , so there are even divisors. Multiples of correspond to divisors of : . The sum of all divisors is . Every part reduces to choosing exponents.
Brain-Teaser 2: In how many ways can identical apples, identical oranges and distinct mangoes be selected so that at least one fruit is taken? What if at least one of each kind is required?
Solution: Apples: options ( to ); oranges: ; each distinct mango: (take or not), so . Total selections including the empty one: , so non-empty: . For at least one of each kind: apples to ( options), oranges to ( options), and at least one mango (): . The rule is to count options per kind and multiply, adjusting each factor for its own constraint.
Brain-Teaser 3: In how many ways can be written as a product of two positive integers (unordered)? As a product of two coprime factors?
Solution: , so . is not a perfect square (the exponent of is odd), so the unordered pairs number . For coprime factors, each of the prime powers , , goes wholly to one factor, giving ordered ways and unordered: , , , . Pairing divisors with is the key to every 'product of two factors' count.
Practice this concept
Free · no account required · instant solutions