A simple combinatorics problem

  • Thread starter Thread starter Yashbhatt
  • Start date Start date
  • Tags Tags
    Combinatorics
Click For Summary

Homework Help Overview

The discussion revolves around a combinatorics problem concerning the calculation of 4-digit odd numbers without repetition. Participants are exploring the constraints and possibilities related to digit selection, particularly focusing on the placement of odd digits and the implications of including zero.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss two different approaches to calculating the number of valid 4-digit odd numbers. One participant expresses confusion over why their initial calculation yielded an incorrect result, while others suggest considering different cases based on the inclusion of zero and the parity of the digits.

Discussion Status

The discussion is ongoing, with participants questioning the assumptions made in their calculations and exploring alternative methods. Some guidance has been offered regarding the necessity to consider cases based on the digits chosen, particularly the role of zero and the arrangement of odd digits.

Contextual Notes

Participants note that the problem involves specific constraints, such as the prohibition of repetition and the requirement for the last digit to be odd. There is also mention of the complexity introduced by the inclusion of zero in the digit selection process.

Yashbhatt
Messages
348
Reaction score
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
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.
 
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.
 
So, that means I have to necessarily do it with the second method, right?
 
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.
 
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.
 
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).
 
Okay.
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
23
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K