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
How do I solve this equation?
shusha [124]

Answer:

x≤-4 or x≥0.5

Step-by-step explanation:

3 0
3 years ago
Find the probability of getting tails on every toss of a coin when the coin is tossed 5 times.
icang [17]

Answer:

1/10, or 10%

Step-by-step explanation:

There are 2 outcomes you can get from one toss, heads and tails. Therefore, if you tossed it once, the probability of landing tails would be 1/2, or 50%. Since you toss it 5 times, you will multiply the probability of one toss by five. 1/2x5 = 1/10, so your probability of landing tails on every toss when thrown 5 times is 1/10, or 10% :)

5 0
3 years ago
What number is 7.5 more than 7.4?
Lorico [155]

Answer:

the answer is 14.9

3 0
3 years ago
Suppose that a population parameter is 0.1, and many samples are taken from the population. If the size of each sample is 90, wh
mr Goodwill [35]
I think the answer is Letter C - 0.032.

Given: p - 0.1; n - 90
Required: standard deviation of the sample proportion
Solution: To get the standard deviation of the sample proportion, we will use this formula - std = √p (1 - p) / n Replace the variables with the given values, then simplify.
   std = √0.1 (1 - 0.1) / 90
   std = √0.09 / 90
   std = √0.001
   std = 0.032
3 0
4 years ago
Read 2 more answers
Nellie has pulled 7 yellow marbles and 7 other marbles from a large bag. What is The experimental probability that the next marv
uranmaximum [27]

Answer:

1/2

Step-by-step explanation:

Please kindly check the attached file for explanation

7 0
3 years ago
Other questions:
  • Solve the following problems:
    7·1 answer
  • The cost of pumpkin seeds is proportional to
    14·1 answer
  • (×2+1)(x3+2x)(x2+4x-16i-4xi) Solve for the roots in equation
    13·1 answer
  • What is the measurement of QP? Please show all the work on how you got your answer
    15·1 answer
  • EMERGENCY!<br><br> How many cubes with side lengths of 1/4 cm does it take to fill the prism?
    11·1 answer
  • 20
    13·2 answers
  • Delia can buy 3 identical sweatshirts for a total of $30. How much would it cost if she were to buy 4 of the same sweatshirts at
    12·1 answer
  • A manufacturer of potato chips would like to know whether its bag filling machine works correctly at the 429.0429.0 gram setting
    14·1 answer
  • 3,9,15 find the 45th term
    5·2 answers
  • Please help quickly.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!