Skip to main content

AMC 12 Mock Exam 9 Problem 6

Problem 6 of 25

Ana and Ben play a game. Each of them independently chooses an integer from 11 to 1212, inclusive, with all 1212 choices equally likely. They win together if the product of their two numbers is a perfect square. What is the probability that they win?

Answer choices

Show solution

Solution

Write each positive integer as n=s⋅t2n=s\cdot t^2 with ss squarefree; ss is the squarefree part of nn. A product abab is a perfect square exactly when the squarefree parts of aa and bb are equal. (Their product sasbs_as_b must be a square, and two squarefree numbers have a square product only if they are equal.) Group 1,…,121,\dots,12 by squarefree part: {1,4,9}, {2,8}, {3,12}, {5}, {6}, {7}, {10}, {11}.\{1,4,9\},\ \{2,8\},\ \{3,12\},\ \{5\},\ \{6\},\ \{7\},\ \{10\},\ \{11\}. The winning ordered pairs number 32+22+22+5⋅12=223^2+2^2+2^2+5\cdot1^2=22 out of 144144, so the probability is 22144=1172\frac{22}{144}=\boxed{\tfrac{11}{72}}. (Counting only the pairs a=ba=b gives 112\frac1{12}. Forgetting that 3⋅12=363\cdot12=36 is a square gives 18144=18\frac{18}{144}=\frac18.)

Tagged: probability that a product is a perfect square (two players)