Question

How many ternary strings of length 8 begin with 01 or end with 1? (A ternary...

How many ternary strings of length 8 begin with 01 or end with 1? (A ternary string consists of 0s, 1s, and 2s.)

Homework Answers

Answer #1

We know length of string that is 8.

We want to start with 01 or end with 1

So let us consider the string which starts with 01 so we are left with 6 places to fill with 0s, 1s and 2s. There are 3 possibilities for each place hence total number of such string will be 3​​​​​​6.

Now we want our string to end with 1. There are 7 places left to fill with 0s, 1s and 2s. So each place has 3 possiblities hence there are 3​​​​​​7 such strings.

Since we want either of the strings. We will add both and hence there are 3​​​​​​6 + 3​​​​​​7 = 4*3​​​​​​6 strings of length 8 which begin with 01 or end with 1.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Do each of the following. a) How many ternary strings of length 20 contain at least...
Do each of the following. a) How many ternary strings of length 20 contain at least four 1s? (Hint: A ternary string consists of 0s, 1s, and 2s.) b) How many ternary strings of length 20 contain exactly four 1s?
1. (4 pts) Consider all bit strings of length six. a) How many begin with 01?...
1. (4 pts) Consider all bit strings of length six. a) How many begin with 01? b) How many begin with 01 and end with 10? c) How many begin with 01 or end with 10? d) How many have exactly three 1’s? 2. (8 pts) Suppose that a “word” is any string of six letters. Repeated letters are allowed. For our purposes, vowels are the letters a, e, i, o, and u. a) How many words are there? b)...
3))Find a recurrence relation for the number of ternary strings of length ? ≥ 1 that...
3))Find a recurrence relation for the number of ternary strings of length ? ≥ 1 that contain at least two 0s. What are the initial conditions?
how many 8 bit strings begin or end with 1 ? * Is there a simple...
how many 8 bit strings begin or end with 1 ? * Is there a simple way of solving this problem ?*
How many ternary strings (strings of elements taken from the set{0,1,2}) of length2n are there in...
How many ternary strings (strings of elements taken from the set{0,1,2}) of length2n are there in which the zeroes appear only in all odd-numbered positions? How many ternary strings of length 7 will contain at least one 0?
How many bit strings of length 20 are there that contain eight 1s and twelve 0s...
How many bit strings of length 20 are there that contain eight 1s and twelve 0s so that each 1 is followed by one 0 immediately?
Discrete Math a.) How many bit strings are there of length five or less, not counting...
Discrete Math a.) How many bit strings are there of length five or less, not counting the empty string? b.) How many different three-letter initials with none of the letters repeated can people have? c.) How many different three-letter initials are there that begin with the letter B? d.) How many 5-element DNA sequences end with A? e.) How many bit strings of length nine both begin and end with 1?
1. Solve the following two " union " type questions: (a) How many bit strings of...
1. Solve the following two " union " type questions: (a) How many bit strings of length 9 either begin with 2 0s or end with 2 1s? (inclusive or) (b) Every student in a discrete math class is either a computer science or a mathematics major or is a joint major in these two subjects. How many students are in the class if there are 30 computer science majors (including joint majors), 20 math majors (including joint majors) and...
How many bit strings with length 8 does not contain two consecutives 1’s, i.e., does not...
How many bit strings with length 8 does not contain two consecutives 1’s, i.e., does not contain the sub string 11.
(1) How many bitstrings of length 8 begin with two 1’s or end with three 1’s?...
(1) How many bitstrings of length 8 begin with two 1’s or end with three 1’s? (2) How many bitstrings of length 10 contain three consecutive 0’s or 4 consecutive 1’s?