Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

How many bit strings of length \({\rm{10}}\) over the alphabet \({\rm{\{ a,b,c\} }}\) have either exactly three \({\rm{a}}\)s or exactly four \({\rm{b}}\)s?

Short Answer

Expert verified

The number of bit strings of length \({\rm{10}}\) over the alphabet \({\rm{\{ a,b,c\} }}\) that have either exactly three \({\rm{a's}}\) or exactly four \({\rm{b's}}\) is \({\rm{24,600}}\) strings.

Step by step solution

Achieve better grades quicker with Premium

  • Unlimited AI interaction
  • Study offline
  • Say goodbye to ads
  • Export flashcards

Over 22 million students worldwide already upgrade their learning with Vaia!

01

Concept Introduction

Product rule: If one event can occur in\({\rm{m}}\)ways and a second event can occur in\({\rm{n}}\)ways, then the number of ways that the two events can occur in sequence is then\({\rm{m}} \cdot {\rm{n}}\).

Subtraction rule: If an event can occur either in\({\rm{m}}\)ways or in\({\rm{n}}\)ways (overlapping), the number of ways the event can occur is then\({\rm{m + n}}\)decreased by the number of ways that the event can occur commonly to the two different ways.

Definition of permutation (order is important) is –

No repetition allowed:\({\rm{P(n,r) = }}\frac{{{\rm{n!}}}}{{{\rm{(n - r)!}}}}\)

Repetition allowed:\({{\rm{n}}^{\rm{r}}}\)

Definition of combination (order is important) is –

No repetition allowed:\({\rm{C(n,r) = }}\frac{{{\rm{n!}}}}{{{\rm{r!(n - r)!}}}}\)

Repetition allowed:\({\rm{C(n + r - 1,r) = }}\frac{{{\rm{(n + r - 1)!}}}}{{{\rm{r!(n - 1)!}}}}\)

With\({\rm{n! = n}} \cdot {\rm{(n - 1)}} \cdot ... \cdot {\rm{2}} \cdot {\rm{1}}\).

02

Strings with three \({\rm{a's}}\)

Let the string contain three\({\rm{a's}}\). First select the\({\rm{3}}\)positions of the\({\rm{a's}}\)out of the\({\rm{10}}\)possible positions. The order of the positions does not matter (since they all contain the same element), thus it is needed to use the definition of combination and repetition of positions is not allowed.

\(\begin{array}{c}{\rm{C(10,3) = }}\frac{{{\rm{10!}}}}{{{\rm{3!(10 - 3)!}}}}\\{\rm{ = }}\frac{{{\rm{10!}}}}{{{\rm{3!7!}}}}\\{\rm{ = 120}}\end{array}\)

Since the string has length\({\rm{10}}\), then it is still needed to select\({\rm{7}}\)bits from the\({\rm{2}}\)possible answers\((b,c)\).

The order is important (different order of leads to different strings) and repetition is allowed (because the same bits can occur), thus it is needed to use permutation.

\(\begin{array}{c}{{\rm{n}}^{\rm{r}}}{\rm{ = }}{{\rm{2}}^7}\\{\rm{ = 128}}\end{array}\)

Using the product rule –

\({\rm{120}} \cdot {\rm{128 = 15,360}}\)

03

Strings with four \({\rm{b's}}\)

Let the string contain four\({\rm{b's}}\). First select the\({\rm{4}}\)positions of the\({\rm{b's}}\)out of the\({\rm{10}}\)possible positions. The order of the positions does not matter (since they all contain the same element), thus it is needed to use the definition of combination and repetition of positions is not allowed.

\(\begin{array}{c}{\rm{C(10,4) = }}\frac{{{\rm{10!}}}}{{{\rm{4!(10 - 4)!}}}}\\{\rm{ = }}\frac{{{\rm{10!}}}}{{{\rm{4!6!}}}}\\{\rm{ = 210}}\end{array}\)

Since the string has length\({\rm{10}}\), then it is still needed to select\({\rm{6}}\)bits from the\({\rm{2}}\)possible answers\((a,c)\).

The order is important (different order of leads to different strings) and repetition is allowed (because the same bits can occur), thus it is needed to use permutation.

\(\begin{array}{c}{{\rm{n}}^{\rm{r}}}{\rm{ = }}{{\rm{2}}^6}\\{\rm{ = 64}}\end{array}\)

Using the product rule –

\({\rm{210}} \cdot {\rm{64 = 13,440}}\)

04

Strings with three \({\rm{a's}}\) and four \({\rm{b's}}\)

Let the string contain three\({\rm{a's}}\)and four\({\rm{b's}}\). First select the\({\rm{3}}\)positions of the\({\rm{a's}}\)out of the\({\rm{10}}\)possible positions. The order of the positions does not matter (since they all contain the same element), thus it is needed to use the definition of combination and repetition of positions is not allowed.

\(\begin{array}{c}{\rm{C(10,3) = }}\frac{{{\rm{10!}}}}{{{\rm{3!(10 - 3)!}}}}\\{\rm{ = }}\frac{{{\rm{10!}}}}{{{\rm{3!7!}}}}\\{\rm{ = 120}}\end{array}\)

Nextselect the\({\rm{4}}\)positions of the\({\rm{b's}}\)out of the\({\rm{7}}\)remaining possible positions. The order of the positions does not matter (since they all contain the same element), thus it is needed to use the definition of combination and repetition of positions is not allowed.

\(\begin{array}{c}{\rm{C(7,4) = }}\frac{{{\rm{7!}}}}{{{\rm{4!(7 - 4)!}}}}\\{\rm{ = }}\frac{{{\rm{7!}}}}{{{\rm{4!3!}}}}\\{\rm{ = 35}}\end{array}\)

Since the string has length\({\rm{10}}\), then it is still needed to select\({\rm{3}}\)bits from the\({\rm{1}}\)possible remaining possible answer\((c)\).

The order is important (different order of leads to different strings) and repetition is allowed (because the same bits can occur), thus it is needed to use permutation.

\(\begin{array}{c}{{\rm{n}}^{\rm{r}}}{\rm{ = }}{{\rm{1}}^3}\\{\rm{ = 1}}\end{array}\)

Using the product rule –

\({\rm{120}} \cdot {\rm{35}} \cdot {\rm{1 = 4200}}\)

Using the subtracting rule –

\(\begin{array}{c}{\rm{15,360 + 13,440 - 4200 = 28,800 - 4200}}\\{\rm{ = 24,600}}\end{array}\)

Therefore, the result is obtained as \({\rm{24,600}}\).

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Suppose that and are integers with1k<n . Prove the hexagon identity(n1k1)(nk+1)(n+1k)=(n1k)(nk1)(n+1k+1) which relates terms in Pascal's triangle that form a hexagon.

How many permutations of the letters \(ABCDEFGH\) contain

a) the string \(ED\)?

b) the string \(CDE\)?

c) the strings \(BA\) and \(FGH\)?

d) the strings \(AB\;,\;DE\) and \(GH\)?

e) the strings \(CAB\) and \(BED\)?

f) the strings \(BCA\) and \(ABF\)?

In this exercise we will count the number of paths in the\(xy\)plane between the origin \((0,0)\) and point\((m,n)\), where\(m\)and\(n\)are nonnegative integers, such that each path is made up of a series of steps, where each step is a move one unit to the right or a move one unit upward. (No moves to the left or downward are allowed.) Two such paths from\((0,0)\)to\((5,3)\)are illustrated here.

a) Show that each path of the type described can be represented by a bit string consisting of\(m\,\,0\)s and\(n\,\,1\)s, where a\(0\)represents a move one unit to the right and a\(1\)represents a move one unit upward.

b) Conclude from part (a) that there are \(\left( {\begin{array}{*{20}{c}}{m + n}\\n\end{array}} \right)\) paths of the desired type.

What is the coefficient ofx7in(1+x)11?

a) What is the difference between an r-combination and an r-permutation of a set with n elements?

b) Derive an equation that relates the number of r-combinations and the number of r-permutations of a set with n elements.

c) How many ways are there to select six students from a class of 25 to serve on a committee?

d) How many ways are there to select six students from a class of 25 to hold six different executive positions on a committee?

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free