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?
- A. 15
- B. 31
- C. 23
- 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.
Practise more Advanced Quantitative Ability (Placement) questionsAdvanced Quantitative Ability (Placement): notes and key points
More Advanced Quantitative Ability (Placement) questions
- What is the remainder when 28! is divided by 31?
- How many integers between 1000 and 3000 leave remainders 2, 3 and 4 when divided by 5, 7 and 9 respectively?
- What is the sum of the digits of 10⁵⁰ − 50?
- In how many ways can 15 be written as x + y + z, where x, y, z are integers from 1 to 7 and order matters?
- How many integers x from −10 to 10 satisfy (x + 3)(x − 4)/(x − 6) ≥ 0?
- What is the minimum value of (x² + 5)/√(x² + 4) over all real x?