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]
2 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]2 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
Help! This is so confusing please
Rus_ich [418]

Given equation is f(x)=6^x

Now it says to find f(2)

that simply means plug x=2 because we see that 2 is written in place of x in f(x) and f(2)

f(2)=6^2

f(2)=6*6

f(2)=36

Hence final answer is f(2)=36

4 0
3 years ago
Read 2 more answers
Solve the inequalities <br> x2 &lt; 3 - 2x
ddd [48]

Inequality Form:

−3 < x < 1

3 0
3 years ago
Write the equation of the line passing through points ( -2,-5) and (1,1)
Dennis_Churaev [7]

Answer:

The equation of the line is:

y=2x-1

Step-by-step explanation:

Given the points

  • (-2, -5)
  • (1, 1)

Finding the slope between the points

\mathrm{Slope}=\frac{y_2-y_1}{x_2-x_1}

\left(x_1,\:y_1\right)=\left(-2,\:-5\right),\:\left(x_2,\:y_2\right)=\left(1,\:1\right)

m=\frac{1-\left(-5\right)}{1-\left(-2\right)}

m=2

We know the slope-intercept form of the line equation

y=mx+b

where m is the slope and b is the slope-intercept form

substituting the value m=2 and the point (-2, -5) to find the b-intercept

y=mx+b

-5 = 2(-2) + b

b = -5+4

b = -1

Now, substituting m=2 and b=-1 in the slope-intercept form to get the equation of a line

y=mx+b

y=2x+(-1)

y=2x-1

Thus, the equation of the line is:

y=2x-1

8 0
3 years ago
Find the value of x. Round to the nearest degree.
Fantom [35]

Answer:

x = 51

Step-by-step explanation:

Here, we want to find the value of x

To do this, we are going to use the appropriate trigonometric identity

We have the side facing the right angle ( hypotenuse) and the side facing the angle given (opposite)

The trigonometric identity that links both is the sine and it is the ratio of the opposite to the hypotenuse

Thus, we have it that;

sine x = 7/9

x = arisine (7/9)

x = 51

4 0
3 years ago
Farouc Jaffer.
harkovskaia [24]

Answer:

1996.66.......

Step-by-step explanation:

6 0
3 years ago
Other questions:
  • Find the linear approximation of the data that passes through the points (5, 3) and (20, 6).
    5·1 answer
  • Carmen bought x candy bars. She gave three of them away.
    13·1 answer
  • What is the definition of 'distributive property'?
    15·2 answers
  • Identify the transformation of the function f(x)=|x| by observing the equation of the function g(x)=|x+3|
    12·1 answer
  • Break apart 35 into 30+5=
    11·1 answer
  • Identify the binomial
    11·1 answer
  • Patterns find next 2 numbers 1.) 7,4,1,-2,__,__ <br> 2.) 1,4,9,16,__,__ <br> 3.) 0,1,8,27,__,__
    10·1 answer
  • Can I get help on this math question plz I need it
    14·2 answers
  • Find the equation of the line
    15·1 answer
  • D Cuales son cángulos agudo<br>?​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!