UPSC Civil Services · Previous Year Questions
Mathematics
30 UPSC Mathematics questions from past papers (2025), each with the answer and a full solution. Arithmetic, algebra, geometry, trigonometry, mensuration and statistics.
UPSC 202525 questions
- Q1
How many possible values of (p + q + r) are there satisfying 1/p + 1/q + 1/r = 1, where p, q and r are natural numbers (not necessarily distinct) ?
- ANone
- BOne
- CThree
- DMore than three
Show answer & solution
Correct answer: (C) Three
Find natural numbers with 1/p + 1/q + 1/r = 1. Take p <= q <= r. p = 1 is impossible (the other terms would have to total 0). The smallest term 1/p is at least 1/3, so p is 2 or 3. p = 3: then q = r = 3 is the only option, since 1/3 + 1/3 + 1/3 = 1. Sum = 9. p = 2: 1/q + 1/r = 1/2 with q <= r, so q is 3 or 4. q = 3 gives r = 6: (2, 3, 6), sum = 11. q = 4 gives r = 4: (2, 4, 4), sum = 10. Possible values of p + q + r: 9, 10, 11, which is three values. Answer: (c) Three
- Q2
Team X scored a total of N runs in 20 overs. Team Y tied the score in 10% less overs. Had team Y's average run rate (runs per over) been 50% higher, the scores would have been tied in 12 overs. How many runs were scored by team X ?
- A72
- B144
- C216
- DCannot be determined
Show answer & solution
Correct answer: (D) Cannot be determined
Team X: N runs in 20 overs. Team Y tied in 10% fewer overs: 20 x 0.9 = 18 overs, so Y's run rate = N/18. A 50% higher run rate = 1.5 x N/18 = N/12. At that rate the N runs take N / (N/12) = 12 overs. The 12-overs condition holds for every value of N, so it adds no new information, and N cannot be worked out from the data. Answer: (d) Cannot be determined
- Q3
A natural number N is such that it can be expressed as N = p + q + r, where p, q and r are distinct factors of N. How many numbers below 50 have this property ?
- A6
- B7
- C8
- D9
Show answer & solution
Correct answer: (C) 8
We need N = p + q + r with p, q, r distinct factors of N. Write p = N/a, q = N/b, r = N/c, where a, b, c are distinct whole numbers greater than 1 (each factor is smaller than N). Dividing N = N/a + N/b + N/c by N gives 1/a + 1/b + 1/c = 1. The only set of three distinct unit fractions adding to 1 is 1/2 + 1/3 + 1/6. So the factors are N/2, N/3 and N/6, which are all whole numbers exactly when N is a multiple of 6. Check: 6 = 3 + 2 + 1, 12 = 6 + 4 + 2, and so on. Multiples of 6 below 50: 6, 12, 18, 24, 30, 36, 42, 48, which is 8 numbers. Answer: (c) 8
- Q4
Three prime numbers p, q and r, each less than 20, are such that p − q = q − r. How many distinct possible values can we get for (p + q + r) ?
- A4
- B5
- C6
- DMore than 6
Show answer & solution
Correct answer: (D) More than 6
p - q = q - r means 2q = p + r, so p, q, r form an arithmetic progression with q in the middle, and p + q + r = 3q. Primes below 20: 2, 3, 5, 7, 11, 13, 17, 19. The question does not say the primes are distinct, so p = q = r is allowed (then p - q = q - r = 0). Case 1, all three equal: p + q + r = 3p gives 6, 9, 15, 21, 33, 39, 51, 57 (8 values). Case 2, all distinct, as an AP of primes: (3, 5, 7) sum 15; (3, 7, 11) sum 21; (3, 11, 19) sum 33; (7, 13, 19) sum 39; (5, 11, 17) sum 33. These sums are already in the Case 1 list. Distinct possible values of (p + q + r): 6, 9, 15, 21, 33, 39, 51, 57, which is 8 values. That is more than 6. (If the primes had to be distinct, only 15, 21, 33, 39 would remain, 4 values. The official key counts the equal-prime case, because the question does not exclude it.) Answer: (d) More than 6
- Q5
The price (p) of a commodity is first increased by k%; then decreased by k%; again increased by k%; and again decreased by k%. If the new price is q, then what is the relation between p and q ?
- Ap(10^4 − k^2)^2 = q × 10^8
- Bp(10^4 − k^2)^2 = q × 10^4
- Cp(10^4 − k^2) = q × 10^4
- Dp(10^4 − k^2) = q × 10^8
Show answer & solution
Correct answer: (A) p(10^4 − k^2)^2 = q × 10^8
Each rise multiplies the price by (1 + k/100) and each fall by (1 - k/100). q = p (1 + k/100)(1 - k/100)(1 + k/100)(1 - k/100) = p [(1 + k/100)(1 - k/100)]^2 = p [1 - k^2/10^4]^2 = p [(10^4 - k^2)/10^4]^2 = p (10^4 - k^2)^2 / 10^8 So p(10^4 - k^2)^2 = q x 10^8. Answer: (a) p(10^4 − k^2)^2 = q × 10^8
- Q6
What is the unit digit in the multiplication of 1 × 3 × 5 × 7 × 9 × . . . × 999 ?
- A1
- B3
- C5
- D9
Show answer & solution
Correct answer: (C) 5
The product contains only odd numbers, and one of them is 5. An odd number times 5 always ends in 5. No factor of 2 is present, so the product cannot end in 0. So the unit digit of 1 x 3 x 5 x ... x 999 is 5. Answer: (c) 5
- Q7
A 4-digit number N is such that when divided by 3, 5, 6, 9 leaves a remainder 1, 3, 4, 7 respectively. What is the smallest value of N ?
- A1068
- B1072
- C1078
- D1082
Show answer & solution
Correct answer: (C) 1078
In each case the remainder is 2 less than the divisor: 3-1 = 5-3 = 6-4 = 9-7 = 2. So N + 2 is divisible by 3, 5, 6 and 9, which means it is a multiple of LCM(3, 5, 6, 9) = 90. N = 90k - 2. k = 11 gives 988 (only 3 digits); k = 12 gives 1080 - 2 = 1078. Check: 1078 = 3x359 + 1, 5x215 + 3, 6x179 + 4, 9x119 + 7. Answer: (c) 1078
- Q8
The petrol price shot up by 10% as a result of the hike in crude oil prices. The price of petrol before the hike was ₹ 90 per litre. A person travels 2200 km every month and his car gives a mileage of 16 km per litre. By how many km should he reduce his travel if he wants to maintain his expenditure at the previous level ?
- A180 km
- B200 km
- C220 km
- D240 km
Show answer & solution
Correct answer: (B) 200 km
Petrol used now: 2200 / 16 = 137.5 litres. Spending now: 137.5 x 90 = Rs 12,375. New price: 90 x 1.10 = Rs 99 per litre. Litres he can buy for the same money: 12,375 / 99 = 125 litres. Distance on 125 litres: 125 x 16 = 2000 km. Reduction = 2200 - 2000 = 200 km. (Quick check: spending stays the same when distance is divided by 1.1, so 2200/1.1 = 2000.) Answer: (b) 200 km
- Q9
If 4 ≤ x ≤ 8 and 2 ≤ y ≤ 7, then what is the ratio of maximum value of (x + y) to minimum value of (x − y) ?
- A6
- B15/2
- C−15/2
- DNone of the above
Show answer & solution
Correct answer: (D) None of the above
Maximum of (x + y): x = 8, y = 7 gives 15. Minimum of (x - y): smallest x and largest y, x = 4, y = 7, gives -3. Ratio = 15 / (-3) = -5. -5 is not among 6, 15/2 or -15/2. Answer: (d) None of the above
- Q10
There are n sets of numbers each having only three positive integers with LCM equal to 1001 and HCF equal to 1. What is the value of n ?
- A6
- B7
- C8
- DMore than 8
Show answer & solution
Correct answer: (D) More than 8
1001 = 7 x 11 x 13. Every number in the set must divide 1001, so it is one of 1, 7, 11, 13, 77, 91, 143, 1001. LCM = 1001: each of the primes 7, 11, 13 must divide at least one of the three numbers. HCF = 1: no prime may divide all three numbers. Listing valid sets of three different numbers: - Containing 1: HCF is automatically 1, and the other two numbers must together cover 7, 11 and 13. Examples: {1, 7, 143}, {1, 11, 91}, {1, 13, 77}, {1, 77, 91}, {1, 77, 143}, {1, 91, 143}, and {1, x, 1001} for x = 7, 11, 13, 77, 91, 143. - Without 1: e.g. {7, 11, 13}, {77, 91, 143}, {7, 11, 143}, {7, 13, 1001}, ... The first group alone has 12 sets. A full count gives 32 sets of three different numbers (40 if a number may repeat, e.g. {7, 143, 143}). So n is more than 8. Answer: (d) More than 8
- Q11
Let both p and k be prime numbers such that (p^2 + k) is also a prime number less than 30. What is the number of possible values of k ?
- A4
- B5
- C6
- D7
Show answer & solution
Correct answer: (B) 5
If p and k are both odd primes, p^2 + k is even and greater than 2, so it cannot be prime. So p = 2 or k = 2. Case p = 2: 4 + k must be a prime below 30. k = 3 gives 7, k = 7 gives 11, k = 13 gives 17, k = 19 gives 23 (all prime). k = 2, 5, 11, 17, 23 give 6, 9, 15, 21, 27 (not prime). So k = 3, 7, 13, 19. Case k = 2: p^2 + 2 must be a prime below 30. p = 3 gives 11 (prime); p = 5 gives 27 (not prime). So k = 2 works. Possible k: 2, 3, 7, 13, 19, which is 5 values. Answer: (b) 5
- Q12
Consider the first 100 natural numbers. How many of them are not divisible by any one of 2, 3, 5, 7 and 9 ?
- A20
- B21
- C22
- D23
Show answer & solution
Correct answer: (C) 22
Divisibility by 9 is already covered by divisibility by 3, so count the numbers from 1 to 100 not divisible by 2, 3, 5 or 7. Such a number is either 1 or has all its prime factors 11 or larger. The smallest composite with no factor below 11 is 11 x 11 = 121, which is above 100. So apart from 1, only primes from 11 to 100 qualify. There are 25 primes up to 100. Removing 2, 3, 5, 7 leaves 21 (11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97). Total = 21 + 1 (the number 1) = 22. Answer: (c) 22
- Q13
What is the maximum value of n such that 7 × 343 × 385 × 1000 × 2401 × 77777 is divisible by 35^n ?
- A3
- B4
- C5
- D7
Show answer & solution
Correct answer: (B) 4
35 = 5 x 7, so n is the smaller of the number of 5s and the number of 7s in the product. 7 = 7 343 = 7^3 385 = 5 x 7 x 11 1000 = 2^3 x 5^3 2401 = 7^4 77777 = 7 x 11111 = 7 x 41 x 271 (no 5) Number of 5s: 1 (from 385) + 3 (from 1000) = 4. Number of 7s: 1 + 3 + 1 + 4 + 1 = 10. n = min(4, 10) = 4. Answer: (b) 4
- Q14
P and Q walk along a circular track. They start at 5:00 a.m. from the same point in opposite directions. P walks at an average speed of 5 rounds per hour and Q walks at an average speed of 3 rounds per hour. How many times will they cross each other between 5:20 a.m. and 7:00 a.m. ?
- A12
- B13
- C14
- D15
Show answer & solution
Correct answer: (B) 13
Walking in opposite directions, they close the gap at 5 + 3 = 8 rounds per hour. They cross each time they cover one full round together, every 1/8 hour = 7.5 minutes after 5:00. Crossing times: 5:07:30, 5:15, 5:22:30, 5:30, ..., 6:52:30, 7:00. In minutes after 5:00 these are 7.5k. "Between 5:20 and 7:00" means 20 < 7.5k < 120, so k = 3, 4, ..., 15. That is 15 - 3 + 1 = 13 crossings. The crossing exactly at 7:00 (k = 16) is the end point, so it is not counted. Answer: (b) 13
- Q15
If N^2 = 12345678987654321, then how many digits does the number N have ?
- A8
- B9
- C10
- D11
Show answer & solution
Correct answer: (B) 9
12345678987654321 has 17 digits. A number with d digits has a square with 2d - 1 or 2d digits. 2d - 1 = 17 gives d = 9. In fact 111111111^2 = 12345678987654321, so N = 111111111, which has 9 digits. Answer: (b) 9
- Q16
A tram overtakes 2 persons X and Y walking at an average speed of 3 km/hr and 4 km/hr in the same direction and completely passes them in 8 seconds and 9 seconds respectively. What is the length of the tram ?
- A15 m
- B18 m
- C20 m
- D24 m
Show answer & solution
Correct answer: (C) 20 m
Let the tram's speed be v km/h. To pass a walker fully, the tram covers its own length L at the relative speed (v minus the walker's speed). Passing X: L = (v - 3) x 8/3600 km. Passing Y: L = (v - 4) x 9/3600 km. Set them equal: 8(v - 3) = 9(v - 4), so 8v - 24 = 9v - 36, giving v = 12 km/h. L = (12 - 3) km/h x 8 s = 9 x (5/18) m/s x 8 s = 2.5 x 8 = 20 m. Check with Y: (12 - 4) x 5/18 x 9 = 20 m. Answer: (c) 20 m
- Q17
A set (X) of 20 pipes can fill 70% of a tank in 14 minutes. Another set (Y) of 10 pipes fills 3/8th of the tank in 6 minutes. A third set (Z) of 16 pipes can empty half of the tank in 20 minutes. If half of the pipes of set X are closed and only half of the pipes of set Y are open, and all pipes of the set (Z) are open, then how long will it take to fill 50% of the tank ?
- A8 minutes
- B10 minutes
- C12 minutes
- D16 minutes
Show answer & solution
Correct answer: (D) 16 minutes
Work out each pipe's rate in % of the tank per minute. Set X: 20 pipes fill 70% in 14 min, so 70/14 = 5% per min. One pipe = 5/20 = 0.25% per min. Set Y: 10 pipes fill 3/8 = 37.5% in 6 min, so 37.5/6 = 6.25% per min. One pipe = 0.625% per min. Set Z: 16 pipes empty 50% in 20 min, so 2.5% per min emptied (all 16 pipes). Open now: half of X = 10 pipes, giving 10 x 0.25 = 2.5% per min. Half of Y = 5 pipes, giving 5 x 0.625 = 3.125% per min. All of Z: -2.5% per min. Net rate = 2.5 + 3.125 - 2.5 = 3.125% per min. Time to fill 50% = 50 / 3.125 = 16 minutes. Answer: (d) 16 minutes
- Q18
If n is a natural number, then what is the number of distinct remainders of (1^n + 2^n) when divided by 4 ?
- A0
- B1
- C2
- D3
Show answer & solution
Correct answer: (C) 2
n = 1: 1 + 2 = 3, and 3 divided by 4 leaves remainder 3. n >= 2: 2^n is a multiple of 4 (4, 8, 16, ...), and 1^n = 1. So 1^n + 2^n leaves remainder 1. The only remainders that occur are 3 and 1, so there are 2 distinct remainders. Answer: (c) 2
- Q19
Let P = QQQ be a 3-digit number. What is the HCF of P and 481 ?
- A1
- B13
- C37
- D481
Show answer & solution
Correct answer: (C) 37
P = QQQ = 100Q + 10Q + Q = 111Q = 3 x 37 x Q, where Q is a digit from 1 to 9. 481 = 13 x 37. 37 divides both numbers. 13 cannot divide 3 x Q because Q <= 9 and 13 is prime. So HCF(P, 481) = 37 for every such P. Answer: (c) 37
- Q20
What is the 489th digit in the number 123456789101112 . . . ?
- A0
- B3
- C6
- D9
Show answer & solution
Correct answer: (D) 9
Digits used by 1 to 9: 9 x 1 = 9. Digits used by 10 to 99: 90 x 2 = 180. Running total = 189. Digits still needed: 489 - 189 = 300. Each 3-digit number uses 3 digits, so 300 / 3 = 100 numbers exactly: 100, 101, ..., 199. The 489th digit is therefore the last digit of 199, which is 9. Answer: (d) 9
- Q21
X can complete one-third of a certain work in 6 days, Y can complete one-third of the same work in 8 days and Z can complete three-fourth of the same work in 12 days. All of them work together for n days and then X and Z quit and Y alone finishes the remaining work in 8 2/3 days. What is n equal to ?
- A3
- B4
- C5
- D6
Show answer & solution
Correct answer: (B) 4
X does 1/3 in 6 days, so the whole work takes 18 days. Y does 1/3 in 8 days, so the whole work takes 24 days. Z does 3/4 in 12 days, so the whole work takes 16 days. Take total work = LCM(18, 24, 16) = 144 units. Rates: X = 8, Y = 6, Z = 9 units per day. Together = 23 units per day. Y alone works 8 2/3 = 26/3 days and does 6 x 26/3 = 52 units. Work done by all three = 144 - 52 = 92 units, so n = 92 / 23 = 4 days. Answer: (b) 4
- Q22
Consider the following statements : I. There exists a natural number which when increased by 50% can have its number of factors unchanged. II. There exists a natural number which when increased by 150% can have its number of factors unchanged. Which of the statements given above is/are correct ?
- AI only
- BII only
- CBoth I and II
- DNeither I nor II
Show answer & solution
Correct answer: (C) Both I and II
Statement I: increasing n by 50% gives 1.5n. Take n = 2, so 1.5n = 3. Both are primes with 2 factors each, so the number of factors is unchanged. I is correct. Statement II: increasing n by 150% gives 2.5n. Take n = 2, so 2.5n = 5. Both are primes with 2 factors each. II is correct. (Another example for I: 14 = 2 x 7 becomes 21 = 3 x 7, and both have 4 factors.) Both statements are correct. Answer: (c) Both I and II
- Q23
What is the remainder when 9^3 + 9^4 + 9^5 + 9^6 + . . . + 9^100 is divided by 6 ?
- A0
- B1
- C2
- D3
Show answer & solution
Correct answer: (A) 0
Every power 9^k (k >= 1) is odd and divisible by 3, so it leaves remainder 3 when divided by 6. Check: 9 = 6 + 3, 81 = 78 + 3. The sum runs from 9^3 to 9^100, which is 100 - 3 + 1 = 98 terms. Remainder of the sum = remainder of 98 x 3 = 294 when divided by 6. 294 = 6 x 49, so the remainder is 0. Answer: (a) 0
- Q24
A question is given followed by two Statements I and II. Consider the Question and the Statements and mark the correct option. Question : Is (p + q)^2 − 4 pq, where p, q are natural numbers, positive ? Statement I : p < q. Statement II : p > q. Which one of the following is correct in respect of the above Question and the Statements ?
- AThe Question can be answered by using one of the Statements alone, but cannot be answered using the other statement alone.
- BThe Question can be answered by using either Statement alone.
- CThe Question can be answered by using both the Statements together, but cannot be answered using either Statement alone.
- DThe Question can be answered even without using any of the Statements.
Show answer & solution
Correct answer: (B) The Question can be answered by using either Statement alone.
(p + q)^2 - 4pq = p^2 + 2pq + q^2 - 4pq = (p - q)^2. (p - q)^2 is positive exactly when p is not equal to q. If p = q it is 0, so the question alone cannot be answered. Statement I: p < q means p is not equal to q, so the expression is positive. Answered. Statement II: p > q means p is not equal to q, so the expression is positive. Answered. Either statement alone is enough. Answer: (b) The Question can be answered by using either Statement alone.
- Q25
In a T20 cricket match, three players X, Y and Z scored a total of 37 runs. The ratio of number of runs scored by X to the number of runs scored by Y is equal to ratio of number of runs scored by Y to number of runs scored by Z. Value-I = Runs scored by X Value-II = Runs scored by Y Value-III = Runs scored by Z Which one of the following is correct ?
- AValue-I < Value-II < Value-III
- BValue-III < Value-II < Value-I
- CValue-I < Value-III < Value-II
- DCannot be determined due to insufficient data
Show answer & solution
Correct answer: (D) Cannot be determined due to insufficient data
X : Y = Y : Z means Y^2 = XZ, so X, Y, Z form a geometric progression, and X + Y + Z = 37. Write the terms as k*c^2, k*b*c, k*b^2 (ratio b/c in lowest terms). Then k(b^2 + bc + c^2) = 37. 37 is prime, so k = 1 and b^2 + bc + c^2 = 37. This gives b = 3, c = 4 (9 + 12 + 16 = 37). The runs are 16, 12, 9 in some order along the progression. So (X, Y, Z) can be (16, 12, 9) or (9, 12, 16). Both satisfy Y^2 = 144 = XZ and total 37. In the first case Value-III < Value-II < Value-I. In the second, Value-I < Value-II < Value-III. The data do not fix which order holds, so it cannot be determined. Answer: (d) Cannot be determined due to insufficient data