Browse · MATH
Printjmc
number theory intermediate
Problem
The seven digits in Sam's phone number and the four digits in his house number have the same sum. The four digits in his house number are distinct, and his phone number is 271-3147. What is the largest possible value of Sam's house number?
Solution
First, we need to add up the digits in his phone number to see what the digits in his address add up to. .
For his address, we want to find the largest four-digit number whose digits add up to . Because we want a large number, the leftmost digit should be as large as possible, so the first digit should be . The next three digits, therefore, must add up to . Since the digits must be unique, the next digit cannot be , so we will go for the next largest number, . The final two digits must add up to , and since neither can be , the next largest possibility for those numbers is and . Therefore, Sam's address is .
For his address, we want to find the largest four-digit number whose digits add up to . Because we want a large number, the leftmost digit should be as large as possible, so the first digit should be . The next three digits, therefore, must add up to . Since the digits must be unique, the next digit cannot be , so we will go for the next largest number, . The final two digits must add up to , and since neither can be , the next largest possibility for those numbers is and . Therefore, Sam's address is .
Final answer
9871