How Many Six-Digit Numbers Have Three Even and Three Odd Digits?

  • Thread starter Thread starter Vineeth T
  • Start date Start date
  • Tags Tags
    Permutation
Click For Summary

Homework Help Overview

The problem involves determining how many six-digit numbers can be formed with three even digits and three odd digits. The context revolves around combinatorial counting principles without the need for specific equations.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants explore different cases for counting valid six-digit combinations, including scenarios with and without the digit zero. Some participants question the accuracy of their counts and seek clarification on potential overcounting.

Discussion Status

There is an ongoing examination of different counting methods, with some participants confirming a total of 281250 combinations while others reference a provided answer of 179550. The discussion reflects a lack of consensus on the correct total, with participants actively questioning their assumptions and calculations.

Contextual Notes

Some participants note the importance of considering leading zeros and the implications of different digit placements in their calculations. There is also mention of a source that provides a different answer, prompting further inquiry into the problem's conditions.

Vineeth T
Messages
31
Reaction score
0

Homework Statement



How many different six-digit numbers are there whose three digits are even and three digits are odd?

Homework Equations



No equations are required.We only need the principles of counting.

The Attempt at a Solution



I tried to split into 4 cases:
case I:there is no zero in the six digit number.such numbers =125*64*20
case II:there is one zero in the number.such numbers =125*16*5*10
case III:there are two zeroes in the number.such numbers =125*4*10*4
case IV:there are three zeroes in the number.such numbers =125*10
So the final answer will be 281250.
But the correct answer is 179550.
Can anyone show me where I have over counted ?
 
Physics news on Phys.org
I did it a completely different way but get your answer. I break it into two cases:
1) The first digit is odd. In that case, there are 5 possible digits (1, 3, 5, 7, 9) for the first digit. There are then five possible digits for the other 5 digits as well. Also there are \begin{pmatrix}5 \\ 3\end{pmatrix}= 10 ways to place the three even digits in those 5 digits. There are 10(5^6)= 156250 ways in this case.

2) The first digit is even. In this case there are 4 possible digits (2, 4, 6, 8) since the first digit cannot be 0. There are again five possible digits for the other 5 digits and 10 ways to place the three odd digits in those 5 digts. There are 10(5^5)4= 125000 ways in this case.

Together there are 156250+ 125000= 281250 ways to do this.
 
grinding this out with a simple program confirms the total is 281250:

Code:
int main(int argc, char **argv)
{
int i, j, k, even, odd, total;

    total = 0;
    for(i = 100000; i < 1000000; i++){
        j = i;
        even = odd = 0;
        for(k = 0; k < 6; k++){ 
            if(j&1)
                odd += 1;
            else
                even += 1;
            j /= 10;
        }
        if((odd == 3) && (even == 3))
            total += 1;
    }
    printf("%d\n", total);
    return(0);
}
 
Then is it confirm that the answer is 281250.
But the answer is given as 179550.(source:Problems In Mathematics With Hints And Solutions by V Govrov)
Thanks for everyone.
 
HallsofIvy said:
Also there are \begin{pmatrix}5 \\ 3\end{pmatrix}= 10 ways to place the three even digits in those 5 digits.
I think of this as the number of permutations for a multiset of 2 odds and 3 evens which is
\frac{5!}{2! \ 3!} = 10
{OOEEE, OEOEE, OEEOE, OEEEO, EOOEE, EOEOE, EOEEO, EEOOE, EEOEO, EEEOO}

Vineeth T said:
Then is it confirm that the answer is 281250.
Assming that there isn't some additional condition that wasn't mentioned in the problem statement. If you understand the program example, does it match the problem statement?

You could also consider the number of cases allowing leading zeros - the number of case with leading zeros which is:

\frac{6!}{3! \ 3!} 5^6 \ - \ \frac{5!}{2! \ 3!} 5^5 = 312500 - 31250 = 281250
 
Last edited:

Similar threads

  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
59
Views
5K
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
12
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
1
Views
2K
Replies
6
Views
3K