2013 AIME I Problem 2
Problem 2 of 15EasierNumber TheoryCombinatorics
Find the number of five-digit positive integers, that satisfy the following conditions:
• the number is divisible by
• the first and last digits of are equal, and
• the sum of the digits of is divisible by
Your answer
Integer from 0 to 999
Show solution
Solution
Since is divisible by its last digit is or since the first digit equals the last digit and cannot be both are The outer digits contribute to the digit sum, so the three middle digits must also sum to a multiple of
Choose the second and third digits freely, in ways. Whatever their sum is, the fourth digit must land in a prescribed residue class modulo and exactly of the digits through lie in each class. The count is
Tagged: digits · divisibility · multiplication principle