answer.
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
Finger [1]
2 years ago
10

A) Find a recurrence relation for the number of bit strings of length n that contain a pair of consecutive 0s.

Mathematics
1 answer:
Fed [463]2 years ago
7 0

Answer:

A) a_{n} = a_{n-1} + a_{n-2} + 2^{n-2}

B) a_{0} = a_{1} = 0

C)   for n = 2

  a_{2} = 1

for n = 3

 a_{3} = 3

for n = 4

a_{4} = 8

for n = 5

a_{5} = 19

Step-by-step explanation:

A) A recurrence relation for the number of bit strings of length n that contain a  pair of consecutive Os can be represented below

if a string (n ) ends with 00 for n-2 positions there are a pair of  consecutive Os therefore there will be : 2^{n-2} strings

therefore for n ≥ 2

The recurrence relation for the number of bit strings of length 'n' that contains consecutive Os

a_{n} = a_{n-1} + a_{n-2} + 2^{n-2}

b ) The initial conditions

The initial conditions are : a_{0} = a_{1} = 0

C) The number of bit strings of length seven containing two consecutive 0s

here we apply the re occurrence relation and the initial conditions

a_{n} = a_{n-1} + a_{n-2} + 2^{n-2}

for n = 2

  a_{2} = 1

for n = 3

 a_{3} = 3

for n = 4

a_{4} = 8

for n = 5

a_{5} = 19

You might be interested in
In a survey respondents were asked which type of movie they watched most often. the bar graph shows how many males and how many
Y_Kistochka [10]
Males that watched action movies : 13
males that watched drama movies : 5

so there are (13 - 5) = 8 more that watched action then drama
6 0
1 year ago
Read 2 more answers
This year I will have 180 hours free in which I can watch TV or watch movies. Each movie lasts 2 hours, and I'll be able to watc
bekas [8.4K]

Step-by-step explanation:

ESLAC  

5 0
2 years ago
2 A pharmacist has a 13 % alcohol solution and another 18 % alcohol solution. How much of each must he use to make 50 grams of a
nalin [4]
<h2>Therefore he took 40 gram of 1^{st} type solution and 10 gram of 2^{nd} type solution.</h2>

Step-by-step explanation:

Given that , A pharmacist 13% alcohol solution another 18% alcohol solution .

Let he took x gram solution of 1^{st} type solution

and he took (50-x) gram of 2^{nd} type solution.

Total  amount of alcohol =[x\times\frac{13}{100}] +[(50 -x) \times\frac{18}{100} ] gram

Total amount of solution = 50 gram

According to problem

⇔\frac{ [x\times\frac{13}{100}] +[(50 -x) \times\frac{18}{100} ]}{50}= \frac{14}{100}

⇔\frac{13x +900-18x}{100\times50} =\frac{14}{100}

⇔- 5x= 700 - 900

⇔5x = 200

⇔x = 40 gram

Therefore he took 40 gram of 1^{st} type solution and (50 -40)gram = 10 gram of 2^{nd} type solution.

7 0
2 years ago
Read 2 more answers
A town has a population of 14,000 and grows 5% every year. What will be the population after 14 years, to the nearest whole numb
hammer [34]

Answer:

23,800 people

Step-by-step explanation:

what is 5 % of 14,000- 700( 0.05 times 14,000)

700 times 14 is 9,800

9800 + 14000 is

0 0
2 years ago
You have a rectangular yard that measures 16 feet long 14 feet wide. It is covered in grass except for the center, where there i
aalyn [17]
First, get the area of the rectangular yard.
Area = L x W 
Area = 16 X 14
Area = 224 square feet

Get the area of the circular fountain.
Area = pi x r^2
Area = 3.1415 x (4/2)^2
Area = 12.57 square feet

Getting grass portion.
224 - 12.57 = (C) 211.43 square feet
8 0
2 years ago
Other questions:
  • The instructor had saved $3,500 and rents an apartment for $275 monthly. He believes the point (6, 1850) would be on the equatio
    7·2 answers
  • Matthew paid $779,000 for a ten-room apartment building nine years ago. the building has lost 2.7% of its value every year. matt
    14·2 answers
  • A survey of 100 people found that 35 people exercise in the morning, 45 people exercise in the afternoon, and 20 people exercise
    6·2 answers
  • The equation to determine the weekly earnings of an employee at the hamburger shack is given by w(x), where x is the number of h
    7·1 answer
  • Construct an interval estimate for the given parameter using the given sample statistic and margin of error. For μ1-μ2, using x¯
    10·1 answer
  • For a certain population of men, 8 percent carry a certain genetic trait. For a certain population of women, 0.5 percent carry t
    15·1 answer
  • In the diagram of circle P, m∠XYZ is 72°. What is the value of x? 108° 144° 216° 252°
    5·2 answers
  • Dana surveyed students in her class. She found that 8 earned an A, 6 earned a B, 4 earned a
    5·1 answer
  • Select the correct values in the table.
    14·1 answer
  • Problem: It takes 1200 workers 8 years to build 3 ziggurats. How many years would It take 1600 workers to build 25 ziggurats? ​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!