Given the digits to , how many odd numbers can we make?
Question
The digits , , , , are written down at random to form a five-digit number.
Note; no digit may be repeated!
Find:
- how many such numbers are possible,
- the chance that the last digit is odd,
- how many of the numbers are divisible by 4.
Suggestion
Can we think of a rule to check whether or not a number is divisible by ?
Does looking at the last digit work?
Solution
We have five ways to choose the first digit, and once we’ve done that, four ways of choosing the second, and so on…
So there are possible numbers.
The last digit must be one of and . Once we have chosen this, there are ways to choose the first four digits.
Thus there are possible numbers that are odd and the chance that a number is odd is
Could we have just stated this anyway as of our digits were odd?
- how many of the numbers are divisible by .
Any five-digit positive integer can be written as for positive integers and .
Then we only need to check for divisibility by because which is an integer if is a multiple of .
So the general rule for checking whether or not goes into a number is this; does go into the final two digits?
If so, then the number is a multiple of , and not otherwise. (That’s how we check for leap years and the next Summer Olympics.)
The only pairs of digits that could end our number and which are divisible by are , , and .
Thus, there are such numbers.