AI InterviewSearch…Search problems, topics, or pages…Ctrl KGet started
Mediumnumber code

~75s

A numeric code rule

If 5 = 30, 6 = 42 and 7 = 56, then 8 = ?

Show the answer and the worked solution

Correct answer: C.

72

Worked solution

  1. The rule is n × (n + 1): 5 × 6 = 30, 6 × 7 = 42, 7 × 8 = 56.
  2. So 8 → 8 × 9 = 72.

Answer: 72.

The idea

Try n², n² ± n and n(n + 1) when a number maps to a larger one. Checking against all three examples confirms the rule.

Shortcut. The outputs rise by 12 and then 14, so the next rise is 16: 56 + 16 = 72, with no need to name the rule.

Common trap. "64" — seeing 8 and reaching for 8² by reflex; the examples fail that test at once, since 7 maps to 56, not 49.

A numeric code rule — Coding & Decoding Aptitude Question

A numeric code rule: If 5 = 30, 6 = 42 and 7 = 56, then 8 = ? Answer and worked solution on CodeKairo.

Question

If 5 = 30, 6 = 42 and 7 = 56, then 8 = ?

Options

  1. 64
  2. 68
  3. 72
  4. 80
Show the answer and the worked solution

Correct answer: C. 72

Worked solution

  1. The rule is n × (n + 1): 5 × 6 = 30, 6 × 7 = 42, 7 × 8 = 56.
  2. So 8 → 8 × 9 = 72.

Answer: 72.

The idea

Try n², n² ± n and n(n + 1) when a number maps to a larger one. Checking against all three examples confirms the rule.

Shortcut. The outputs rise by 12 and then 14, so the next rise is 16: 56 + 16 = 72, with no need to name the rule.

Common trap. "64" — seeing 8 and reaching for 8² by reflex; the examples fail that test at once, since 7 maps to 56, not 49.

All Coding & Decoding questions · placement mock tests