SOLUTION: Compute the number of four-digits integers whose digits are all odd or all even.

Algebra.Com
Question 662008: Compute the number of four-digits integers whose digits are all odd or all even.
Answer by Edwin McCravy(20060)   (Show Source): You can put this solution on YOUR website!
Compute the number of four-digits integers whose digits are all odd or all even.
First we compute the number of four-digit numbers whose 
digits are all odd

There are 5 odd digits, 1,3,5,7,9.

We can choose the first odd digit 5 ways.
We can choose the second odd digit 5 ways.
We can choose the third odd digit 5 ways.
We can choose the fourth odd digit 5 ways.

That's 5·5·5·5 = 54 = 625 ways

Next we compute the number of four-digit numbers whose 
digits are all even

There are 5 even digits, 0,2,4,6,8. The difference 
between this and above is that 0 cannot be the first digit 
of a 4 digit number.

We can choose the first even digit only 4 ways, 
since it cannot be 0.

We can choose the second even digit 5 ways.
We can choose the third even digit 5 ways.
We can choose the fourth even digit 5 ways.

That's 4·5·5·5 = 4·53 = 500 ways.

So that's a total of 625+500 = 1125.

Edwin

RELATED QUESTIONS

Most ATMs require that you enter a four-digit code, using the digits 0 to 9. How many... (answered by solver91311)
Find three consecutive odd whole numbers such that the sum of their squares is a... (answered by ankor@dixie-net.com)
What is the sum of all the 4-digit numbers all of whose digits are odd? (answered by jorel1380,Edwin McCravy)
Find the sum of all positive six-digit integers whose digits are a permutation of the... (answered by ikleyn)
How many integers are there between 10 and 100 whose digits are all... (answered by ikleyn)
A three digit number is chosen at random. What is the probability that either all the... (answered by edjones)
I AM AN ODD NUMBER WITH FOUR DIGITS. MY TENS AND HUNDREDS DIGITS ARE EVEN. THE SUM OF MY... (answered by ramkikk66)
how many different odd number of four digits can be formed with the digits... (answered by oscargut)
Call an integer dangerous if no two of its digits are equal and no digit is 2. Call an... (answered by josmiceli)