Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

number theory senior

Problem

Call a -digit number geometric if it has distinct digits which, when read from left to right, form a geometric sequence. Find the difference between the largest and smallest geometric numbers.
Solution
Assume that the largest geometric number starts with a . We know that the common ratio must be a rational of the form for some integer , because a whole number should be attained for the 3rd term as well. When , the number is . When , the number is . When , we get , but the integers must be distinct. By the same logic, the smallest geometric number is . The largest geometric number is and the smallest is . Thus the difference is .
Final answer
840