2007 AMC 10B Problem 24

Below is the professionally curated solution for Problem 24 of the 2007 AMC 10B, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2007 AMC 10B solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:divisibilitydigitsoptimization

Difficulty rating: 1980

24.

Let nn denote the smallest positive integer that is divisible by both 44 and 9,9, and whose base-1010 representation consists of only 44's and 99's, with at least one of each. What are the last four digits of n?n?

44444444

44944494

49444944

94449444

99449944

Solution:

Since nn is divisible by 9,9, its digit sum is a multiple of 9.9. With kk fours and mm nines, the digit sum is 4k+9m,4k+9m, so 94k,9\mid 4k, forcing 9k.9\mid k. Thus k9,k\ge 9, and with at least one 9,9, the number has at least ten digits.

For divisibility by 4,4, the last two digits must form a multiple of 4,4, and among 44,49,94,9944,49,94, 99 only 4444 works, so nn ends in 44.44.

The smallest such ten-digit number places the single 99 in the lowest available position, giving 4,444,444,944.4{,}444{,}444{,}944. Its last four digits are 4944.4944.

Thus, the correct answer is C.

Problem 24 in Other Years