Timothy had finished writing all 9-digit numbers that contains numbers (1-9) and without repeating the same digit in the same number, and he was rather pleased with himself.
'There all 362880 numbers, and it took me just 2 days!', he boasted to his friend.
'Why would you torment yourself like that?', ask the very confused friend.
'It's factorial fun!' came the reply
At that very moment, the enthusiastic maths teacher suddenly appeared! 'Aha! I see what you have there! When I was your age I did the exactly same thing! But do you know how many of these numbers are divisible by 6?'
The friend, feeling very awkward, decide to fade away into the background.
'Well... I know that all numbers divisible by 6 are divisible by 2 AND 3; but would I need to divide every individual number with 6 over and over?', stated Timothy feeling glum.
The teacher replied, ' Oh no, you do not need to, Just figure out what has to be done; I know you learnt factorials.'
Timothy managed to find the right answer, and his teacher commended him. What was Timothy's answer?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Using the divisible rule of 3, we can conclude that all numbers that contains the digits: 1, 2, 3, 4, 5, 6, 7, 8, 9 without repetition are always divisible by 3.
So, based on that information, we can rephrase the question as: How many 9-digit numbers that contain only the numbers 1-9 are divisible by 2?
Since all even numbers are divisible by 2, we have to sift through all the numbers that end with an even number. In other words the first 8 digits can be the rest of the 8 number while the last has to be an even number.
To find out the number of ways 8 things can be arranged is by the fractorial 8! (which equals 40320) We then take this number and multiply it by 4 (the number of even numbers in 1-9)
We can then get the answer 4 * 8! = 4 * 40320 = 161280