2005 AMC 12A Problem 23

Attempt Problem 23 of the 2005 AMC 12A 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 2005 AMC 12A solutions, or check the answer key.

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

23.

Two distinct numbers aa and bb are chosen randomly from the set {2,22,23,…,225}.\{2, 2^2, 2^3, \ldots, 2^{25}\}. What is the probability that log⁡ab\log_a b is an integer?
225\dfrac{2}{25}
31300\dfrac{31}{300}
13100\dfrac{13}{100}
750\dfrac{7}{50}
12\dfrac{1}{2}
Answer: B
Concepts:divisibilityfloor and ceiling functionsbasic probability
Small hint:
Write a=2ja = 2^j and b=2k,b = 2^k, so log⁡ab=kj\log_a b = \dfrac{k}{j}
Big hint:
For each j,j, count the multiples of jj among 1,…,251, \ldots, 25 other than jj itself, namely ⌊25j⌋−1\left\lfloor \tfrac{25}{j} \right\rfloor - 1
Solution:
Let a=2ja = 2^j and b=2k.b = 2^k. Then log⁡ab=kj,\log_a b = \dfrac{k}{j}, which is an integer exactly when kk is a multiple of j.j.
For each j,j, the number of valid k≠jk \ne j in {1,…,25}\{1, \ldots, 25\} is ⌊25j⌋−1.\left\lfloor \tfrac{25}{j} \right\rfloor - 1. Summing over jj gives 24+11+7+5+4+3+2+2+4⋅1=62 \begin{aligned} &24 + 11 + 7 + 5 + 4 + 3 + 2 \\ &\quad {}+ 2 + 4 \cdot 1 = 62 \end{aligned} ordered pairs (a,b).(a, b).
Since there are 25⋅24=60025 \cdot 24 = 600 ordered pairs of distinct elements, the probability is 62600=31300.\dfrac{62}{600} = \dfrac{31}{300}.
Thus, the correct answer is B.
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.