IOQM - Practice Sheet-3 - (Answer Key & Sol.)
IOQM - Practice Sheet-3 - (Answer Key & Sol.)
Corporate Office : Aakash Tower, 8, Pusa Road, New Delhi-110005 Page [3]
IOQM (2024) Practice Sheet-3
Solution
So, there are f(100) = 40 coprime numbers to 100 a 12 × 10! 12 × 6 7 (mod 13)
in {101, 102, …, 200}. So the answer is 40 + 40 = 6. Answer (12)
80. The solutions are (0, 1, 83) and (1, 2, 3) up to
4. Answer () permutation. First, we do the case where at least
First notice that 437 = 19 × 23 and so it suffices one of a, b, c is 0. WLOG, say a = 0. Then we
to prove that have 1 + bc = 84 ⇒ bc = 83. As 83 is prime, the
18! –1 (mod 19), (mod 23) only solution is (0, 1, 83) up to permutation.
Otherwise, we claim that at least one of a, b, c is
Corporate Office : Aakash Tower, 8, Pusa Road, New Delhi-110005 Page [4]
IOQM (2024) Practice Sheet-3
equal to 1. Otherwise, all are at least 2, so (1 + last two digits when squared: 0, 1, 25, 76. We can
ab)(1 + bc)(1 + ac) ≥ 53 > 84. So WLOG, set now go backwards, repeatedly solving equations
a = 1. We now need (b + 1)(c + 1)(bc + 1) = 84. of the form x2 n (mod 100) where n is a number
Now, WLOG, say b ≤ c. If b = 1, then (c + 1)2 = that already satisfies the condition.
42, which has no solution. If b ≥ 3, then (b + 1)(c 0 and 25 together gives all multiples of 5, for 20
+ 1)(bc + 1) ≥ 42 10 = 160 > 84. So we need b = numbers in total.
2. Then we need (c + 1)(2c + 1) = 21. Solving this 1 gives 1, 49, 51, 99, and 49 then gives 7, 43, 57,
gives c = 3, for the solution (1, 2, 3). 93. Similarly 76 gives 24, 26, 74, 76 and 24 then
Therefore, the answer is 6 + 6 = 12. gives 18, 32, 68, 82 for 16 numbers in total.
7. Answer (42)
Hence there are 20 + 16 = 36 such numbers in
The sum ab + bc + cd + da = (a + c)(b + d) = total.
437 = 19 23, so {a + c, b + d} = {19, 23} as 10. Answer (52)
having either pair sum to 1 is impossible. Then
Note that the remainder when n2 is divided by
the sum of all 4 is 19 + 23 = 42. (In fact, it is not
5 must be 0, 1 or 4. Then we have 25p = n2 or
difficult to see that the only possible solutions
25p = n2 − 1 or 25p = n2 − 4. In the first case
are (a, b, c, d) = (8, 8, 11, 15) or its cyclic
there are no solutions. In the second case, if 25p
permutations and reflections.)
= (n − 1)(n + 1), then we must have n − 1 = 25 or
8. Answer (02)
n + 1 = 25 as n − 1 and n + 1 cannot both be
We want ab|a2017 + b. This gives that a|b. divisible by 5, and also cannot both have a
Therefore, we can set b = b2017a. Substituting factor besides 25. Similarly, in the third case,
this gives b2017a2|a2017 + b2017a, so b2017a|a2016 + 25p = (n − 2)(n + 2), so we must have n − 2 = 25
b2017. Once again, we get a|b2017, so we can set or n + 2 = 25. Therefore the n we have to check
b2017 = b2016a. Continuing this way, if we have are 23, 24, 26, 27. These give values of p = 21,
bi+1a|ai + bi+1, then a|bi+1, so we can set bi+1 = bia p = 23,
and derive bia|ai−1 + bi. Continuing down to i = 1, p = 27, and p = 29, of which only 23 and 29 are
we would have b = b1 a2017 so ab1|1 + b1. If a ≥ 3, prime, so the answer is 23 + 29 = 52.
then ab1 > 1 + b1 for all b1 ≥ 1, so we need either 11. Answer (26)
a = 1 or We claim that all the weird numbers are all the
a = 2. If a = 1, then b|b + 1, so b = 1. This gives prime numbers and 4. Since no numbers
the pair (1, 1). If a = 2, we need 2b|b + 22017. between 1 and p –2 divide prime p, (p –2)! will not
Therefore, we get b|22017, so we can write b = 2k be divisible by p. We also have 2! = 2 not being a
multiple of 4.
for 0 ≤ k ≤ 2017. Then we need 2k+1|2k + 22017.
Now we show that all other numbers are not
As k ≤ 2017, we need 2|1 + 22017−k. This can only
weird. If n = pq where p q and p, q 2, then
happen is k = 2017. This gives the pair (2, 22017)
since p and q both appear in 1, 2, …, n – 2 and
9. Answer (36)
are distinct, we have pq | (n – 2)!. This leaves the
It suffices to consider the remainder mod 100. We
only case of n = p2 for prime p 3. In this case,
start with the four numbers that have the same
Corporate Office : Aakash Tower, 8, Pusa Road, New Delhi-110005 Page [5]
IOQM (2024) Practice Sheet-3
we can note that p and 2p are both less than Because no number from 2007, 2008,….4012 is
p2 – 2, so 2p2| (n – 2)! and we are similarly done. twice another such number, p(2007),
p(2008,…,p(4012) are 2006 distinct odd positive
Since there are 25 prime numbers not
integers. Also note that these odd numbers
exceeding 100, there are 25 + 1 = 26 weird
belong to the set {1, 3, 5,…4011}, which also
numbers.
consists of exactly 2006 elements. It follows that
12. Answer (87) {p(2007), p(2008),….,p(4012)} = {1, 3, …., 4011}.
The factorization of 1547 is 7 · 13 · 17, so we wish Hence the desired sum is equal to
to find the number of positive integers less than p(2006) + 1 + 3 + …+4011 = 1003 + 20062
1998 that are not divisible by 7, 13, or 17. By the
Principle of Inclusion-Exclusion, we first subtract = 1003 4013 = 4025039.
the numbers that are divisible by one of 7, 13, and 15. Answer (03)
17, add back those that are divisible by two of 7, By Fermat’s little theorem we have a5 a(mod 5)
13, and 17, then subtract those divisible by three for any integer a. Modulo 5, we have
of them. That is, 15 + 25 + 35 + … + 20075 1 + 2 + 3 + … + 2007
1997 1997 1997 1997 = 2007.1004 2.4 3.
1997
7 13 17 7 13 Thus, the desired remainder is 3.
1997 1997 1997 16. Answer (56)
7 17 13 17 7 13 17 Given 49a + 7b + c = 28
= 1997 – 285 – 153 – 117 + 21 + 16 + 9 – 1 7(7a + b) + c = 286 … (i)
Corporate Office : Aakash Tower, 8, Pusa Road, New Delhi-110005 Page [6]
IOQM (2024) Practice Sheet-3
Corporate Office : Aakash Tower, 8, Pusa Road, New Delhi-110005 Page [7]