If we use , , , , , and , each of these integers only once, to make a valid 6-digit number, such that even integers are not next to each other and and must be next to each other, how many such 6-digit numbers can we make?
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.
There are four ways even integers can be arranged in a 6 -digit number so that they are not next to each other (e for even and o for odd): eoeoeo, oeoeoe, eoeooe, and eooeoe. To be a valid 6 -digit number, it cannot start with 0 . The possibilities are then:
For a total of 2 4 + 3 6 + 2 4 + 2 4 = 1 0 8 possibilities.
However, since 0 and 5 must be next to each other, we must also subtract out the possibilities where 0 and 5 are not next to each other. The possibilities are:
For a total of 1 2 ⋅ 4 = 4 8 possible ways where 0 and 5 are not next to each other.
Therefore, with the given restrictions there are 1 0 8 − 4 8 = 6 0 possible 6 -digit numbers.