UPSC CSAT 2025 Q66: Number Coding with Cubes — Solved

In a certain code if 64 is written as 343 and 216 is written as 729, then how is 512 written in that code ?

  1. 1000
  2. 1331
  3. 1728
  4. 2197

Answer: (b) 1331

Solution

  1. Look at the given numbers. 64 and 216 are both perfect cubes: 64 = 4 × 4 × 4 = 4³ and 216 = 6 × 6 × 6 = 6³.
  2. Check the code values. 343 = 7 × 7 × 7 = 7³ and 729 = 9 × 9 × 9 = 9³. They are perfect cubes too.
  3. Compare the cube roots in the first pair. 4³ becomes 7³. The root goes from 4 to 7, so 3 is added (4 + 3 = 7).
  4. Compare the cube roots in the second pair. 6³ becomes 9³. The root goes from 6 to 9, so again 3 is added (6 + 3 = 9).
  5. State the rule. Take the cube root of the number, add 3, and cube the result. In short, n³ becomes (n + 3)³.
  6. Apply the rule to 512. 512 = 8 × 8 × 8 = 8³, so its cube root is 8.
  7. Add 3: 8 + 3 = 11.
  8. Cube it: 11 × 11 = 121, and 121 × 11 = 1331.
  9. Check that a simpler rule does not also work. Simple differences do not match: 343 − 64 = 279 and 729 − 216 = 513. The cube-root rule is the only one that fits both pairs.

Answer: 512 is written as 1331.

Option-wise explanation

  • a: incorrect — 1000 = 10³, so the cube root goes from 8 to 10 (+2). The given pairs add 3 to the root (4→7, 6→9). This trap catches anyone who adds 2 by mistake or picks the round number.
  • b: correct — 512 = 8³. Adding 3 to the root gives 11, and 11³ = 1331. The same rule turns 4³ into 7³ and 6³ into 9³.
  • c: incorrect — 1728 = 12³, so the root goes from 8 to 12 (+4). That breaks the +3 rule from both pairs. 1728 is a familiar cube (12³), and some students pick it because they recognise it.
  • d: incorrect — 2197 = 13³, so the root goes from 8 to 13 (+5). Nothing in the given pairs supports adding 5.

How to eliminate

Spot that every number is a cube: 64 = 4³ and 343 = 7³, so the rule is +3 on the cube root. 512 = 8³, so the code must be 11³. You don't even need to compute 11³ in full. Any number ending in 1, when cubed, ends in 1. Among the options, only 1331 ends in 1. The others end in 0, 8 and 7, which are the unit digits of 10³, 12³ and 13³. About 20–30 seconds if you know cubes up to 15. Attempt it on your first pass because it is a quick, sure mark.

Know more

Number coding with powers

In many number-coding questions, the given numbers are perfect squares or cubes. The code changes the base, not the number directly. Before you test differences or ratios, check whether each number is a power.

Method

  1. Write each number as a power: n² or n³.
  2. Find the change in the base: +k, ×k, or a move to the next prime.
  3. Confirm the rule on every given pair, then apply it.
  4. Check your answer with the unit digit of the result.

Cubes worth memorising

n n³ n n³
4 64 10 1000
5 125 11 1331
6 216 12 1728
7 343 13 2197
8 512 14 2744
9 729 15 3375

Unit digits of cubes: a number ending in 0, 1, 4, 5, 6 or 9 has a cube with the same last digit. In the other cases, 2↔8 and 3↔7 swap (2³ ends in 8, 3³ ends in 7).

Worked variant: In a code, 25 is written as 64 and 49 is written as 100. How is 81 written? 25 = 5² becomes 8² and 49 = 7² becomes 10², so 3 is added to the base. 81 = 9², so the code is 12² = 144.