SOLUTION: How many numbers can be formed with five different digits from {0, 1, 2, 3, 4, 5, 6, 7} that must include the digits 2 and 5 ?

Algebra.Com
Question 1208901: How many numbers can be formed with five different digits from {0, 1, 2, 3, 4, 5, 6, 7} that must include the digits 2 and 5 ?
Answer by Edwin McCravy(20054)   (Show Source): You can put this solution on YOUR website!
We'll start out allowing 0 to be a first digit then we'll 
count those and subtract.

There are 5 positions for the 5 digits.

Choose the position for the 2 in 5 ways.
Choose the position for the 5 in 4 ways.
There are three vacant positions remaining.
Choose a digit to go in the leftmost vacant position 6 ways.
Choose a digit to go in the middle vacant position 5 ways.
Choose a digit to go in the rightmost vacant position 4 ways.

That's (5)(4)(6)(5)(4) = 2400

We must now count the undesired ones, i.e., that begin with 0. 

We can consider these to be 4-digit numbers with digits from
{1, 2, 3, 4, 5, 6, 7} that must include the digits 2 and 5.

There are 4 positions for the 4 digits.

Choose the position for the 2 in 4 ways.
Choose the position for the 5 in 3 ways.
There are two vacant positions remaining.
Choose a digit to go in the leftmost vacant position 5 ways.
Choose a digit to go in the rightmost vacant position 4 ways.

That's (4)(3)(5)(4) = 240

Subtracting, 2400-240 = 2160  <--ANSWER

Edwin

RELATED QUESTIONS

How many different numbers of five digits can be formed from the digits 2, 3, 0, 7, 9, 5... (answered by mathstutor458)
From the digits (1, 2, 3, 4, 5, 6, 7), how many numbers of four different digits each can (answered by Edwin McCravy)
how many four digit numbers can be formed from the digits 1 2 3 4 5 6... (answered by checkley79)
How many numbers with 5 different digits and that are multiples of 2 can be formed with... (answered by Edwin McCravy)
How many odd numbers of four different digits can be formed by choosing from the digits... (answered by vleith)
How many numbers of 5 digits can be formed with the digits 0, 1, 2, 3, 4, 6 & 8 with no... (answered by Edwin McCravy)
How many different numbers can be formed from the digits 0, 1, 3, 5, 7, 9 such that each... (answered by Edwin McCravy)
How many different 4-digit even numbers can be formed from the digits 1,3,5,6,8, and 9 if (answered by ikleyn)
How many 7-digit numbers can be formed using the digits 1, 2, 3, 4, and 5, provided that... (answered by Edwin McCravy,ikleyn,mccravyedwin)