Number Theory Sheet Solution
Number Theory Sheet Solution
a b 121m 112 m
Division Algorithm
9. Given natural numbers a, b, and c such that a +b+ c is divisible by 6, prove that a3 + b3+ c3 is
also divisible by 6.
Sol. M1. a3 + b3 + c3 = 3abc + (a + b + c) (a2 + b2 + c2 – ab –bc –ca)
a + b + c is divisible by 6
a + b + c is even no
atleast one is even
abc is multiple of 2
3abc is multiple of 6
M2.
n3 ≡ n(mod6)
a3 + b3 + c3 ≡ a + b + c (mod6)
10. Prove that n3 + 2 is not divisible by 9 for any integer n
Sol. n3 + 2
(i) n =3k
n3 + 2 = 27k3 + 2
=9m + 2
(ii) n =3k + 1
n3 + 2 = 27k3 + 9k(3k+1) + 3
= 9m + 3
(iii) n = 3k + 2
n3 + 2 = 27k + 18k (3k + 2) + 10
= 9m + 1
Not divisible by 9
11. The natural numbers x, y, and z satisfy the equation x2 +y2 = z2. Prove that at least one of them
is divisible by 3.
Sol. z2 – x2 = y2
(z–x) (z + x) = y2
If z & x of the type 3k + 1 or 3k + 2
then in all combinations (z–x) (z+x) is a multiple of 3. Therefore y contain 3
12. Prove that n5 + 4n is divisible by 5 for any integer n.
Sol. n5 – n + 5n
n(n2 –1) (n2 + 1) + 5n
(n–1)n (n+1) (n2 + 1) + 5n
(n–1) n (n+1) (n2 + 1) must be divisible by 5.
(n–1) (n) (n+1) (n2 –4 +5)
(n–2) (n–1) (n) (n+1) (n+2) + 5k
always divisible by 5
13. (a) Given that p, p + 10, and p + 14 are prime numbers,find p
(b) Given that p, 2p + 1, and 4p + 1 are prime numbers, find p.
Sol. (a) (i) If p = 2
P+10=12 not prime
(ii) If p = 3
P+10=13, p + 14 = 17 all prime
For p > 3, p can be 3k+1 or 3k+2
(iii) If p = 3k + 1
P+14= 3k+15 = 3m not prime
(iv) If p = 3k + 2
P+10= 3k+12 = 3m not prime
only for p=3, p+ 10 & p + 14 are prime.
(b) ) (i) If p = 2
2p + 1=5, 4p + 1=9 not prime
(ii) If p = 3
2p + 1=7, 4p + 1=13all prime
For p > 3, p can be 3k+1 or 3k+2
(iii) If p = 3k + 1
2P+1= 6k+3 = 3m not prime
(iv) If p = 3k + 2
4P+1= 12k+9 = 3m not prime
only for p=3, 2p+ 1 & 4p + 1 are prime.
14. Given the pair of prime numbers p and p2 + 2, prove that p3 + 2 is also a prime number.
Sol. (i) If p = 2
p2 + 2=6 not prime
(ii) If p = 3
3,11,29 all prime
For p > 3, p can be 3k+1 or 3k+2
(iii) If p = 3k + 1
p2 + 2 = (3k + 1)2 + 2 = 9k2 + 6k + 3 = 3m not prime
(iv) If p = 3k + 2
p2 + 2 = (3k + 2)2 + 2 = 9k2 + 12k + 6 = 3m not prime
only for p=3, p2 + 2 & p3 + 2 are prime.
15. Prove that the sum of the squares of five consecutive natural numbers cannot be a perfect
square.
Sol. n2 + (n + 1)2 + (n + 2)2 + (n + 3)2 + (n+4)2
square of even no of type 4k
square of odd no of type 4k + 1
Case : 1 If n odd 4(u +v + w + x +y) + 3 = 4P + 3 not square
Case : 2 If n even 4(u +v + w + x +y) + 2 = 4P + 2 not square
16. Prove that p2 – q2 is divisible by 24 if p and q are prime numbers greater than 3.
Sol. p2 – q2 = (p – q)(p + q)
p & q of the type 3m+1 or 3m+2
In all combinations (p-q)(p+q) contain multiple of 3.
Similarly, p & q of the type 4m+1 or 4m+3
In all combinations (p-q)(p+q) contain multiple of 8.
⇒ p2 - q2 is divisible by 24
17. Find all integers which leave remainder 1 when divided by 3, remainder 2 when divided by
10
Sol. x = 3m + 1 x = 1,4,7,10,13,16,19,22,…..
x = 10n + 2 x = 2, 12, 22, 32, ……
x = 22 +30 k; K Z
18. Find all primes p such that both p and p2 + 8 are primes
Sol. (i) If p = 2
P2 + 8 = 12 not prime
(ii) If P = 3
P2 + 8 = 17 prime
For p > 3 p2 is of the form 6k + 1
P2 + 8 = 6k + 9 not prime
p = 3 only
31 3
32 2
33 6
34 4
35 5
36 1
37 3
Cyclicity = 6
1989 x 6 x 331 + 3
Remainder = 6
23. Find the units digit of 3100
Sol. 32 1mod 10
24. The unit’s digit in the expression 36234 33512. 39180 – 5429. 25123 31512 will be
(a)8 (b) 0 (c) 6 (d) 5
Ans. b
25. 1255/ 311 + 848/ 1618 will give which digit at unit’s place?
(a) 4 (b) 6 (c) 8 (d) 0
Ans. d
26. Find the last two digits of the following number
101 x 102 x 103 x 197 x 198 x 199
(a) 54 (b) 74 (c) 64 (d) 84
Sol. (100+1)(100+2)(100+3)(200-1)(200-2)(200-3)
= m00 – 1x2x3x1x2x3 = m00 – 36 = m‘64
27. Find last two digits of 6100 + 781.
Sol. 65k + 74m+1 = 56 + 7 = 63
Euclidean Algorithm
28. The greatest number that divides 22176 and 22396 without leaving any remainder is.
(a). 48 (b) 42 (c) 38 (d) 52 (e) None of these
Sol. HCF(22176, 22396) = HCF(22176, 22396 - 22176) = (22176, 220) = 44(504, 5) = 44
29. Find all integers x and y such that (x, y) = 8 and |x, y| = 64
Sol. (x, y) = 8 & |x, y| = 64
x =8x1 & y = 8y1 & (x1, y1) = 1
|x1, y1| = 8 = 8 × 1, 1 × 8
(x, y) = (64,8), (8,64)
30. The product of two positive integers is 9984 and the greatest common factor of those integers
equals that difference between them. What are the two integers?
Sol. Let the no.s x & y & g.c.d = m
x = mx1 & y = my1
xy = m2x1y1 = 9984 = 28 × 31 × 131
x – y = m x1 –y1 = 1⇒ one of them is odd and other is even.
m2 x1y1 =2831131
(i) m = 1
x1y1 = 28 31 131
x1 – y1= 1
No pair possible
(ii) m = 2
x1y1 = 26 × 31 × 131
No pair possible
(iii) m = 22
x1y1 = 24× 31 × 131
No pair possible
(iv) m = 23
x1y1 = 22× 31 × 131
x1 = 13,y1 = 12
(v) m = 24
x1y1 = 31 × 131
No pair possible
Answer is 104, 96
Congruence
31. Prove that for any natural number n the expression A = 2903n – 803n – 464n + 261n is divisible
by 1897
Sol Let n be a natural number. Note that 1897 = 7 × 271.
Consider the expression A = 2903n – 803n – 464n + 261n.
Now 2903 803 (mod 7) and 464 261 (mod 7).
Also 2903 464 (mod 271) and 803 261 (mod 271) .
Hence A is divisible by 7 as well as 271. Since (7,271) = 1,
we get that A is divisible by 1897.
32. Show that the square of an odd integer is 1 (mod 8)
Sol. x ± 1, ± 3 mod (8)
x2 1,9 mod 8
x2 1 mod 8
33. Show that the square of an integer is 0 or 1 (mod 3)
Sol. x 0, ± 1 mod (3)
x2 0,1 mod (3)
34. Show that the square of an integer is 0,1, – 1 (mod 5)
Sol. x 0, ± 1, ± 2 mod(5)
x2 0,1,4 mod (5)
x2 0, ± 1 mod (5)
35. If an integer n is co-prime to 6 then show that n2 1 (mod 24)
Sol. n ± 1, ± 5, ± 7, ± 11 mod (24)
n2 1,2,5,4,9,121 mod (24)
n2 1 mod (24)
36. Prove that n2 +1 is not divisible by 3 for any integer n
Sol. n 0, ± 1(mod3)
n2 + 1 1, 2 (mod 3)
Thus we never get n2 + 1 0 (mod 3)
37. Find the remainder when the number 1010 + 10100 + 101000 + … + 10100000000 is divided by 7.
Sol. 103 – 1 mod (7)
106 = 1 mod (7)
Also, 10n = 4 mod (6)
10n = 6k + 4
106k + 4 –10 4 mod (7)
1010 + 10100 + .. + 1010000000 32 4 mod (7)
38. What is the remainder of 1234567894 when it is divided by 8?
Sol. 12345789 5 mod (8)
(12345789)4 625 1 mod (8)
39. What is the remainder when 91990 is divided by 11?
Sol. 9 – 2 mod (11)
95 –32 1 mod (11)
91990 1 mod (11)
40. (i) Find the remainders when 250 and 4165 are divided by 7.
(ii) Find the remainder when 1373 + 143 is divided by 11.
Sol. (i) 23 1 mod (7)
250 = (23)16 ×22 4 mod (7)
4165 (–1)65 6 mod (7)
(ii) We note that 13 2 (mod 11)
1373 273 (25)14 23 (-1)148 (mod 11) 8(mod 11)
Thus 1373 8 (mod11) ..(1)
and 143 33 5 (mod 11) ..(2)
Adding the congruence’s (1) and (2), we get
1373 143 8 5 2 (mod11)
Hence 2 is the remainder when 1373 + 143 is divided by 11.
41. (a) Find all positive integers n for which 2n– 1 is divisible by 7.
(b) Prove that there is no positive integer n for which 2n + 1 is divisible by 7.
Sol. n can be 3k, 3k+1 or 3k+2
(i) When n=3k,
2n = 23k (1)k 1mod (7)
2n -1 0 mod (7)
Divisible for n=3k
(ii) When n=3k+1
2n = 23k+1 (1)k 2 2mod (7)
2n -1 1 mod (7) ⇒ not divisible
Similarly for n = 3k+2, not divisible
(b) n can be 3k, 3k+1 or 3k+2
2n 1, 2, 4 mod (7)
2n +1 2, 3, 5 mod (7)
Not divisible for any n.
42. Find the last two digits of 2999.
Sol. 210 24 mod (100)
220 76 mod (100)
(220)49 7649 mod (100)
2980 76 mod (100)
219 38mod (100)
2999 88 mod (100)
43. The six digit number abcdef satisfies the property that def abc is divisible 7. Prove that the
number itself is divisible by 7. Using this information attempt the following:
(a) State and prove a test for divisibility by 7
(b) State and prove a test for divisibility by 13
Sol.
abcdef 1000 abc def 6 abc def mod 7
(a) & (b). A number is divisible by 7 (or by 13) if and only if the following operation
gives us a number divisible by 7 (or by 13):
Starting at the right of the number, group the digits in threes and alternately add and subtract
the resulting numbers.
Example: 10345678. The operation described gives us 678 - 345 + 10 = 343 which
is divisible by 7. Thus, the original number is divisible by 7 as well.
They use the fact that 1000 -1 mod(7 and13).
44. Is it possible for the sum of the first several natural numbers to be 1989?
n n 1
Sol. 1989
2
n(n+1) = 3978
3978 3 mod (5)
n (n+1) 0,2,1 mod (5)
not possible
45. Prove that if you reverse the order of the digits in any natural number and subtract the result
from the initial number, then the difference is divisible by 9.
Sol. a1a2…….an-1an – anan-1 …a2a1
(a1 + a2 + ….+an-1 + an) – (an + an-1 + a2 + a1) mod 9
0 mod 9
46. Prove that a power of 2 cannot end with four equal digits.
Sol. Put 2n 0 mod (16) for n ≥ 4
Abbbb = 104 a + b (1111) b (1111) mod (16)
7b (mod 16)
≠ 0 mod (16) [ b = 2, 4, 6, 8]
Divisibility Tests
47. Find the last two digits of the following number 75 x 35 x 47 x 63 x 71 x 87 x 82
(a)50 (b) 70 (c) 30 (d) 90
Sol. As the product is divisible by 2 and 5 so last digit must be zero.
Also the product divisible by 25 so that last two digit must divisible by 25. Therefore second
last digit is 5. Second digit can not be zero as product has only one 2.
48. Tom multiplied two two-digit numbers on the blackboard. Then he changed all the digits to
letters (different digits were changed to different letters, and equal digits were changed to the
same letter). He obtained AB⤫CD =EEFF Prove that Tom made a mistake somewhere.
Sol. EEFF = 1100E + 11F
= 11[100E + F]
One of AB or CD contains multiple of 11 But in that case both the digits must be same which
is not possible.
49. Find at least one 100 digit number without zeroes in its decimal representation, which is
divisible by the sum of its digits.
Sol. Let us find, by trial and error, a number with the sum of its digits equal to 125.
Divisibility by 125 is determined by the last three digits of a number.
Thus, the number 111……..11599125 will do (the number beings with 94 ones)
50. How many four digit numbers with the two middle digits 97 are divisible by 45?
Sol. a97b = 1000a + 970 + b b mod (5)
b = 0, 5
(i) for b = 0
a970 a + 7 mod (9)
a=2
(ii) for b = 5
a975 a + 7 + 5 mod (9)
a + 12 mod (9)
a=6
2970, 6975
51. Find the smallest number written only with ones which is divisible by 333…33 (one hundred
3’s in the representation).
Sol. This number is written with three hundred l's. Indeed, it is divisible
by 3 and it is divisible by 111 ... 11 (one hundred 1's), which are co-prime. To prove
that this is the minimum number required we notice first that the required number
must have a number of digits divisible by 100-otherwise it would not be divisible
by 111 ... 11 (one hundred l's). Secondly, the numbers 111 ... 11 (one hundred l's)
and 111 ... 11 (two hundred l's) are not divisible by 3.
52. Prove that the number a1a 2 ....a n a n .....a 2 a1 is composite.
= 0 mod (11)
Perfect Square Numbers
53. In the following listed numbers, the one which must not be a perfect square is
(a) 3n 2 3n 3 (b) 4n 2 4n 4
(c) 5n 2 5n 5 (d) 7n 2 7n 7
(e) 11n 2 11n 11
Sol. 3n 2 3n 3 3 n 2 n 1 which is 32 when n = 2;
5n 2 5n 5 5 n 2 n 1 52 when n = 3 ;
2n 1 4n 2 4n 1 4n 2 4n 4 4n 2 8n 4 2n 2
2 2
For n 32 , n 2 10a b 100a 2 20ab b 2 . The number 100a2 + 20 ab has units digit 0
2
Sol.
and an even tens digit. If the tens digit carried from b2 is odd, then b = 4 or 6 only, so b2 = 16
or 36, i.e. the unit digit of n2 must be 6.
56. Is it possible to write a perfect square using only the digits (a) 2,3,6; (b) 1,2,3 exactly 10 times
each?
Sol. Every square of the form 9k, 9k+1, 9k+4 or 9k+7
(a) x 2 10 2 3 6 2 mod 9
Diophantine Equation
65. (CHINA/1990) An integer solution of the equation 1990x –1989y = 1991 is
(A) x = 12785; y = 12768; (B) x = 12785; y = 12770;
(C) x = 11936; y = 11941; (D) x = 13827; y = 12623.
Sol. The given equation implies y 1 (mod10), only C is possible. By checking (C) is a solution.
Thus the answer is (C).
A B 17
66. (SSSMO(J)/2002) Two positive integers A and B satisfy Find the value of
11 3 33
A2 + B2.
3A 11B 17
Sol. The given equality yields , so It is easy to find the special solution (2,1)
33 33
for(A,B). Since the general solution is A = 2 + 11t, B = 1 – 3t, t ,
A ≥ B and B ≥ 1 implies that t = 0 is the unique permitted values of t, so (2,1) is the unique
desired solution for (A,B). Thus A2 + B2 = 5.
67. A dragonfly has six feet and a spider has 8 feet. Given that a certain group of dragonflies and
spiders have in total 46 feet, find the number of dragonflies and the number of spiders.
Sol. Let x and y be the numbers of dragonflies and spiders respectively. Then
6x + 8y = 45 or 3x + 4y = 23
It is clear that x ≠ 0 and y ≠ 0 since 46 is neither divisible by 6 nor by 8.
4y < 23 implies y ≤ 5,
so corresponding to y = 1,2,3,4,5,6 the equation gives
3 4y
x
3
Can be positive integer at y = 2 or y = 5 only x = 5 if y = 2 and x = 1 at y = 5.
So the answer is that 5 dragonflies and 2 spiders or one dragonfly and 5 spiders
68. If a four digit number and the sum of its all digits have a sum 2006, find the four digit number.
Sol. Let the four digit number be abcd 1000a 100b 10c d
Then 1001a + 101b + 11c + 2d = 2006
Which implies that a = 1 or a = 2
For a = 1,
⇒101b + 11c + 2d = 1005.
Since 101 × 8 + 11 × 9 + 2 × 9 = 925 < 1005,
Therefore b = 9, so 11c + 2d = 96 . 11 × 7 + 2 × 9 = 95 < 96 and c < 9 then gives c = 8,
So 2d = 8 ie. D = 4
Thus, the four digit number is 1984.
For a = 2
101b + 11c + 2d = 4.
b=c=0&d=2
Thus, the four digit number is 2002.
69. (Ancient Question) In an ancient chicken market, each rooster is sold for 5 coins, each hen for
3 coins and each chick for 1/3 coins. Someone has 100 coins to buy 100 chickens, how many
roosters, hens and chicks can a man purchase out of a total cost of 100 coins?
Sol. Let the numbers of roosters, hens and chicks that the buyer bought be x, y, z respectively
then
1
5x 3y z 100
3
x + y + z = 100
Or
15 x + 9y + z = 300, (i)
x+y+z = 100 (ii)
(i) – (ii) yields
14x + 8y = 200 or, equivalently, 7x+ 4y = 100 (v)
It has special solution x0 = –100, y0 = 200,
So the general solution for (x, y) is x = –100 + 4t,
y = 200 –7t, where t is any integer.
The equation (v) indicates that 4 | x, so x maybe 0, 4, 8, 12, 16, 20 only.
Correspondingly, t = 25, 26, 27, 28, 29, 30 only. Since y ≥ 0 implies
t ≤ 200/7 < 29, so t = 25,26,27,28, only i.e. y = 25, 18, 11, 4.
Thus x + y is 25,22,19,16, respectively so z = 75,78,81,84 correspondingly.
Thus, the solutions for (x, y, z) are (0, 25, 75), (4, 18, 78), (8, 11, 81), (12, 4, 84)
70. Solve the equation 3x + 5y = 7 in integers.
Sol. 3(-1) + 5 (2) = 7.
x 1 5k
y 2 3k
Where k is an arbitrary integer.
71. Solve the equation 1990x – 173y = 11 in integers.
Sol. The coefficients in the equation are large enough to make it difficult to find a particular
solution. However, it is not hard to see that the numbers 1990 and 173 are relatively prime,
and this helps.
The greatest common divisor (gcd) of these numbers can be represented as 1990m – 173n for
some integers m and n
Euclid’s algorithm gives us m = 2, n = 23.
Hence x0 = 2x11 =22, y0 = 23x11 = 253 is a solution to the equation 1990 – 173y = 11
x = x0 + 173k = 22 + 173k,
y = y0 + 1990k= 253 + 1990k, where k is any integer
72. Find all integer roots of the equations 21x + 48y = 6.
Sol. 21x + 48y = 6 ⇒ 7x +16y = 2
The solutions are of the form {x = 16k –2, y = –7k + 1}, where k takes on all integer values
73. Find all integer roots of the equation x2 + y2 =4z – 1
Sol. It is clear that one cannot transform the equation to a more tractable type; it is also impossible
to analyze all the appropriate triples of integers. This new representative of our “Diophantine
zoo” is remarkable in that it has no integer solutions. Indeed, Which remainders can perfects
squares give when divided by 4? The choice of modulo 4 was determined by the form of the
given equation).
The only possible remainders are 0 and 1. Since the sum of two such remainders cannot give
remainder –1, we have no solutions for this equation.
d2 and z 2 are both even so (d2, 3) = 1 and d2 |z2, i.e. d| z. Let z = dz1, then x12 y12 3z12 . Thus
(x1, y1, z1) ≠ (0; 0; 0) is an integer solution of the given equation also, and x; y; z are relatively
prime pair wise. Hence, it suffices to show that the given equation has no non-zero integer
solutions (x; y; z) with (x; y) = 1.Suppose that (x; y; z) is such a solution, then x; y cannot be
divisible by 3 and x2 + y2 2 (mod 3), a contradiction. Thus, the conclusion is proven.
1260
79. (CHINA/2003) Given that is a positive integer, where a is a positive integer. Find
a a6
2
the value of a
Sol. a2 + a –6 = (a–2) (a+3) implies that (a-2) and (a+3) are both factors of 1260, and their
difference
is 5. Since 1260 = 22 x 32 x 5 x 7, where the pairs of two factors with the difference 5 are
(1,6),(2,7),(4,9),(7,12) and (9,14). Thus
a –2 = 1,2,4,7,9 i.e. a = 3,4,6,9,11
80. (CHINA/2001) How many number of pairs (x; y) of two integers satisfy the equation x2 –y2 =
12?
Sol. The original equation yields (x – y) (x + y) = 12. Since x – y and x + y have the same parity,
and
12 = 2 × 6 = (–2) × (–6), so there are four systems of simultaneous equations :
x y 2, x y 6, x y 2, x y 6,
x y 6, x y 2, x y 6, x y 2,
From which four solutions are obtained i.e. (4, 2): (4,–2) ; (–4,–2) and (–4,2).
81. (SSSMO(J)/2004) Let x; y; z and w represent four distinct positive integers such that
x 2 y2 z 2 w 2 81 . Find the value of xz + yw + xw + yz.
Sol. The given equations give (x–y) (x+y) = 34 and (z–w) (z+w) = 34 .
Since x –y < x + y and z –w < z + w
If two of the four numbers x –y, x + y, z –w, z + w have equal values, then the other two
must be equal also, and it must be the case that x –y = z –w and x + y = z + w, but then it
implies that
y –w = x –z = w –y, i.e. y =w, a contradiction. Thus x –y, x + y, z –w, z + w must be four be
four distinct values and further they are the four distinct factors of 34 with x + y , z + w
being the larger two factors and x – y, z –w being the smaller two. Since 34 = 3 x 1 = 33 x 3,
so
xz + yw + xw + yz = ( x+y) (z+w) = 34 .33 = 37 = 2187
82. (CHINA/2003) Find the number of non-zero integer solutions (x; y) to the equation
15 3 2
2
2
x y xy x
Sol. By eliminating the denominators, the given equation becomes
15 + 3x – 2xy = 2x2y
2x2 y– 3x + 2xy – 15 = 0,
(2xy –3) (x+1) = 12 = 1x12 = –1 × –12 = 3.4 = (–3) × (–4)
Since 2xy –3 is odd, hence there are four possible systems :
2xy 3 1, 2xy 3 1,
x 1 12, x 1 12,
2xy 3 3, 2xy 3 3,
x 1 4, x 1 4,
The first second and the fourth system have no integer solutions, the third system has the
solution x = 3, y = 1. Thus there is exactly one integer solution x = 3, y = 1
x 14
83. CHINA/2001) Find the number of positive integer solutions to the equation 3
3 y
Sol. Simplify the equation to the form xy + 42 = 9y, then
42
y
9x
y is a positive integer implies that 9 –x is a positive divisor of 42, so
9–x = 1, 2, 3, 6, 7, i.e. = 8, 7, 6, 3, 2
Correspondingly, y = 42, 21, 14, 7, 6.
By checking the give solutions satisfy the original equation, so the answer is 5.
2 3 1
84. (CHINA/2001) Find the number of positive integer solutions of the equation
x y 4
Sol. The given yields 8y –12x = xy, so xy + 12x –8y –96 = –96, i.e.
(x –8) (y + 12) = –96
Since y + 12 ≥ 13 and ––7 ≤ x – 8 < 0, there are give possible cases to be considered:
x 8 1, x 8 2,
y 12 96, y 12 48, x 8 3
x 8 4 x 8 6 y 12 32
y 12 24, y 12 16,
From them five positive integer solutions are obtained easily:
(7, 84), (6, 36), (5, 20), (4, 12), (2, 4)
Thus the answer is 5
85. (SSSMO/2003) Let p be a positive prime number such that the equation x 2 px 580p 0
has two integer solutions. Find the value of p.
Sol. Suppose that the two integral roots of the given equation are m and n. Then by Viete
Theorem,
m + n = p, (i)
mn =–580 p (ii)
Therefore one of m and n is divisible by p. Without loss of generality, we assume that p |m.
Then m = kp for some integer k.
(i) Yields n = (1–k)p. then
(ii) Yields (k –1) kp2 = 580 p, i.e. (k–1) kp = 580 = 4 × 5 × 29.
Thus p = 29
86. (CHINA/1993) The number of positive integer solutions (x, y, z) for the system of
xy xz 255
simultaneous equations is:
xy yz 31
(A) 3; (B) 2; (C) 1; (D) 0.
Sol. The second equation leads to y = 1, x + z = 31 at once.
By substituting them into the first equation it follows that
x(1+31 - x) = 225
x2 – 32x + 255 = 0,
(x–15) (x –17) = 0
x1 = 15, x2 = 17
Thus the solutions are x = 15, y = 1, z = 16 and x = 17, y = 1, z = 14. The answer is (B)
93. Let p be prime, and suppose p does not divide some number a. Prove that there exists a natural
number b such that ab 1 (mod p).
Sol. Let us set b = ap-2.
Then , ab = ap–1 1 (mod p)
n 3
94. Show that r r ! is divisible by n if and only if n is prime.
r 1
n 3 n 3 n 3
Sol. r r ! (r 1 1) r ! r 1! (r)! (n 2)! 1
r 1 r 1 r 1
that p | a p 1 b p 1 .
Sol. 26 ≡ -25(mod89)
⇒ 212 ≡ 625 ≡ 2(mod89)
⇒ 211 ≡ 1(mod89)
⇒ 244 ≡ 1(mod89)
26 ≡ -33(mod97)
⇒ 212 ≡ 1089 ≡ 22(mod97)
⇒ 224 ≡ 484≡ -1(mod97)
⇒ 248 ≡ 1(mod97)
LEVEL II
102. The sum of two positive integers is 52 and their LCM is 168. Find the numbers.
Sol. Let the positive integers be a and b and a ≤ b.
Let d = (a, b) so that a = dm, b = dn and (m, n) = 1.
Thus (i) a + b = d(m+ n) = 52 = 4 × 13 and (ii) I.c.m. of a,b = dmn = 168 = 4 × 2 × 7 × 3.
But ((m + n)d, mnd) = d, since (m, n) = 1.
Hence by (i) and (ii), d = 4. So m + n = 13 and mn = 42.
Hence, m = 6,n = 7 and a = dm = 24, b = dn = 28.
103. An infinite sequence of positive integers (an) is such that for any two positive integers i j
14
Since 14 = (2 × 7) = 45t+3.710t+6 which is divisible by 4, so 1414 0 (mod 4)
14
1414 25K 11 where K is a positive integer, then
25 K + 11 0 (mod 4)
K–10 (mod4)
K 1 (mod 4), i.e. K = 4m + 1 for some m∊N.
14
1414 = 25 (4m + 1) + 11 = 100m + 36
14
Thus the last two digits of 1414 are 36.
116. (SSSMO(J)/2001) Write down the last four digits of the number 7128
Sol. Here the recursive method is effective. Start from 74 = 2401, then
7 4 2401 2401 mod 104
p p q q p q q q q q q q (mod p q)
p p
q q q 2 1 (mod p q)
Sol. (𝑎 + 𝑏) ≡ (𝑎 + 𝑏) ≡ (𝑎 + 𝑏 )(𝑚𝑜𝑑𝑝)
119. Let ‘a’ be a rational number. Show that if 11 11 11a 2 1 is an odd integer, then it must be a
perfect square.
Sol. As 11 11 11a 2 1 is an odd integer, 11a2 + 1 must be the square of a rational number b of
the form b = c /11 where c is an integer.
Now 11a2 + 1 = c2/112, hence ‘a’ can have 11 in the denominator. Let a = d/11. Then 11d2
+112 = c2. Hence 11 |c, i.e. b is an integer and 11a2 +1 = b2. Now
d2
11 2 1 b2 i.e. d 2 11 b 2 1 , so that 11 |d. Hence ‘a’ is an integer.
11
If 11 11 11a 2 1 is an odd integer, then 11a2 + 1 must be the square of an even integer. Let
11a2 + 1 = 4m2, so that 11a2 = (2m –1) 2m+1)
Now (2m –1, 2m+1) = 1 hence, either 2m – 1 = 11e2 and 2m + 1 = f2 or 2m –1 = e2 and 2m
+ 1 = 11f2.
In the first case, f2 – 11e2 = 2 , so that f2 2 (mod 11) .
This is impossible, as the only squares (mod 11) are 1,3,4,5,9.
Hence 2m – 1 = e2 and 2m + 1 = 11f2 Hence
k 0
p 1 p 1
k 0 k 0
1
k
⇒ 2p 1 k 3k not multiple of 5. Therefore 2p + 3p is not a perfect power.
k 0
44444444 104
4444
Sol.
1017776
A < 177760
B<6×9
B < 59
Max (Sum of digits of B ) = 4 + 9 = 13
44444444 7 mod (9)
Sum of digit of B = 7 only possibility
125. Let a, b, c, d be distinct digits. Prove that cdcdcdcd is not divisible by aabb
Sol (i) 2p
p 0 0 1 1 ........... p 1 p 1 p p
p p p p p p p p
⇒ 2(mod p)
2p
p
p
0
p
0
p
1
p
1
p
p
p
p
(ii) 2p
p 0 0 1 1 ........... p 1 p 1 p p
p p p p p p p p
⇒ 2(mod p )
2p
p
p
0
p
0
p
1
p
1
p
p
p
p
2
(iii) pa
pb
r1 r2 ...... ra pb
.... , 0 r
p
r1
p
r2
p
ra m p
mod p
pa
pb
a
b
x 2 x 2 y 1 x 2 x 1 x 1
2
2
r100 mod1000
relatively prime, x and (k2 – 1) x + 1 both are perfect square numbers, so x is perfect square.
37 2 mod 5
37 27 3mod 5
37 27 5m 3
142. Prove that the product of the last digit of the number 2n and of the sum of all its digit but the
last is divisible by 3.
Sol. n = 4k, 4k +1, 4k + 2, 4k + 3
24k+1 2
24k+2 4
24k+3 8
24k 6
(i) For n = 4k last digit is 6, divisible by 3.
(ii) For n = 4k + 1, 4k + 2, 4k + 3
2n (–1)n mod (3)
For n = 4k + 1
2n –1 mod (3)
2n – 2 0 mod (3)
Sum of digits of (2n – 2) = Sum of digits of 2n – unit digit
⇒ Sum of digits of 2n – unit digit divisible by 3.
(iii) For n = 4k + 2
2n 1 mod (3)
2n 4 mod (3)
2n –4 0 mod (3)
(iv) n = 4k+ 3
2n –1 mod (3)
2n 8 mod (3)
2n– 8 0 mod (3)
143. Prove that for any positive integer n, n4 + 2n3 + 2n2 + 2n + 1 is not a perfect square
Sol. n4 + 2n3 + n2 + 2n + 1
n2 (n + 1)2 + (n + 1)2 = (n + 1)2 (n2 + 1)
let n2 +1 = p2
p2 – n2 = 1
p + n = 1, p – n = 1
p = 1, n = 0 (contradiction)
OR
(n2 + n)2 < n4 + 2n3 + 2n2 +2n + 1< n4 + 2n3 + 3n2 + 2n + 1 = (n2 + n + 1)2
144. Show that if 2n + 1 and 3n + 1 are both perfect squares then 40|n.
Sol. Put 2n+ 1 = a2 and 3n + 1 = b2.
Since 2n + 1 is a perfect square then n is divisible by 4.
Hence , 3n + 1 1 (mod8).
Hence 8|n.
Since, the square of an integer is 0, 1, – 1 (mod 5).
We get 2n + 1 0, 1, –1 (mod 5) and 3n + 1 0, 1 – 1 (mod 5).
If 2n + 1 – 1 (mod5) then 3n + 1 3 (mod5), a contradiction.
Hence, 2n + 1 1 (mod 5) and 5 |n. Since (8,5) = 1 we get 40|n
145. Call a natural number n “convenient”, if n2+ 1 divisible by 1000001. Prove that among the
number 1,2,……1000000 there are evenly many “convenient” numbers.
Sol. Let x2 –1 mod (106 + 1)
(106 + 1 –x)2 = (106 + 1)2 – 2 (106 + 1)x + x2 –1 mod (106 + 1)
if x is convenient then 1000001 - x is also convenient
146. The sum of the numbers a, b and c is divisible by 30. Prove that a5 + b5 + c5 is also divisible
by 30.
Sol. x5 – x = (x-1)(x)(x+1)(x2 +1)
In three consecutive numbers, there is at least one number is multiple of 3 and one is
multiple of 2
x = 5k, 5k+1, 5k+2, 5k+3, 5k+4
It can be easily observed that, for x = 5k, 5k+1 and 5k+4, (x-1)(x)(x+1)(x2 +1) divisible by 5.
For x = 5k+2 & 5k+3, x2 +1is divisible by 5.
⇒ x5 – x is divisible by 30.
⇒ a5 + b5 + c5 – a – b – c is divisible by 30.
Given a + b + c is divisible by 30 therefore a5 + b5 + c5 is also divisible by 30.
147. Prove that for each prime p the difference
111…11222…2233…33…88…88999…99 – 123456789 (in the first number each non-zero
is written exactly p times) is divisible by p.
Sol. For p = 2 and p = 3, this can be easily proved.
For p > 3
111 … 11222 … 2233 … 33 … 88 … 88999 … 99 = (10 − 1)(10 + 2 × 10 +
⋯ . +9)
By Fermat theorem: 10p 10 (mod p), 102p 102 (mod p), 108p 108 (mod p)
(10 − 1)(10 + 2 × 10 + ⋯ . +9) ≡ (10 − 1)(10 + 2 × 10 + ⋯ . +9)(modp)
≡ (10 − 1)(123456789)(modp)
9(111 … 11222 … 2233 … 33 … 88 … 88999 … 99– 123456789)
≡ (10 − 10)(123456789)(modp)
≡ 0 (modp) (by Fermat theorem)
As p is co-prime to 9 therefore given number is divisible by p.
LEVEL III
148. (USSR/1962) Prove that the only solution in integers of the equation x 2 y2 z 2 2xyz is x
= y = z = 0.
Sol. Since the sum of the squares is to be an even number, it may be reasoned that either all three
of the numbers x2, y2, z2 (hence also x, y, z) are even, or one of them is even and two are odd.
But in the last event, the sum would be divisible only by 2 and product 2xyz would be divisible
by 4. Hence we must conclude that x, y and z ,must all be even : x = 2x1, y = 2y1, z = 2z1. If
we substitute these into the given equation and divisible through by 4, we obtain
x12 y12 z12 4x1 y1z1
As above, this equation implies that x1, y1 and z1 are all even numbers, and so can write
x1 = 2x2, y1= 2y2, z1 = 2z2, which yields the equation
x 22 y 22 z 22 23 x 2 y 2 z 2
Which in turn implies that x2, y2 and z2 are all even numbers, also continuation of this process
leads to the conclusion that the following set of numbers is all even:
x, y, z
x y z
x1 , y1 , z1 ;
2 2 2
x y z
x2 , y3 , z 2 ;
4 4 2
x y z
x3 , y3 , z 3 ;
8 8 8
x y z
xk k
, yk k , zk k ;
2 2 2
(The numbers xk, yk, zk satisfy the equation x 2k y 2k z 2k 2k 1 x k y k z k ) .
But this possible only if x = y = z = 0.
149. (MOSCOW/1940) Find all three-digit numbers such that each is equal to the sum of the
factorials of its own digits.
Sol. Let abc 100a 10b c be desired three digit number 7! = 5040 indicates that a, b, c ≤ 6,
Sol. By rewriting the equation in the form x2 – (2+y) x +y2 – 2y = 0, and considering it as a
quadratic equation in x (y is considered as a constant in its range), then the equation has
integer solutions in x , so its Discriminant is a perfect square.
2 y 4 y 2 2y 4 12y 3y 2 16 3 y 2 n 2
2 2
16
For some integer n, it follows that y 2
2
,so
3
4 4
3 3 y2 33
3 3
Thus, y maybe 0, 1, 2, 3, 4
When y = 0, then x2 – 2x = 0 so x = 0 or 2
When y = 1 or 3, then = 13 which is not a perfect square
When y = 2, then x2 – 4x = 0, so x = 0 or 4
When y = 4, then x2 – 6x + 8 = 0, so x = 2 or 4
Thus, there are a total of 6 desired pairs
151. (BMO/1991) Prove that the number 3n + 2 × 17n, where n is a non-negative integer, is never
a perfect square.
Sol. It is needed to consider several possible cases as follows :
Let A = 3n + 12 × 17n
(i) When n = 4m where m is non-negative integer, then
3n + 2.17n = (34)m + 2(174)m = 81m + 2.83521m 3 (mod 10)
So A is not a perfect square
(ii) When n = 4m + 1 where m is non negative integer, then
3n + 2.17n = 3.81m + 34.83521m 7 (mod 10)
So A is not perfect square
(iii) When = 4m + 2 where m is a non negative integer, then
3n +2.17n = 9.81m + 578.83521m 7 (mod 10)
So A is not a perfect square
(iv) When n = 4m + 3 where m is non negative integer, then
3n + 2.17n = 27.81m + 9826.83521 3 (mod 10)
So A is not perfect square
Thus A is never a perfect square
152. (IMO/1986) Let d be any positive integer not equal to 2, 5, or 13. Show that one can find
distinct a, b in the set {2, 5, 13, d} such that ab – 1 is not a perfect square.
Sol. (IMO/1986) Let d be any positive integer not equal to 2, 5 or 13. Show that one can find
distinct
a, b in the set {2, 5, 13, d} such that ab –1 is not a perfect square
Since 2.5 –1,2.13 –1 and 5.13 –1 are all perfect squares, it is necessary to show that at least
one of 2d –1, 5d –1 and 13d–1 is not a perfect square.
(i) When d is even , i.e. d = 2m for some positive integer m, then 2d –1 = 4m –1 is not a
perfect square (since its remainder modulo 4 is 3)
(ii) when d = 4m + 3 for some non negative integer m , then
5d –1 = 20m + 14 = 4 (5m + 3) + 2 2 (mod4)
So 5d – 1 is not a perfect square
(iii) When d = 4m + 1 for some non-negative integer m, then 5d –1 = 20m + 4 =4(5m+1),
13d –1 = 52m + 12 = 4 (13m + 3)
In case that m 1 or 2 (mod 4), then 5m + 1 2 or 3 (mod 4) implies that 5m + 1 is not a
perfect square, 5d –1 is not a perfect square.
In case that m 0 or 3 (mod 4), then 13m + 3 3 or 2 (mod 4) implies that 13m + 3 is not a
perfect square, 13d –1 is not a perfect square.
Thus, in any case at least one of three numbers 2d –12, 5d –1, 13d –1 is not a perfect square
153. (KIEV/1980) Multiply some natural number by 2 and then plus 1, and then carry out this
operation on the resultant number, and so on. After repeating 100 times of such operations,
whether the resulting number is divisible by (i) 1980? (ii) 1981?
Sol. (i) Since every time the number obtained after operation is always odd, so it cannot be
divisible by 1980
(ii) Let the original natural number be x – 1. Then after the first operation the number
becomes
2(x–1) + 1 = 2x –1
The number obtained after the second operation then is 2(2x–1) + 1 = 22 x–1
In general, if the number obtained after kth operation is 2k x –1, then the number obtained
Afte k + 1th operation is
2 2k x 1 1 2 k 1 x 1
So the number obtained after 100 times of operations is 2100 x –1. Since (2100 ,1981) = 1, so
the
Diophantine equation
2100x – 1981 y = 1
Must have integer solution (x0,y0), and its general solution is
x x 0 1981t, y y 0 2100 t, t
Regardless of the size of |x0| and |y0| , it is always possible to let t0 be large enough, such that
x0 + 1981t0 > 0 and y = y0 + 2100 t0 > 0
Thus, is true that 2100 x –1 = 1981y for this solution (x,y) i.e. 1981| (2100 –1)
154. (AIME II 2012). For a positive integer p, define the positive integer n to be p-safe if n differs
in absolute value by more than 2 from all multiples of p. For example, the set of
10-safe numbers is 3, 4, 5, 6, 7, 13, 14, 15, 16, 17,23 …… Find the number of positive integers
less than or equal to 10,000 which are simultaneously 7-safe, 11-safe, and 13-safe.
Sol. We see that a number is -safe if and only if the residue of is greater than and
less than ; thus, there are residues that a -safe number can have.
Therefore, a number satisfying the conditions of the problem can have different residues
, different residues , and different residues . The Chinese
Remainder Theorem states that for a number that is (mod b), (mod d), (mod f) has one
solution if . For example, in our case, the number can be: 3 (mod 7), 3
(mod 11), 7 (mod 13) so since =1, there is 1 solution for n for this case of
residues of . This means that by the Chinese Remainder Theorem, can
have different residues mod . Thus, there are values
of satisfying the conditions in the range . However, we must now remove
any values greater than that satisfy the conditions. By checking residues, we easily see
that the only such values are and , so there remain 958 values satisfying the
conditions of the problem.
155. (AIME/1986) In a parlor game, the magician asks one of the participants to think of a three
digit number abc where a; b, and c represent digits in base 10 in the order indicated. The
magician then asks this person to form the numbers acb, bca, bac, cab and cba to add these
five numbers, and to reveal their sum, N . If told the value of N , the magician can identify the
original number, abc . Play the role of the magician and determine the abc if N = 3194.
Sol. Let S N abc abc acb bca bac cab cba , then
S 100a 10b c 100a 10c b 100b 10a c
= 222 14 86 abc.Hence.
(i) a b c 14;
(ii) 86 abc is divisible by 222, i.e. abc 86 222n for some positive integer n
1085
Since 222n 999 86 1085, so n 5 ,hence n may be one of 1,2,3,4
222
When n = 1 then abc = 222 – 86 = 136, the condition (i) is not satisfied
When n = 2 then abc = 444 – 86 = 358, the conditions (i) and (ii) are satisfied
When n = 3, then abc = 666 – 86 = 580, the condition (i) is not satisfied
When n = 4 then abc = 888 – 86 = 802, the condition (i) not satisfied
d2 (x12 + y12) = z2
x12 + y12 = z12
Now we solve for (x, y) =1
Square of any natural number is of the form = 4k, 4k+1
Both x & y cannot of the form 4k, as both are co-prime.
Both x & y cannot of the form 4k + 1, as x2 + y2 = 4(k + m) + 2 cannot be equal to any square.
⇒ One is of form 4k and other is 4m + 1.
⇒ xy = (4k)(4m+1)…..(i)
Similarly xy = (3p)(3q+1)…..(ii)
⇒ xy is multiple of 12.
n3 1
159. (IMO/1994) Determine all ordered pairs (m; n) of positive integers such that is an
mn 1
integer.
n3 1
(i) When n = m, then is an integer.
n2 1
n3 1 n3 1 n 2 n 1 1
From 2 n
mn 1 n 1 n 1 n 1
Therefore n = 2,i.e n = m = 2 is a solution
(ii) When n ≠ m, since m3 and mn –1 are relatively prime and that
m3 n 3 1 mn
3
1 m3 1
mn 1 mn 1 mn 1
m3 1
= mn
2
mn 1
mn 1
n3 1 m3 1
So and are either both integers or both non integers. Therefore, it suffices to
mn 1 mn 1
discuss the case m > n below.
n3 1 2
For n 1, is an integer, therefore m = 2 or 3
mn 1 m 1
n3 1
For n ≠ 2 , letting k, then
mn 1
n3 + 1 = k (mn–1)
1 k. (–1) (mod n)
k –1 (mod n),
n3 1
i.e. there exists a positive integer p such that pn 1
mn 1
n3 1 n 2 n 1 1
pn 1 n
n 1
2
n 1 n 1
1
p 1 n 1
n 1
p 1
n3 1
n 1
mn 1
n2 1 2
m n 1
n 1 n 1
i,e, n = 2 or 3, hence m = 5 for both cases
Thus, the solutions (m,n) are the pairs
(2,2), (2,1) (3,1), (5,2), (5,3), (1,2), (1,3) (2,5), (3,5)
160. (USAMO/1975) Determine all integral solutions of a 2 b 2 c 2 a 2 b 2
Sol Let (a; b; c) be an integer solution. We show that a; b and c must all be even by taking modulo
4 to both sides of the equation. There are three possible cases to be considered:
Case 1: When a; b; c are all odd, then a 2 b 2 c 2 3 (mod 4) whereas a2b21 (mod 4), so it
is impossible.
Case 2: When two of a; b; c are odd and the other is even, then a 2 b 2 c 2 2 (mod 4) ,
whereas a2b2´ 0 or 1 (mod 4), so it is impossible also.
Case 3: When two of a; b; c are even and the other is odd, then a 2 b 2 c 2 1 (mod 4),
whereas a2b2´ 0 (mod4) so it is impossible also.
Thus a, b, c are all even. Let a 2a1 , b 2b1 ,c 2c1 , this leads to the relation
Since 4a12 b12 0 (mod 4) and each a12 , b12 , c12 has reminder 0 or 1 modulo 4, a1, b1, c1 must all
be even also. Then a1 = 2a2, b1 = 2b2.c1 = 2c2. This leads to relation
a 22 b 22 c 22 4a 22 b 22
The process can be continued to any times, since we have the relation
a 2n b 2n c 2n 4 n a 2n b 2n for any natural n.
a b c
Hence a n n
, b n n , c n n are integers for any natural number n, i.e., a = b = c = 0
2 2 2
Thus, the equation has only zero solution.
Note: This example is one of Fermat’s method of infinite decent.
161. (IMO/Shortlist/1989) Given the equation
4x 3 4x 2 y 15xy 2 18y3 12x 2 6xy 36y 2 5x 10y 0 find all positive integer
solutions.
Sol. By factorization, the given equation can be factorized as follows :
4x 3 4x 2 y 15xy 2 18y3 12x 2 6xy 36y 2 5x 10y
x 2y 2x 3y 6 2x 3y 5
2
=
x 2y 2x 3y 1 2x 3y 5 ,
So x 2y 2x 3y 1 2x 3y 5 0
element 0. abcdefgh of S can be uniquely paired with a distinct element a 'b ' c ' d 'e 'f 'g ' h ' of
S. We also observe that
0. abcdefgh + 0. a 'b 'c 'd 'e 'f ' g 'h ' = 0.99999999 = 1.
99990000
Hence the sum of elements in s is 49995000
2
166. (RMO 2015) Find all three digit natural numbers of the form (abc)10 such that (abc)10, (bca)10
and (cab)10 are in geometric progression. (Here {abc)10 is representation in base 10.
Sol. Let its write
x = (a l02) + (b l0) + c, y = (b x l02) + (c l0) + a, z = (c 102) + (a 10) + b.
We are given that y2 = xz. This means
((b 102) + (c 10) + a)2 = ((a 102) + (b 10) + c) ((c 102) + (a 10) + b).
We can solve for c and get
10b 2 a 2
c .
10a b
If a, b, c are digits leading to a solution, and if d = gcd(a, b) then d/c. Consequently, we may
assume that gcd(a, b) = 1. Now
999a 2
c 10b 100a ,
10a b
showing that 10a – b divides 999a2. Since a, b are relatively prime, this is possible only if 10a
– b is a factor of 999. It follows that 10a – b takes the values 1, 3, 9, 27, 37. These values lead
to the pairs
(a, b) = (l,9),(1, 7),(l, l),(4, 3).
We can discard the first two pairs as they lead to a value of c > 10. The third gives the trivial
solution (111,111,111). Taking d = 2,3,4,5,6,7,8,9, we get 9 solution:
(abc)10 = 111, 222,333, 444,555, 666, 777, 888, 099.
The last pair gives c = 2 and hence the solution (432,324, 243). Another solution is obtained
on multiplying by 2: (864,648,486).
Thus we have
(abc)10 = 111, 222, 333, 444, 555, 666, 777, 888, 999,432,864.
167. (2020 PRMO KV) If x and y are positive integers such that (x – 4)(x – 10) = 2y, find the
maximum possible value of x + y.
Ans. 16
Sol. (x – 4) (x – 10) = 2y
Let 2y = 2a .2b
(x – 4)(x – 10) = 2a .2b
Let x – 4 = 2a
x – 10 = 2b
Add
(2x – 14 = 2a + 2b) ...(i)
Subtract both
6 = 2a – 2b
a = 3, b = 1 (only value)
2x – 14 = 23 + 21
2x – 14 = 10
2x = 24
x = 12
2y = 2a .2b
2y = 23 21
2y = 24
y=4
x + y = 12 + 4=16
168. (2020 PRMO KV) Find the largest positive integer N such that the number of integers in the
set {1,2,3……..N} which are divisible by 3 is equal to the number of integers winch are
divisible by 5 or 7 (or both).
Ans. 65
Sol. {1,2,3.....N}
N
No. of integers divisible by 3 =
3
N
No. of integers divisible by 5 =
5
N
No. of integer divisible by 7 =
7
N
No. of integers divisible by 35 =
35
n(5 7) = n(5) + n(7) – n(5 7)
N N N
5 7 35