Introduction
In this unit we will discuss several functions related to the divisors of a number, including:
- is equal to the number of positive divisors of (including and )
- is equal to the sum of the positive divisors of (including and )
- (pronounced totient) denotes the number of positive integers, upto , that are relatively prime to
Why Divisor Functions
Divisor functions provide efficient ways to compute useful properties of an integer, many of which are frequently tested upon in competitions. Functions like Euler's totient function (#3 above) also have elegant connections to Number Theory that give rise to theorems like Fermat's Little Theorem.
Most of the time, these functions provide quick ways to find specific properties of a number that may initially seem very bashy.
Formulas
Let be the prime factorization of positive integer .
It's pretty easy to see that any divisor of will be of the form , where for every from to . Thus the number of divisors of should be
since there are possibilities for each .
The formula for is a bit more complicated:
In this expression there will be products formed by taking one number from each sum. Clearly, all of these products are divisors of and each divisor of is one of the products. Also, each product is unique (because prime factorizations are unique). Since the expression of the sum of all the products, we can conclude this equals the sum of the divisors of .
We can simplify the expression by using the formula for the sum of a geometric sequence:
Observe that and are both multiplicative, meaning that if , then and .
Euler's totient theorem, (, also known as phi) outputs the number of positive integers, , upto that are relatively prime to , i.e, . The formula is as follows:
The proof for this is quite intuitive, the fraction: multiplied by gives the number of positive integers upto which do not have the prime in their prime factorization. Multiplying this value over all primes, , in the prime factorization of accumulates to give the value of the number of positive integrs upto which share no prime factors with .
Techniques
Frequently, you may run across problems asking for some manipulation of the divisor's of a number, these tools provide the most effective way to solve those problems. Simply prime factorize the number, and proceed by using the above formulas.
We can also use these formulas to find simple expressions for values such as the product of all factors of an integer:
Let all factors of an integer be in the set . Pair each divisor, , with its complement, i.e, . Since exactly when , this pairing maps to itself, and each pair has product
There are divisors in total, so they split into such pairs. Multiplying the products of all pairs together gives
When is a perfect square, is a divisor that pairs with itself, so is odd and the exponent is not an integer. The formula still holds: writing , the first term accounts for the genuine pairs and the accounts for the self-paired divisor.
Euler's Totient Function also has various uses in number theory, specifically, Fermat's Little Theorem which states:
mod
where is a prime and does not divide . The proof for this is beyond the scope of the module, but you may reference this.
Examples
For how many positive integers is odd?
Solution
Looking at the formula , we see that for to be odd, each term must be odd. In other, all of the exponents of must be even, which is equivalent to saying that is a perfect square. So the answer is , since there are that many perfect squares under .
In other words, is odd if and only if is a perfect square, which is a useful fact.
Find the smallest number with exactly 14 positive divisors.
Solution
Using the formula for , we see that any number with exactly 14 positive divisors must be of the form or , where are primes. It's easy to see that the smallest number of either form is .
2021 Fall AMC 12B · Problem 12 For a positive integer, let be the quotient obtained when the sum of all positive divisors of is divided by For example, . What is ?
Solution
Notice that , so we can apply the formula for directly after prime factorizing. The prime factorizations are and .
Using , we get
Therefore
so the answer is .
Practice Problems
| Status | Source | Problem Name | Difficulty | Tags | ||
|---|---|---|---|---|---|---|
Module Progress:
Join the Discord Community!
Stuck on a problem, or don't understand a module? Join the Discord and get help with your doubts while making more math friends.
