Question 169664
a) How many 4-digit numbers can be formed from the set A = {0,1,2,3,4,5,6}if there is no repetition? 
<pre><font size = 4 color = "indigo"><b>
Here is a sample choice:

3206

The number that goes where the 3 is can be any of 1, 2, 3, 4, 5, or 6.
0 cannot come first, so we can choose it any of 6 ways.

The number that goes where the 2 is can be 0 or any one of the
5 that was not chosen first.  That's 6 ways.

The number that goes where the 0 can be any of the 5 that weren't
chosen first or second. That's 5 ways.

The number that goes where the 6 is can be any one of the 4 that
weren't chosen 1st, 2nd or 3rd.  That's 4 ways.

The answer is {{{6*6*5*4}}} or {{{720}}} ways. 
</pre></font></b>
b) How many of the numbers in part a) are odd? 
<pre><font size = 4 color = "indigo"><b>
Here is a sample choic:

4361

Let's choose the 4th or last digit, where the 1 is, 
first.  It can only be 1, 3, or 5, since the number 
must be odd. That's 3 ways.

Next choose the first digit.  It cannot be 0 or the
digit that was chosen as the 4th digit.  That's
5 ways.

Next choose the second digit.  It can be 0 or any
digit that was not chosen as the 4th digit.  That's
5 ways.

Finally choose the third digit.  It can be any one of
the 4 remaining digits.  

The answer is {{{3*5*5*4}}} or {{{300}}} ways.
</pre></font></b>
c) How many of the numbers in part a) contain 3? 
<pre><font size = 4 color = "indigo"><b>
There are two ways to solve this.  

First way.

A. The number of ways the 3 can come first.

Sample choice 3256:

There are 6 choices for the digit where the 2 is.
There are 5 choices for the digit where the 5 is.
There are 4 choices for the digit where the 6 is.

That's {{{6*5*4}}} or {{{120}}} ways.

B. The number of ways the 3 can come 2nd.

Sample choice 4306:

There are 5 choices for the digit where the 4 is.
There are 5 choices for the digit where the 0 is.
There are 4 choices for the digit where the 6 is.

That's {{{5*5*4}}} or {{{100}}} ways.

C. The number of ways the 3 can come 3rd.

This is also {{{100}}} for we could just swap the
2nd and 3rd digits of B.

D. The number of ways the 3 can come 4th.

This is also {{{100}}} for we could just swap the
2nd and 4th digits of B.

That's a total of {{{120+100+100+100}}} or {{{420}}} ways.

Second way.

Find the number which do not contain 3 and then subtract
from the total 720.

Now we are choosing from this set:

{0,1,2,4,5,6}

Here is a sample choice:

2046

The number that goes where the 2 is can be any of 1, 2, 4, 5, or 6.
0 cannot come first, so we can choose it any of 5 ways.

The number that goes where the 0 is can be 0 or any one of the
5 that was not chosen first.  That's 5 ways.

The number that goes where the 4 is can be any of the 4 that weren't
chosen first or second. That's 4 ways.

The number that goes where the 6 is can be any one of the 3 that
weren't chosen 1st, 2nd or 3rd.  That's 3 ways.

The answer is {{{5*5*4*3}}} or {{{300}}} ways. 

So we subtract these which don't contain 3 from the 720 and
get {{{720-300}}} or {{{420}}}.  This is the same answer
we got when doing it the other way.
</pre></font></b>
d) How many of the numbers in part a) are divisible by 5?
<pre><font size = 4 color = "indigo"><b>
In order to be divisible by 5, the last digit can only be 0 or 5.

A.  Cases when 0 comes last.

Here is a sample choice:

5240 

There are 6 choices for the digit where the 5 is.
There are 5 choices for the digit where the 2 is.
There are 4 choices for the digit where the 4 is.

That's {{{6*5*4}}} or {{{120}}} ways.

B.  Cases when 5 comes last.

Here is a sample choice:

3625

There are 5 choices for the digit where the 3 is,
as it cannot be 0.
There are 5 choices for the digit where the 6 is.
There are 4 choices for the digit where the 2 is.

That's {{{5*5*4}}} or {{{100}}} ways.

The total from A and B is

{{{120+100}}} or {{{220}}} ways.

Edwin</pre>