2017 AMC 12B Problem 20

Attempt Problem 20 of the 2017 AMC 12B below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2017 AMC 12B solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

20.

Real numbers xx and yy are chosen independently and uniformly at random from the interval (0,1).(0, 1). What is the probability that ⌊log⁡2x⌋=⌊log⁡2y⌋,\lfloor \log_2 x \rfloor = \lfloor \log_2 y \rfloor, where ⌊r⌋\lfloor r \rfloor denotes the greatest integer less than or equal to the real number r?r?
18\dfrac{1}{8}
16\dfrac{1}{6}
14\dfrac{1}{4}
13\dfrac{1}{3}
12\dfrac{1}{2}
Answer: D
Concepts:geometric probabilityfloor and ceiling functionsgeometric sequence
Small hint:
⌊log⁡2x⌋=−n\lfloor \log_2 x \rfloor = -n exactly when 12n≤x<12n−1\dfrac{1}{2^n} \le x \lt \dfrac{1}{2^{n-1}}
Big hint:
For each n,n, both xx and yy must land in that interval of length 12n;\dfrac{1}{2^n}; sum the resulting areas
Solution:
For each positive integer n,n, ⌊log⁡2x⌋=−n\lfloor \log_2 x \rfloor = -n exactly when 12n≤x<12n−1,\dfrac{1}{2^n} \le x \lt \dfrac{1}{2^{n-1}}, an interval of length 12n.\dfrac{1}{2^n}. The event that both floors equal −n-n is a square of area 14n.\dfrac{1}{4^n}. Summing over all n,n, the probability is ∑n=1∞14n=141−14=13.\sum_{n=1}^{\infty} \frac{1}{4^n} = \frac{\frac{1}{4}}{1 - \frac{1}{4}} = \frac{1}{3}.
Thus, the correct answer is D.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.