The least value of n for the series to be recursive is 3. Because to predict a series, we need atleast three elements.
Now, we will approximate the Series based on the Values of n i.e.
For n =1 :
Strings can be : (0,1)
So, Total Number of Strings : 2
For n =2 :
Strings can be : (00, 01, 10)
So, Total Number of Strings : 3
For n =3 :
Strings can be : (000, 001, 010, 100, 101)
So, Total Number of Strings : 5
For n =4 :
Strings can be : (0000, 0001, 0010, 0100, 1000, 0101, 1010, 1001)
So, Total Number of Strings : 8
and so on...
Now, take into Consideration, all the Total Number of Strings i.e. 2,3,5,8
If we look at this Series, it make a Normal Fibonacci Series.
So, the general Formula of a Fibonacci Series is our Required Ans i.e.
Please UpVote. It Helps. Thank You.
6. (10 points) Let Sn be the number of n-bit strings of O's and 1's that...
Let A be the set of all bit strings of length 10. 1. How many bit strings of length 10 are there? How many bit strings of length 10 begin with 1101? How many bit strings of length 10 have exactly six 0's? How many bit strings of length 10 have equal numbers of O's and 1's? How many bit strings of length 10 have more O's than 1's? a. b. c. d. e.
Discrete Math for COMP: (12 points) For each sequence described below, first find a recurrence relation for that sequence and then solve your recurrence relation. (a) The sequence Sn where 80 = 0, si-l and, for n 〉 1, sn s the average of the previous two terms of the sequence. (b) The sequence bn whose nth term is the number of n-bit strings that don't have two zeros in a rovw (c) The sequence en whose nth term is...
3. (10 points) Let T = {A, B,C), and let tn be the number of T-strings of length n which do not contain AA or BA as substrings. Find a recurrence for tn, and then use that to find a closed-form (i.e. non-recursive) formula for tn.
Discrete Mathematics 7. (15 points) Let an be the number of length n ({ne Zin 20}) ternary strings (strings made up of {0, 1, 2), ex. 01211120002) that contain two consecutive digits that are the same. For example, a = 3 since the only ternary strings of length 2 with matching consecutive digits are 00, 11, and 22. Also, a, = 0, since in order to have consecutive matching digits, a string must be of length at least two. a....
5. (8 pts) An n-bit string is a string of n digits consisting of only O's and 1's. a. How many 16-bit strings contain exactly seven 1's? b. How many 16-bit strings contain at least thirteen 1's? How many 16-bit strings contain at least one 1? d. How many 16-bit strings contain at most one 1? C.
Consider binary strings with n digits (for example, if n = 4 some of the possible strings are 0011, 1010, 1101, etc.) Let z be the number of binary strings of length n that do not contain the substring 000 Find a recurrence relation for z You are not required to find a closed form for this recurrence Consider binary strings with n digits (for example, if n = 4 some of the possible strings are 0011, 1010, 1101, etc.)...
explain why the recurrence relation for number of ternary strings of length n contains "01" 7. (10 points) Extra credit: Explain why the recurrence relation for number of ternary strings of length n that contain "01" is bn = 3n-1-bn-2 +31-2?
(4 points.) Consider the regular expression (11 + 00)'1(e + 01). . Give two strings of O's and 1's, each 6 to 12 characters long, that are both represented by this regular expression . Construct a nondeterministic finite automaton equivalent to the regular expression. (4 points.) Consider the regular expression (11 + 00)'1(e + 01). . Give two strings of O's and 1's, each 6 to 12 characters long, that are both represented by this regular expression . Construct a...
Discrete mathematics 2) Let be eumber of ternary strings (of 0s, 1s and 2s) of length n that have no adjacent even digits. For example, so (the empty string), s3 (the strings 0, 1 and 2), while s2 5: 01, 0, 12, 2 because the strings 00,02, 20, 22 are not allowed, as they have adjacent even digits. As another example, the string 10112 is allowed, while the strings 10012 and 120121 are not allowed (a) Find #3; (b) find...
) Find a recurrence relation for the number of ternary strings of length n≥1 that do not contain two or more consecutive 2s. (Hint: A ternary string consists of 0s, 1s, and 2s.)