1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
labwork [276]
3 years ago
8

How many bit strings of length 10 do not contain the substring 00? In other words, how many strings of length 10, consisting onl

y of 1 and 0, in which there are no two consecutive zeros?
(In response, write down only the number without spaces.)
Mathematics
1 answer:
vova2212 [387]3 years ago
5 0

Answer:

  144

Step-by-step explanation:

For a bitstring of length n, there are Fibonacci(n+2) strings containing no two consecutive zeros. This can be seen by constructing the strings starting with n=1.

1-bit strings: 1, 0 -- 2 strings not containing consecutive 0s

2-bit strings: 11, 10, 01 -- 3 strings not containing consecutive 0s

Note that we have added 1 to all the 1-bit strings, and added 0 only to the string ending in 1.

3-bit strings: 111, 110, 101, 011, 010 -- 5 strings not containing consecutive 0s

Note that these 5 strings consist of all (3) of the 2-bit strings with 1 appended, and all (1) of the 2-bit strings ending in 1 with 0 appended. The number that now end in 0 is the number previously ending in 1.

__

If (x, y) represents the numbers of n-bit strings ending in (0, 1), then the number of (n+1)-bit strings ending in (0, 1) is (y, x+y). That is, the recursive relation is ...

  (x_1,y_1)=(1,1)\\(x_n,y_n)=(y_{n-1},\,x_{n-1}+y_{n-1})\\b_n=x_n+y_n\quad\text{number of n-bit strings without consecutive 0s}

For n=1 to n=10, these pairs are ...

  (1, 1), (1, 2), (2, 3), (3, 5), (5, 8), (8, 13), (13, 21), (21, 34), (34, 55), (55, 89)

The sequence of b[n] values is ...

  2, 3, 5, 8, 13, 21, 34, 55, 89, 144

which are the n=3 to n=12 numbers from the Fibonacci sequence.

That is, there will be Fibonacci(12) = 144 10-bit strings with no consecutive 0s.

You might be interested in
If x is a positive integer then the solution set of 4x+2<14 is
taurus [48]
4x + 2 < 14
4x < 14 - 2
4x < 12
x < 12/4
x < 3 S = { x <3 }
3 0
3 years ago
Carl's property is assessed at $8,500. The property tax rate in his city is 1.35%. What is Carl's property tax?
eduard
Answer is $114.75. This is found by taking 1.35% of 8,500. 
6 0
3 years ago
Read 2 more answers
What is the poinet-slope form of the equation for the line in the graph?​
Ne4ueva [31]

Answer:

y -5 = \frac{9}{13}(x - 7)

Step-by-step explanation:

Given :

Two points are given in graph (-6, -4) and {7, 5).

The point-slope form of the equation of a straight line is:

y -y_{1} = m(x - x_{1})------------(1)

Let (x_{1}, y_{1})=(7,5) and (x_{2}, y_{2})=(-6,-4)

The slope of the line m=\frac{y_{2}- y_{1}}{x_{2}- x_{1}}

Put all known value in above equation.

m=\frac{-4- 5}{-6- 7}

m=\frac{-9}{-13}

m=\frac{9}{13}

The slope of the line m=\frac{9}{13}

We know m, and also know that (x_{1}, y_{1})=(7,5), so we put these value in equation 1.

y -5 = \frac{9}{13}(x - 7)

Therefore, the equation of the line is y -5 = \frac{9}{13}(x - 7).

6 0
3 years ago
PLEASE HELP!!
Lubov Fominskaja [6]

Answer:

a). y = 3/2x - 3/4    b).-2/3       c).y = -2/3x + 3

Step-by-step explanation:

a). 6x – 4y = 3

-4y = -6x + 3

y = 3/2x - 3/4

 - The slope is 3/2.

b). The slope of a perpendicular line would be the opposite: -2/3

c). y = -2/3x + b

-1 = -2/3(6) + b

-1 = -4 + b

3 = b

y = -2/3x + 3

6 0
3 years ago
1. Complete the tables of values below for graphing the secant and cotangent functions. You can type “U” for an undefined value.
Katyanochek1 [597]

Step-by-step explanation:

1. All the trigonometric values can be found using the unit circle.  See attached table.

2. Graph:

desmos.com/calculator/10n7yrm3tm

3. All trig functions are periodic functions.  The period of secant and cosecant is 2π.  The period of cotangent is π.

4. Using the table from step 1 and the graph from step 2, secant has a domain of x ≠ pi/2, 3pi/2 and a range of x ≤ -1, x ≥ 1.  Cotangent has a domain of x ≠ 0, pi, 2pi and a range of -∞ < x < ∞.

5. Graph:

desmos.com/calculator/tldiqt7qra

Cosecant has the same graph as secant shifted π/2 to the right.  So they have different domains, but the same range.

6 0
3 years ago
Other questions:
  • Given the statement:
    11·2 answers
  • Solve the equation: q – 17 = 23
    12·2 answers
  • Determine the x and y intercept for the graph of 7x+3
    12·1 answer
  • Assume the total cost of a college education will be $235,000 when your child enters college in 18 years. You presently have $53
    7·1 answer
  • 23/50 equals what percent
    8·2 answers
  • Question 20 PLEASE HELP Tell whether the equation: -x+4y=-5 represents a direct variation
    5·1 answer
  • What is this transformation?
    5·1 answer
  • Simon buys a laundry basket price at $14 if the sales tax is 10% how much tax will Simon Pay
    5·2 answers
  • Determine the effective annual yield for $1 invested for 1 year at 7.6% compounded semiannually.
    10·1 answer
  • A bad contains 35 colored maebles. There are 6 blue marbles. 7 red marbles. 12 yellow marbles and 10 clear marbles. What is the
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!