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]
4 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]4 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
7 times what equals 17?
Shalnov [3]

Answer:

119

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
The distance from earth to the moon is about 22^4 miles. The distance from the Earth to Neptune is about 22^7 miles. Which dista
Marta_Voda [28]
22^4 = <span>234256 miles

22^7= </span><span>2494357888 miles
Obviously the moon is much closer. It is about 10000 x closer</span>
3 0
3 years ago
Simplify the expression below?
I am Lyosha [343]

Answer:

B. 9k^2 + 5k - 1

Step-by-step explanation:

4k^2 + 5k - 3 + 5k^2 + 2

= 4k^2 + 5k^2 + 5k - 3 + 2

= 9k^2 + 5k - 1

6 0
3 years ago
Read 2 more answers
Colleen is 15 years from retiring. She opens an account at chas. She plans to deposit 10,000 each year
Vladimir79 [104]

Answer:

150,000

Step-by-step explanation:

15x10000=150,000

5 0
3 years ago
Read 2 more answers
PLEASE HELP ME SOMEBODY<br> (2 questions)
Rudiy27

Step-by-step explanation:

-8x+5x-9=6

-8x+5x= -3x

-3x=6

6/-3

x=-2

Add 6 to both sides and divide both sides by 5

3 0
3 years ago
Other questions:
  • Consider this expression.
    13·1 answer
  • A human heart beats 2,956,575,000 times in 75 yrs how many times does a heart beat in one yr
    14·1 answer
  • F(x) = 8-4x+X²<br> g(x) = 2x² +5x-1<br> find f(x) + g(x)
    14·2 answers
  • Graph the linear equation
    15·1 answer
  • True of False. For every line segment there is exactly one midpoint.
    12·1 answer
  • Find the value of the variables, If your answer is not an integer leave it in simplest radical form.
    6·1 answer
  • Can someone help me out with this my grade are bad
    12·1 answer
  • Define the transformations in f(x) = -1/3|2x - 3|+ 2 from f(x) = |x|
    11·1 answer
  • For a brainly pls justify answer
    9·1 answer
  • What does it mean to say that a function is linear?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!