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
masha68 [24]
3 years ago
13

A palindrome is a string whose reversal is identical to the string. How many bit strings of length n are palindromes?

Mathematics
1 answer:
alisha [4.7K]3 years ago
4 0

Answer:

The number of  palindromes is  

      2^{\frac{n}{2} } when n is even and

      2^{\frac{n +1}{2}  } when n is odd

Step-by-step explanation:

From the question we are told that

    The  length of the string is  n

Generally palindrome is evaluated by considering the first part of a string

  When the the length of the string is an even number then

it means that the first part of the string is \frac{n}{2}

Hence the number of  bit strings of length n that are  palindromes is evaluated as

       p(n_{even }) =  2^{\frac{n}{2} }

But When the the length of the string is an odd number then

it means that the first part of the string is \frac{n-1}{2}

Hence the number of  bit strings of length n that are  palindromes is evaluated as

       p(n_{odd }) =2^{\frac{n -1}{2} +1 } = 2^{\frac{n +1}{2}  }

Generally each bit could be either 0 or  1

Hence the number of  palindromes is  

      2^{\frac{n}{2} } when n is even and

      2^{\frac{n +1}{2}  }  when n is odd

           

You might be interested in
Ben made 1/4 bath of brownies in five minutes. How many minutes did it take to make 1 batch of brownies?
Rom4ik [11]

Answer:

It took 20 minutes to make 1 batch

Step-by-step explanation:

If 1/4 batch of brownies takes 5 minutes then you just multiply 5 times 4 and that equals 20.

8 0
3 years ago
Read 2 more answers
What value of k makes the equation k + 4 divided by 0.2 = 5 true?
Anna11 [10]
K=-15
Hope this helps ^^

6 0
3 years ago
Each cube in this figure is a -centimeter cube. What are the dimensions of the prism? Select all that are true.
finlep [7]

Answer:

he first one and the third one

Step-by-step explanation:

5 0
3 years ago
What's 11 2/3 times 2/3
snow_tiger [21]
7 7/9
chamge 11 2/3 to improper faction and multiply <span />
8 0
3 years ago
Read 2 more answers
Pleaseeee helpppp !!!!!!!!! Will mark Brianliest !!!!!!!!!!!!!
Mnenie [13.5K]

Answer:

MQ=14

Step-by-step explanation:

The two triangles are similar

So the equation is

12/72=x/12

1/6=x/12

x=2

4 0
3 years ago
Other questions:
  • C= 5/9
    7·1 answer
  • If one coin is flipped and then a second coin is flipped, what is the probability that both coins turn up tails? question 18 opt
    11·1 answer
  • 24 percent of the swim team members are new on the team. how many members are new?
    7·1 answer
  • In a Monopoly market, a firm is a price maker since there are no close substitutes to the product. You are asked to find the com
    7·1 answer
  • Dexter earns $12.50 each hour he helps his dad with landscaping.he helped his dad for 4.5 hours last weekend .How much did dexte
    6·1 answer
  • Find an equation that is equivalent to 2x+3y=6 in polar cordintates
    8·1 answer
  • The senior class is easing money for Grad Bash.The students parents are donating cakes for them to sell.The students plan to sel
    14·1 answer
  • Plz tell me all five and i will give u a brainliest
    7·1 answer
  • What is √15 divided by √12 simplified?
    14·1 answer
  • Joshua found out that there is a$25 nonrefundable equipment fee in addition to the hourly rates. How does this requirement chang
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!