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
The cost of ordering multiple items is sometimes, always or never proportional
AlladinOne [14]
Unless there is no promotion like "buy 2 get 1 free" or "buy 2 get 1 for 50%" etc. then the cost of ordering multiple items is always proportional. Let's say something costs $5. Two items will cost $10, three $15, four $20 etc. These numbers are all proportional. Hopefully that's what you meant :)
8 0
3 years ago
A recipe for a large batch of brownies uses one kilogram of sugar. Another recipe uses 800 grams of flour. How much sugar is nee
Nady [450]
1,600 800+800=1,600 this is your answer
7 0
3 years ago
What's greater 5/6 or7/9
Vesna [10]

Answer:

5/6 is greater

Step-by-step explanation:

First obtain a common denominator for the fractions. Multiply the denominator of one fraction to the denominator of another and that is the denominator for the new fractions (54). Then multiply the denominator of one fraction to the numerator of the other one to obtain the new numerator. (e.g. 5*9=45 so 5/6 ->45/54) do this to the other fraction and you will see that 7/9 -> 42/54 and 45/54 is greater than 42/54 so 5/6 is greater .

8 0
3 years ago
Read 2 more answers
2x&lt;15<br> solve for x<br> Simplify equation
aniked [119]

Answer:

x<7.5

Step-by-step explanation:

  • 2x/2<15/2
  • x<15/2

3 0
3 years ago
A student took a 20 question test. 16 of the questions were correct. What percent of the questions did the student get correct?
elena-14-01-66 [18.8K]

Answer:

80%

Step-by-step explanation:

16/20 = 0.80

80%

5 0
3 years ago
Read 2 more answers
Other questions:
  • A bag contains 30 red tiles, 15 green tiles, and 5 yellow tiles. One tile is drawn and then replaced. Then a second tile is draw
    6·1 answer
  • Edna has a bag of chocolates. There are 12 milk chocolates, 14 dark chocolates, and 9 chocolate-covered almonds. She reaches int
    13·2 answers
  • Help please and thank you!!!
    12·1 answer
  • A circular garden has a diameter of 10 meters. what is the area of the garden in square meters? Use 3.14
    6·2 answers
  • CAN SOMEONE PLEASE HELP I DON´t GET THE POINTS ON THE LINEEE PLEASE I WILL GIVE YOU A BRAINLIEST
    7·1 answer
  • Four different ' four 4's problems ( where they all equal a different #) and four different four 4's that equal the same #
    9·1 answer
  • True or False <br> Stock Prices are easy to predict?
    12·1 answer
  • A market research analyst claims that 32% of the people who visit the mall actually make a purchase. You think that less than 32
    13·1 answer
  • Find two numbers whose sum is 27 and product is 365​
    14·2 answers
  • What is the messure of N and the two angles; an-16 and 6n
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!