Skip to main content
OlympiadHQ

Browse · MathNet

Print

Japan Junior Mathematical Olympiad

Japan counting and probability

Problem

Suppose you write down on a blackboard without repetition each of those positive integers which are less than or equal to and are divisible by . How many 's do you have to write on the blackboard?
Solution
For let us denote by the set of all multiples of less than or equal to whose 's digit is , and define to be the number of elements in the set . Then the desired answer for the problem is .

The set consists of multiples of lying in between and , and there are of those starting with and ending with . Hence .

Let us now consider for . For a number in the set associate a number , which is obtained from by interchanging the 's digit of with the 's digit of (if has less than digits, we consider a digit number by supplying necessary number of 's in upper digits, and define ). Since the sum of the digits of obtained in this way is the same as the sum of digits of , we see that is a multiple of and hence belongs to the set as the 's digit of is . Conversely, by interchanging the 's digit and 's digit of a number in the set , we get a number belonging to the set . Thus, we see that there is a one-to-one correspondence between the elements of the sets and , and therefore, there are exactly elements in the set also for each .

Consequently, the answer we seek is .
Final answer
199998

Techniques

Enumeration with symmetryRecursion, bijectionInvariants / monovariantsOther