A simple combinatorics problem

In summary: Now I get it. In summary, the correct approach for finding the number of 4-digit odd numbers without repetition is to consider the last digit first, then the first digit, and finally the middle two digits. This ensures that all cases are accounted for and avoids complications with including 0 as a possibility.
  • #1
Yashbhatt
348
13

Homework Statement


How many 4-digit odd numbers are there? (Without repetition)


Homework Equations





The Attempt at a Solution


I thought in the following way: For the last digit, we have 5 possibilities(1,3,5,7,9). For the last second we are left with 9 possibilities, 8 for the next one and 6 for the next one( because 0 is not allowed). So, I got 9 x 5 x 8 x 6 = 2160. But the answer is 2240.

Another approach: 5 for the 4th one, 8 for the 1st, 8 for the 2nd and 7 for the 3rd which gives the correct answer.

But I don't understand why the first method gave the wrong answer. I guess it is something like when the first 3 digits are odd, the last one has only 2 ways of filling, but I am not sure.
 
Physics news on Phys.org
  • #2
Yashbhatt said:

Homework Statement


How many 4-digit odd numbers are there? (Without repetition)


Homework Equations





The Attempt at a Solution


I thought in the following way: For the last digit, we have 5 possibilities(1,3,5,7,9). For the last second we are left with 9 possibilities, 8 for the next one and 6 for the next one( because 0 is not allowed). So, I got 9 x 5 x 8 x 6 = 2160. But the answer is 2240.

Another approach: 5 for the 4th one, 8 for the 1st, 8 for the 2nd and 7 for the 3rd which gives the correct answer.

But I don't understand why the first method gave the wrong answer. I guess it is something like when the first 3 digits are odd, the last one has only 2 ways of filling, but I am not sure.

In your first attempt you forgot that if 0 was one of the previous digits, then there are 7 possibilities for the first digit. It's only 6 if you haven't yet had a 0.
 
  • #3
It is not certain that you will have only 6 possibilities for the first digit in your original approach. If 0 was used in one of the middle positions, then you would have 7 possibilities.
 
  • #4
So, that means I have to necessarily do it with the second method, right?
 
  • #5
Yashbhatt said:
So, that means I have to necessarily do it with the second method, right?

You don't have to do it that way, although it's almost certainly the simplest.

To rescue your original approach, you'd have to consider 2 cases: where 0 was one of the middle digits; and, where 0 was not one of the middle digits. You'd get the right answer, but it would be more complicated.
 
  • #6
Okay. Now I get it.

But also won't we have to consider different cases when the first three are odd, and two are odd etc.? Because that changes the no. of ways in which the last digit can arrange itself.
 
  • #7
Yashbhatt said:
Okay. Now I get it.

But also won't we have to consider different cases when the first three are odd, and two are odd etc.? Because that changes the no. of ways in which the last digit can arrange itself.

Yes, this is why it is most convenient to start with the last digit and then the first (the first cannot be zero or the one chosen for the last digit, which is not zero since it is odd).
 
  • #8
Okay.
 

FAQ: A simple combinatorics problem

What is a simple combinatorics problem?

A simple combinatorics problem involves counting the number of ways to choose or arrange a set of objects or events, usually without replacement.

What are the basic principles of combinatorics?

The basic principles of combinatorics include the multiplication principle, the addition principle, and the principle of inclusion-exclusion.

How do you approach a combinatorics problem?

To approach a combinatorics problem, you should first identify the type of problem (e.g. counting with or without replacement, permutations, combinations) and then apply the appropriate principles and formulas.

What are some common applications of combinatorics?

Combinatorics is used in various fields such as mathematics, computer science, and statistics. It can be applied to solve problems in probability, scheduling, coding theory, and more.

What are some tips for solving combinatorics problems?

Some tips for solving combinatorics problems include drawing diagrams or tables, breaking the problem into smaller parts, and checking your work using different methods or formulas.

Similar threads

Replies
23
Views
1K
Replies
5
Views
2K
Replies
1
Views
1K
Replies
6
Views
1K
Replies
1
Views
863
Replies
11
Views
1K
Back
Top