DR.WANG Mathematics中文

1972 USAMO · Question 3

Probability · divisibility · counting

Problem outline

Draw independently n>1n>1 times, each draw uniform on the digits from 11 to 99. With what probability is the product a multiple of ten?

Show answer and methods 2 methods

Answer

1−(8/9)n−(5/9)n+(4/9)n1-(8/9)^n-(5/9)^n+(4/9)^n.

Method 1 Count the two ways divisibility can fail

A factor of five must come from the digit 55. A factor of two must come from one of 2,4,6,82,4,6,8. Denote the absence of a five by FF and the absence of an even digit by EE.

There are eight choices per draw on FF, five on EE, and four on F∩EF\cap E (namely 1,3,7,91,3,7,9). Thus the desired probability is 1−Pr⁡(F)−Pr⁡(E)+Pr⁡(F∩E)=1−(8/9)n−(5/9)n+(4/9)n1-\Pr(F)-\Pr(E)+\Pr(F\cap E)=1-(8/9)^n-(5/9)^n+(4/9)^n.

Method 2 Condition on the positions of the fives

If exactly j≥1j\ge1 entries are fives, choose their positions in (nj)\binom nj ways. To fill the other positions choose from the eight other digits, discarding the 4n−j4^{n-j} fillings using only odd digits. This gives (nj)(8n−j−4n−j)\binom nj(8^{n-j}-4^{n-j}) valid sequences.

Summing from j=1j=1 to nn gives (9n−8n)−(5n−4n)(9^n-8^n)-(5^n-4^n) by the binomial theorem. Divide by the total count 9n9^n.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)