AMC 10 Step by Step

2021 AMC 10B Problem 16

P16-20~4 minPrint

Call a positive integer an uphill integer if every digit is strictly greater than the previous digit. For example, 13571357 , 8989 , and 55 are all uphill integers, but 3232 , 12401240 , and 466466 are not. How many uphill integers are divisible by 1515 ?

Log in to save your progress.
Show solution without answering

Key insight

Uphill numbers cannot end in 0, so a multiple of 5 ends in 5. Then choose digits from 1 to 4 so the digit sum is a multiple of 3.

Solution

A number is divisible by 1515 exactly when it is divisible by both 55 and 33. Handle 55 first, because it pins down the last digit.

Step 1: divisible by 5.

  1. The last digit must be 00 or 55.
  2. In an uphill number the last digit is the biggest digit. A 00 can never be the biggest, so the last digit is 55.
  3. Every other digit is smaller than 55, and 00 cannot come first, so the other digits come from 1,2,3,41, 2, 3, 4. Once you choose which of those digits to use, there is only one uphill order for them. So an uphill number ending in 55 is just "a choice of some of the digits 1,2,3,41, 2, 3, 4, then a 55."

Step 2: divisible by 3.

  1. The digit sum must be a multiple of 33. The 55 already adds 55, so the chosen digits must add up to 11, 44, 77 or 1010 (then the total is 66, 99, 1212 or 1515). The largest possible sum is 1+2+3+4=101 + 2 + 3 + 4 = 10, so we can stop there.
  2. List the choices:
chosen digits add tochoicesnumbers
11111515
4444;  1,3\ 1, 34545, 135135
773,43, 4;  1,2,4\ 1, 2, 4345345, 12451245
10101,2,3,41, 2, 3, 41234512345
  1. (Choosing no extra digits gives just 55, whose digit sum 55 is not a multiple of 33.)
  2. That is 66 numbers: 15,45,135,345,1245,1234515, 45, 135, 345, 1245, 12345.

The answer is (C) 6\boxed{\textbf{(C)}\ 6}.

Why this works

Because the digits must go up, an uphill number is decided entirely by which digits it uses. So counting uphill numbers is really counting choices of digits. The divisibility rules for 55 and 33 then become simple rules about those digits: the largest is 55, and the sum is a multiple of 33.

Concise solution

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

Divisible by 1515 means divisible by 55 and by 33.

Divisible by 5. The last digit is 00 or 55. In an uphill integer the last digit is the largest digit, so it cannot be 00. Hence the number ends in 55, and its earlier digits form an increasing string chosen from {1,2,3,4}\{1, 2, 3, 4\} (a leading 00 is not allowed).

Divisible by 3. The digit sum must be a multiple of 33. The chosen subset of {1,2,3,4}\{1,2,3,4\} must have sum ≡1(mod3)\equiv 1 \pmod 3 (since 5≡25 \equiv 2). Listing subsets by sum:

  • sum 11: {1}\{1\}, sum 44: {4},{1,3}\{4\}, \{1,3\}, sum 77: {3,4},{1,2,4}\{3,4\}, \{1,2,4\}, sum 1010: {1,2,3,4}\{1,2,3,4\}.

Those six subsets give the numbers 15,45,135,345,1245,1234515, 45, 135, 345, 1245, 12345, all multiples of 1515. (The empty subset gives 55, not divisible by 33.)

The answer is (C) 6\boxed{\textbf{(C)}\ 6}.

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.