Skip to main content

AMC 12 Mock Exam 2 Problem 20

Problem 20 of 25

For how many ordered pairs (a,b)(a,b) of integers with 2≤a≤1002\le a\le100 and 2≤b≤1002\le b\le100 is log⁡ab\log_a b a rational number?

Answer choices

Show solution

Solution

Since a,b≥2a,b\ge2, log⁡ab>0\log_ab>0. If log⁡ab=pq\log_ab=\frac pq in lowest terms, then ap=bqa^p=b^q. Comparing prime factorizations, every exponent in aa is a multiple of qq and every exponent in bb is a multiple of pp, so a=cqa=c^q and b=cpb=c^p for some integer c≥2c\ge2. Conversely, if a=cma=c^m and b=cnb=c^n then log⁡ab=nm\log_ab=\frac nm is rational.

Call c≥2c\ge2 primitive if it is not a perfect power. Every integer ≥2\ge2 is a power of exactly one primitive number, and a,ba,b have rational log⁡ab\log_ab exactly when they are powers of the same primitive cc. If cc has kck_c powers in [2,100][2,100], it contributes kc2k_c^2 ordered pairs.

  • c=2c=2: 2,4,8,16,32,642,4,8,16,32,64 (k=6k=6); c=3c=3: 3,9,27,813,9,27,81 (k=4k=4); c=5,6,7,10c=5,6,7,10: k=2k=2 each.
  • The perfect powers in [2,100][2,100] are 4,8,9,16,25,27,32,36,49,64,81,1004,8,9,16,25,27,32,36,49,64,81,100 (twelve numbers), so there are 99−12=8799-12=87 primitive numbers. Apart from the six listed above, the other 8181 have k=1k=1.

The total is 36+16+4⋅4+81=14936+16+4\cdot4+81=\boxed{149}.

Tagged: rational logarithms · perfect powers (N)