Placement AptitudeVery hardGoldman Sachs aptitude · Amazon aptitude

How many integers from 1 to 100 use only the digits 0 and 1 when written in base 3?

  1. A. 15
  2. B. 31
  3. C. 23
  4. D. 16

Correct answer: C. 23

With up to 4 base-3 digits (numbers up to 80) there are 2⁴ − 1 = 15 such numbers. From 81 to 100 the 5-digit forms 10000, 10001, 10010, 10011, 10100, 10101, 10110, 10111 (81 to 94) all qualify, adding 8, so the total is 23. 31 counts every 5-digit 0/1 string as if all were ≤ 100.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic