UPSC Prelims 2017·CSAT·Quantitative Aptitude·Number System

The age of Mr. X last year was the square of a number and it would be the cube of a number next year. What is the least number of years he must wait for his age to become the cube of a number again?

Dalvoy logo
Reviewed by Dalvoy
UPSC Civil Services preparation
Last updated 23 May 2026, 3:31 pm IST
  1. A42
  2. B38Correct
  3. C25
  4. D16

Explanation

Let Mr. X's current age be A. According to the problem: 1. His age last year was A-1. This was the square of a number. So, A-1 = n^2 for some integer n. 2. His age next year will be A+1. This will be the cube of a number. So, A+1 = m^3 for some integer m. From these two equations, we can subtract the first from the second: (A+1) - (A-1) = m^3 - n^2 2 = m^3 - n^2 We need to find integer values for m and n that satisfy m^3 - n^2 = 2. Let's test small integer values: If m=1, m^3=1. Then n^2 = 1-2 = -1 (not possible for real n). If m=2, m^3=8. Then n^2 = 8-2 = 6 (not a perfect square). If m=3, m^3=27. Then n^2 = 27-2 = 25. This is a perfect square (n=5). So, m=3 and n=5 is a valid solution. This is the smallest positive integer solution. Using these values to find Mr. X's current age (A): A-1 = n^2 = 5^2 = 25 => A = 26 A+1 = m^3 = 3^3 = 27 => A = 26 Both equations consistently give Mr. X's current age as 26. Now, the question asks: "What is the least number of years he must wait for his age to become the cube of a number again?" His current age is 26. Next year, his age will be 27, which is 3^3 (a perfect cube). The word "again" implies we are looking for the next perfect cube *after* 27. Let's list perfect cubes: 1^3 = 1 2^3 = 8 3^3 = 27 4^3 = 64 5^3 = 125 Since his age next year will be 27 (a cube), the *next* cube after 27 is 64 (which is 4^3). To find out how many years he must wait from his current age (26) to reach 64: Years to wait = 64 - 26 = 38 years. Analyzing the options: A) 42: Incorrect. B) 38: This matches our calculated value. C) 25: Incorrect. If he waited 25 years, his age would be 26+25 = 51, which is not a cube. D) 16: Incorrect. If he waited 16 years, his age would be 26+16 = 42, which is not a cube. The final answer is B.
Quantitative Aptitude: The age of Mr. X last year was the square of a number and it would be the cube of a number next year. What is the least

Related questions

More UPSC Prelims practice from the same subject and topic.