Skip to main content

2002 AIME II Problem 1

Problem 1 of 15EasierNumber TheoryArithmetic

Given that (1)(1) xx and yy are both integers between 100100 and 999,999, inclusive; (2)(2) yy is the number formed by reversing the digits of x;x; and (3)(3) z=∣x−y∣.z = |x - y|. How many distinct values of zz are possible?

Your answer

Integer from 0 to 999
Show solution

Solution

Write x=100h+10t+ux = 100h + 10t + u with digits h,h, t,t, u.u. Then y=100u+10t+h,y = 100u + 10t + h, so z=∣x−y∣=99 ∣h−u∣.z = |x - y| = 99\,|h - u|. Since both xx and yy are three-digit numbers, both hh and uu run from 11 to 9,9, so ∣h−u∣|h - u| can be any of 0,0, 1,1, …,\ldots, 8.8. Each choice gives a different multiple of 99,99, so there are 99 distinct values of z.z.
AoPS wiki

Tagged: place value · digits

More practice