A number can be written in its prime factorization format. For example 100 = 22 x 52

##
**Formula 1:** The number of factors of a number

(p+1).(q+1).(r+1)… where N = ap x bq x cr …

Example: Find the number of factors of 100.

Ans: We know that 100 = 22 x 52

So number of factors of 100 = (2 +1 ).(2 +1) = 9.

Infact the factors are 1, 2, 4, 5, 10, 20, 25, 50, 100

##
**Formula 2:** The sum of factors of a number

ap+1−1a−1×bq+1−1b−1×cr+1−1c−1…ap+1−1a−1×bq+1−1b−1×cr+1−1c−1… where N=ap×bq×cr×…N=ap×bq×cr×…

**Example:** Find the sum of the factors of 72

Ans: 72 can be written as (23×32).(23×32).

Sum of all the factors of 72 = (23+1−12−1×32+1−13−1)(23+1−12−1×32+1−13−1)= 15 x 13= 195

##
**Formula 3:** The number of ways of writing a number as a product of two number

12×[(p+1).(q+1).(r+1)…]12×[(p+1).(q+1).(r+1)…] (if the number is not a perfect square)

If the number is a perfect square then two conditions arise:

1. The number of ways of writing a number as a product of two ** distinct numbers **=12×[(p+1).(q+1).(r+1)…−1]12×[(p+1).(q+1).(r+1)…−1]

2. The number of ways of writing a number as a product of two numbers and those numbers

**need not be distinct**=12×[(p+1).(q+1).(r+1)…+1]12×[(p+1).(q+1).(r+1)…+1]

Example: Find the number of ways of writing 140 as a product of two factors

Ans: The prime factorization of 140 = 22×5×722×5×7

So number of ways of writing 140 as a product of two factors = 12×[(p+1).(q+1).(r+1)…]12×[(p+1).(q+1).(r+1)…] = 12×[(2+1).(1+1).(1+1).]=612×[(2+1).(1+1).(1+1).]=6

Example: Find the number of ways of writing 144 as a product of two factors subjected to the following conditions a. Both factors should be different b. Both factors need not be different.

Ans: The prime factorization of 144 = 24×3224×32

a. If both factors are different, then total ways = 12×[(p+1).(q+1).(r+1)…−1]12×[(p+1).(q+1).(r+1)…−1] = 12×[(4+1).(2+1)−1]12×[(4+1).(2+1)−1] = 7

If both factors need not be different, then total ways = 12×[(p+1).(q+1).(r+1)…+1]12×[(p+1).(q+1).(r+1)…+1] = 12×[(4+1).(2+1)+1]12×[(4+1).(2+1)+1] = 8

##
**Formula 4:** The number of co-primes of a number

N=ϕ(N)=ap.bq.cr…ϕ(N)=ap.bq.cr… can be written as N×(1−1a)×(1−1b)×(1−1c)…N×(1−1a)×(1−1b)×(1−1c)…

Example: Find the number of co-primes to 144 which are less than that of it

Ans: The prime factorization of 144 = 24×3224×32

The number of co-primes which are less than that of 144 = 144×(1−12)×(1−13)144×(1−12)×(1−13) = 48

##
**Formula 5:** The sum of co-primes of a number

N= ϕ(N)×N2ϕ(N)×N2

Example: Find the sum of all the co-primes of 144

Ans: The sum of co-primes of the 144 = ϕ(N)×N2ϕ(N)×N2 = 48 x 14421442 = 3456

##
**Formula 6:** The number of ways of writing a number N as a product of two co-prime numbers

= 2n−12n−1 where n=the number of prime factors of a number.

Example: Find the number of ways of writing 60 as a product of two co – primes

Ans: The prime factorization of 60 = 22×3×522×3×5

The number of ways of writing 60 as a product of two co – primes = 23−123−1 = 4

##
**Formula 7:** Product of all the factors

= N(Number of factors2)N(Number of factors2) = N⎛⎝⎜⎜(p+1).(q+1).(r+1)….2⎞⎠⎟⎟N((p+1).(q+1).(r+1)….2)

Example: Find the product of all the factors of 50

Ans: Prime factorization of 50 = 2×522×52

Product of all the factors of 50 = 50(1+1).(2+1)2=50350(1+1).(2+1)2=503

**Level – 2**

1. P is the product of all the factors of 15552. If P = 12N×M12N×M, where M is not a multiple of 12, then find the value of M. [M and N are positive Integers]

Ans: 15552 = 26×3526×35

Product of all the factors of 15552 = (26×35)(6+1).(5+1)2=2126×3105(26×35)(6+1).(5+1)2=2126×3105

⇒⇒(22)63×363×342(22)63×363×342 = 1263×3421263×342

So M = 342342

2. Let M be the set of all the distinct factors of the number N=65×52×1065×52×10,Which are perfect squares. Find the product of the elements contained in the set M.

N = 65×52×1065×52×10 = 26×35×5326×35×53

Even powers of 2 available: 20,22,24,2620,22,24,26

Even powers of 3 available: 30,32,3430,32,34

Even powers of 5 available: 50,5250,52

Therefore number of factors of the number N that are perfect squares = 4 x 3 x 2 = 24

Product of the elements contained in M

= 2(2+4+6)×6×3(2+4)×8×52×12=272×348×5242(2+4+6)×6×3(2+4)×8×52×12=272×348×524

3. In a hostel there are 1000 students in 1000 rooms. One day the hostel warden asked the student living in room 1 to close all the doors of the 1000 rooms. Then he asked the person living in room 2 to go to the rooms which are multiples of his room number 2 and open them. After he ordered the 3rd student to reverse the condition of the doors which are multiples of his room number 3. If He ordered all the 1000 students like the same, Finally how many doors of those 1000 rooms are in open condition?

We understand that a door is in open or in close condition depends on how many people visited the room.

If a door is visited by odd number of persons it is in close condition, and is visited by even number of persons it is in open condition.

The number of people who visit a certain door is the number of factors of that number. Let us say room no: 24 is visited by 1, 2, 3, 4, 6, 8, 12, 24 which are all factors of 24. Since the number of factors are even this door is in open condition.

we know that the factors of a number N=ap.bq.cr…ap.bq.cr… are (p+1).(q+1).(r+1)…

From the above formula the product is even if any of p, q, r… are odd, but the product is odd when all of p, q, r are even numbers.

If p, q, r … are all even numbers then N=ap.bq.cr…ap.bq.cr… is a perfect square.

So for all the perfect squares below 1000 the doors are in closed condition.

There are 31 perfect squares below 1000 so total doors which are in open condition are (1000-31)= 969

4. What is the product of all factors of the number N = 64×10264×102 which are divisible by 5?Sol: N = 64×10264×102 = 26×34×5226×34×52

Total product of the factors = (26×34×52)(6+1).(4+1).(2+1)2(26×34×52)(6+1).(4+1).(2+1)2 = (26×34×52)1052(26×34×52)1052

So total product of the factors N which are not multiples of 5 =

(26×34)(6+1).(4+1)2(26×34)(6+1).(4+1)2 = (26×34)352(26×34)352

So, total product of the factors of N which are multiples of 5 = (26×34×52)1052(26×34)352(26×34×52)1052(26×34)352 = 2210×3140×51052210×3140×5105

5. Let N = 23×317×56×7423×317×56×74 and M = 212×35×54×78212×35×54×78. P is total number of even factors of N such that they are not factors of M. Q is the total number of even factors of M such that they are not factors of N. Then 2P -Q = ?

Sol:

N = 23×317×56×7423×317×56×74

M = 212×35×54×78212×35×54×78**Calculation of P:**

Number of powers of 2 available are 3. i.e., 2121 to 2323(all these powers are even)

Since P is the total number of even factors of N such that they are not factors of M, the number of powers of 3 available are 17 – 5 = 12

For combination with each of these 12 powers of 3( i.e., 3636 to 317317 , number of powers of 5 are 7 ( i.e., 5050 to 5656) and number of powers of 7 are 5 ( i.e.,7070 to 7474) available respectively.

Therefore there are 3 x 12 x 7 x 5 = 1260 factors

Now consider powers of 5 that are in N but not in M: 55,5655,56

So, for these two powers of 5, the number of powers of 2, 3, and 7 that are available are 3, 6, and 5 respectively. (Powers of 3 are only 6 (3030 to 3535), not 18 as we have already used 3636 to 317317 in caclulating P)

Therefore, there are 2 x 3 x 6 x 5 = 180 factors

P = 1260 + 180 = 1440**Calculation of Q:**

Consider powers of 2 that are in M but not in N: 24,25,26…..21224,25,26…..212

So for these 9 powers of 2, number of even factors of M such that they are not factors of N = 9 x 6 x 5 x 9 = 2430

Consider powers of 7 that are in M but not in N: 75,76,7775,76,77 and 7878

So for these 4 powers of 7, number of powers of 2, 3, and 5 that are available are 3, 6 and 5.

(Powers of 3 are only 6 (3030 to 3535), not 18 as we have already used 3636 to 317317 in calculating Q and (Powers of 5 are only 5 (5050 to 5454), not 7 as we have already used 5555 to 5656 in calculating Q))

So number of such factors = 4 x 3 x 6 x 5 = 360

Q = 2430 + 360 = 2790

Therefore, 2P – Q = 2880 – 2790 = 90

**Alternative Method:**

Many a student asked me to explain this question elaborately. I think if we use sets this question is easily done.

N = 23×317×56×7423×317×56×74

M = 212×35×54×78212×35×54×78

So by the above diagram, we can see that P is the number of even factors of N which are not factors of M and Q is number of even factors of M which are not factors of N.

Now to calculate common even factors of N and M, we take HCF of N and M which is 23×35×54×7423×35×54×74 (∵∵ take minimum powers of both numbers).

Even factors of above number = 3 × (5 + 1) × (4 + 1) × (4 + 1) = 450 ( ∵∵ We have to include atleast one multiple of 2 to make it even number.

Even factors of P = 3 × 18 × 7 × 5 = 1890

Even factors of Q = 12 × 6 × 5 × 9 = 3240