Skip to main content

2013 AIME I Problem 2

Problem 2 of 15EasierNumber TheoryCombinatorics

Find the number of five-digit positive integers, n,n, that satisfy the following conditions: • the number nn is divisible by 5,5, • the first and last digits of nn are equal, and • the sum of the digits of nn is divisible by 5.5.

Your answer

Integer from 0 to 999
Show solution

Solution

Since nn is divisible by 5,5, its last digit is 00 or 5;5; since the first digit equals the last digit and cannot be 0,0, both are 5.5. The outer digits contribute 1010 to the digit sum, so the three middle digits must also sum to a multiple of 5.5. Choose the second and third digits freely, in 10⋅10=10010 \cdot 10 = 100 ways. Whatever their sum is, the fourth digit must land in a prescribed residue class modulo 5,5, and exactly 22 of the digits 00 through 99 lie in each class. The count is 10⋅10⋅2=200.10 \cdot 10 \cdot 2 = 200.
AoPS wiki

Tagged: digits · divisibility · multiplication principle

More practice