Counting problem (book wrong?)

I hope so. For your case 1, letters 3-6 can be anything. Letters 7-8 can be anything except BO. That's 26^4*(26^2-1).In summary, the conversation discusses the different cases for all possible combinations of a string of length 4 with exactly three 9's. The first attempt at a solution is incorrect because it does not account for the fact that the third column in Case 2 represents any digit that is not 9, while the third column in Case 3 represents a 9. The correct solution is 9 + 9 + 9 + 9 = 36, as each case has 9 distinct strings with exactly three 9's
  • #1
Miike012
1,009
0
Question and my solution is in the paint document.

Case 1 - Case 3 represents all possible combinations of string of length 4 with exactly three 9's.

The d represents a digit that is not 9.
d = 0 or 1 or 2 or 3 or ... or 8: This is 9 options.

Notice that none of the cases 1 - 3 have identical strings because,
Case 1 cannot be equal to any of the strings in case 2 or 3 because Case 1 start with a 9 where case 2 starts with d which cannot be a 9 also case 1 ends with a 9 where case 3 ends with a d which cannot be a 9. Finally the third column of case 2 is a d and the third column of case 3 is a 9.
Therefore each case has 9 distinct strings with exactly three 9's and 9(3) = 27.
The book solution is
9 + 9 + 9 + 9 = 36.
Book solution is in paint doc.
 

Attachments

  • BW.jpg
    BW.jpg
    13.1 KB · Views: 350
Physics news on Phys.org
  • #2
Miike012 said:
Question and my solution is in the paint document.

Case 1 - Case 3 represents all possible combinations of string of length 4 with exactly three 9's.

The d represents a digit that is not 9.
d = 0 or 1 or 2 or 3 or ... or 8: This is 9 options.

Notice that none of the cases 1 - 3 have identical strings because,
Case 1 cannot be equal to any of the strings in case 2 or 3 because Case 1 start with a 9 where case 2 starts with d which cannot be a 9 also case 1 ends with a 9 where case 3 ends with a d which cannot be a 9. Finally the third column of case 2 is a d and the third column of case 3 is a 9.
Therefore each case has 9 distinct strings with exactly three 9's and 9(3) = 27.
The book solution is
9 + 9 + 9 + 9 = 36.
Book solution is in paint doc.

The book's solution is correct. Their illustration of the cases is stupidly wrong. There are four cases. What's the missing one?
 
  • #3
Dick said:
The book's solution is correct. Their illustration of the cases is stupidly wrong. There are four cases. What's the missing one?

Case 2:
9 d 9 9.
 
  • #4
Miike012 said:
Case 2:
9 d 9 9.

Sure. There are four cases, not three. That's a pretty odd mistake to make.
 
  • #5
Dick said:
Sure. There are four cases, not three. That's a pretty odd mistake to make.

Sure is, thanks for your help. I am going to post another one in this thread in a minute maybe you can help me with this one.
 
  • #6
Case 1: Start with BO (In that order)
Case 2: End with BO (In that order)
Case 3: Start with BO and end with BO (In that order)

L represents All letters not B, therefore all strings in a case are different from all other strings in the other two cases.

Case 1: Start with BO, therefore column 3 - 6 and 8 have 26 options column 7 has 25 options,
265*25 total options.

Case 2: 265*25 total options.

Case 3: 264 Total options

Sum of all options from Case 1-3 is 594525776.

The answer is 617374576.
I am way off.

I have a second solution in post number 7 (which is correct) but I want to know why the solution in this post is wrong.
 

Attachments

  • QQQ.jpg
    QQQ.jpg
    13.5 KB · Views: 390
Last edited:
  • #7
However I get the correct answer if I have the two following cases.

Case 1: B O _ _ _ _ _ _
26^6 total options
Case 2: _ _ _ _ _ _ B O
26^6 total options

Now if I look at Case 2 and compare it to case 1 the only strings that are identical would be the strings of the form,

B O _ _ _ _ B O
26^4 options that are in common.
Therefore the answer is

26^6 + 26^6 - 26^4.

I just want to know why my first attempt failed...?
 
  • #8
Miike012 said:
However I get the correct answer if I have the two following cases.

Case 1: B O _ _ _ _ _ _
26^6 total options
Case 2: _ _ _ _ _ _ B O
26^6 total options

Now if I look at Case 2 and compare it to case 1 the only strings that are identical would be the strings of the form,

B O _ _ _ _ B O
26^4 options that are in common.
Therefore the answer is

26^6 + 26^6 - 26^4.

I just want to know why my first attempt failed...?

Your second attempt is so clearly correct, I'm having trouble trying to figure out why you think the first attempt might be correct. What makes column 7 different from column 8? The number that start with BO and don't end with BO is 26^4(26^2-1), isn't it?
 
  • #9
Dick said:
Your second attempt is so clearly correct, I'm having trouble trying to figure out why you think the first attempt might be correct. What makes column 7 different from column 8? The number that start with BO and don't end with BO is 26^4(26^2-1), isn't it?

Case 1: Col 7 is different from col 7 of cases 2 and 3 because L represents all letters that are not B.

The number 26^4(26^2-1) is referring to case 1 correct? The reason I have 25*26^5 is because col 1 and col 2 are set therefore my only options are col 3,4,5,6, and 8 which can all be letters a through z, 26 options. col 7 can be any letter that is not B therefore there are 25 options.
That is how I arrived at the number 25*26^5
 
  • #10
Nevermind I see where I went wrong.
 
  • #11
Miike012 said:
Nevermind I see where I went wrong.

I hope so. For your case 1, letters 3-6 can be anything. Letters 7-8 can be anything except BO. That's 26^4*(26^2-1).
 

1. What is a counting problem?

A counting problem is a type of mathematical problem that involves determining the number of possible outcomes in a given scenario. It is often used in probability and combinatorics.

2. How do you solve a counting problem?

To solve a counting problem, you need to identify the type of problem it is (e.g. permutation, combination, etc.) and then use the appropriate formula or method to calculate the number of possible outcomes.

3. What is the difference between a permutation and a combination?

A permutation is an arrangement of objects in a specific order, while a combination is a selection of objects without regard to order. In a permutation, order matters, while in a combination, it does not.

4. Can a counting problem have more than one correct answer?

Yes, depending on the scenario and the type of counting problem, there may be multiple correct answers. For example, in a combination problem, there may be several different combinations that result in the same outcome.

5. How do you know if you have solved a counting problem correctly?

To ensure that you have solved a counting problem correctly, you can double-check your work using a different method or formula. You can also use real-life examples or scenarios to confirm your answer.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
7
Views
678
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
23
Views
1K
  • Precalculus Mathematics Homework Help
Replies
1
Views
525
  • Precalculus Mathematics Homework Help
Replies
19
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
877
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
  • Precalculus Mathematics Homework Help
Replies
1
Views
985
Back
Top