AMC 10 Step by Step

2021 AMC Fall 10B Problem 10

P1-10~3 minPrint

Forty slips of paper numbered 11 to 4040 are placed in a hat. Alice and Bob each draw one number from the hat without replacement, keeping their numbers hidden from each other. Alice says, "I can't tell who has the larger number." Then Bob says, "I know who has the larger number." Alice says, "You do? Is your number prime?" Bob replies, "Yes." Alice says, "In that case, if I multiply your number by 100100 and add my number, the result is a perfect square. " What is the sum of the two numbers drawn from the hat?

Log in to save your progress.
Show solution without answering

Key insight

Alice's doubt rules out 1 and 40. Then Bob can only be sure with 1, 2, 39 or 40; prime means 2, and 200 + 25 = 225.

Solution

Let Alice's number be aa and Bob's be bb. Go through the conversation one sentence at a time, and after each one ask what it rules out.

1. Alice: "I can't tell who has the larger number." If Alice had 11, she would know Bob is larger. If she had 4040, she would know she is larger. So Alice has something from 22 to 3939.
2. Bob: "I know who has the larger number." Bob heard step 1, so he knows Alice is between 22 and 3939.
- If Bob has 22: Alice cannot also have 22 (the slips are different), so she has 33 to 3939. Bob knows he is smaller.
- If Bob has 3939: Alice has 22 to 3838. Bob knows he is larger.
- If Bob has 11 or 4040: he obviously knows.
- If Bob has, say, 2020: Alice could have 55 or 3030, so he cannot know.

So Bob has 11, 22, 3939 or 4040.
3. Bob's number is prime. Of 1,2,39,401, 2, 39, 40, only 22 is prime (11 is not prime, 39=3×1339 = 3 \times 13, 4040 is even). So b=2b = 2.
4. 100b+a100b + a is a perfect square. That is 200+a200 + a, with aa from 22 to 3939, so it is between 202202 and 239239. Squares near there: 142=19614^2 = 196, 152=22515^2 = 225, 162=25616^2 = 256. Only 225225 fits, so a=25a = 25.
5. The sum is 2+25=272 + 25 = 27.

The answer is (A) 27\boxed{\textbf{(A)}\ 27}.

Why this works

In puzzles where people take turns saying what they know, each statement cuts down the possibilities, and the next speaker uses the smaller list. Bob could only be sure with 22 or 3939 because Alice had already ruled out 11 and 4040. After the logic narrows things down, a small arithmetic check finishes the problem.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Let Alice hold aa and Bob hold bb.

Alice cannot tell who is larger, so aa is neither 11 nor 4040: 2≤a≤392 \le a \le 39.

Bob hears this. He now knows who is larger, so his number must beat or lose to every value in {2,…,39}\{2, \dots, 39\} other than his own. That happens exactly when b∈{1,2,39,40}b \in \{1, 2, 39, 40\}: with b=2b = 2, Alice's number is at least 33; with b=39b = 39, hers is at most 3838.

Bob's number is prime, so b=2b = 2.

Finally 100⋅2+a=200+a100 \cdot 2 + a = 200 + a is a perfect square with 2≤a≤392 \le a \le 39, i.e. between 202202 and 239239. The only square in that range is 225=152225 = 15^2, so a=25a = 25.

The sum is 2+25=272 + 25 = 27.

The answer is (A) 27\boxed{\textbf{(A)}\ 27}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.