CAT 2025 Lesson : Factors & Remainders - Special Types
6. Special Types
Following are some of the common types of questions asked in the entrance tests.
6.1 Difference of squares of positive integers
1) Where nis an odd natural number and x is the number of factors of n, then the number of ways in which n can be expressed as the difference of squares of positive integers is 2x if x is even and 2x−1 if x is odd.
2) Where nis divisible by 4 and x is the number of factors of 4n , then the number of ways in which n can be expressed as the difference of squares of positive integers is 2x if x is even and 2x−1 if x is odd.
3) Where nis an even number not divisible by 4, it can never be written as the difference of squares of positive integers.
Explanation
ab=(2a+b)2−(2a−b)2
(a+b) and (a−b) have to be even numbers so that they are divisible by 2. This requires both a and b to be even or both to be odd.
If nis odd, we find the number of ways n can be written as a product of two numbers.
If nis even, we have to ensure that it is written as product of 2 even numbers.
As a and b have to be multiples of 2, we find the number of ways 4n can be written as a product of two numbers.
Note that a number such as 18=21×32 , can never be expressed in this form. (As the power of 2 is 1, one of a and b will be even, while the other will be odd)
∴ Integers of the form 4k+2 can never be expressed as difference of squares.
All other numbers, including prime numbers can be expressed in the form of difference of squares.
Example 27
In how many different ways can 48 be expressed as the difference of squares of two positive integers?
Solution
48=24×3
We assign one 2 each to a and b to make both of them even.
Therefore, we are left with 22×3 to be split across the two numbers.
Number of ways 22×3 can be written as a product of 2 numbers =2Numberoffactors
=2(2+1)(1+1)=3
Answer: 3
6.2 Sum of 2 or more consecutive natural numbers
Rule: Number of ways in which x can be expressed as the sum of 2 or more consecutive natural numbers is the number of odd factors of x other than 1.
Explanation
Sum to n terms of Arithmetic Progression =2n[2a+(n−1)d]
n is the number of terms, a is the first term and d is the common difference between two consecutive terms.
Let the number x be expressed as the sum of consecutive natural numbers. In the case of consecutive natural numbers, d=1. We do not know n or a.
2n[2a+(n−1)1]=x
⇒ n(2a+n−1)=x
If n is an even number, then (2a+n−1) is an odd number and vice–versa.
∴For every odd factor of a number (other than 1), there is 1 way in which the number can be expressed as the sum of consecutive natural numbers.
The numbers which cannot be expressed in this form are those without odd factors, which are of the sequence 2,22,23,24, ...
Example 28
In how many ways can you write 120 as the sum of 2 or more consecutive natural numbers?
Solution
120=23×3×5
No. of odd factors of 120= No. of factors for 3×5=(1+1)×(1+1)=4
As odd numbers other than 1 should be considered, there are 4−1=3 ways in which 120 can be written as the sum of 2 or more consecutive natural numbers.
Answer: 3
6.3 Remainder Theorem for Algebraic Expressions
Where a is a constant, the remainder when a polynomial f(x) is divided by (x−a), is f(a).
Example 29
What is the remainder when (x)4−3(x)3+2(x)2−8 is divided by x+3 ?
Solution
Let f(x)=(x)4−3(x)3+2(x)2−8
If x+3=x−k , then k=−3 f(−3)=(−3)4−3(−3)3+2(−3)2−8 =81+81+18−8 =172
Answer: 172
Example 30
If (x)3+9(x)2−8x−2 when divided by (x−2) , leaves a remainder of 0, then a possible value of x is
(1) 12
(2) 13
(3) 15
(4) 16
Solution
Substituting the values, even with a calculator, will be time consuming.
Let f(x) = (x)3+9(x)2−8x−2
f(x) when divided by (x−2), leaves a remainder of
f(2)=8+9×4−8×2−2=26
∴ Where Q is the quotient, f(x)=Q×(x−2)+26
If (x−2) is a factor of 26, then (x−2) will perfectly divide f(x).
If x−2=13
⇒ x=15
Answer: (3) 15
6.4 Wilson's Theorem
Where n is a prime number, Rem(n(n−2)!)=1 and Rem(n(n−1)!)=n−1.
(Note: The second equation above can be derived from the first by applying remainder theorem)
For instance, where n = 29,Rem(2927!)=1 and Rem(2928!)=28
Additionally, note that where n is a composite number and n=4, Rem(n(n−2)!)=Rem(n(n−1)!)=0 .
For instance, where n=28, Rem(2827!)=Rem(2826!)=0
Where n=4, Rem(42!)=Rem(43!)=2
The following example is of very high difficulty and is unlikely to appear in entrance tests. However, the concepts applied here will enhance your understanding of remainders which would help ace a test.
Where k is a positive integer, 6x can be expressed as
6x=29k+1 ⇒ x=6(29k+1)
The smallest integral solution is when k=1 and x=5. ∴ The remainder is 5.
Answer: 5
6.5 Remainder when terms are in GP
This is a specific type of question where we need to express the divisor as sum of terms in GP in order to find the remainder.
Example 32
What is the remainder when 2+22+23+...+250 is divided by 7?
Solution
7=1+2+4=20+21+22
There are a total of 50 terms in 2+22+23+...+250
Sum of any three consecutive terms will be divisible by (20+21+22) and will therefore leave a remainder of 0.
For instance, Rem(20+21+22235+236+237)=Rem(20+21+22235(20+21+22)=0
As it is easier to work with the smaller terms, the sum of the last 48 terms (16 sets of 3 terms each) will leave a remainder of 0. And, we will be left with just the first 2 terms.