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 table shows the price for different numbers of icecream treats:
Natasha2012 [34]
The answer is a, yes
4 0
3 years ago
What answer choice is this and step by step explanation?
cupoosta [38]

Answer:

2.5/yr

Step-by-step explanation:

Every year the height of the tree goes up by 2.5 ft.

You can tell that by doing this

12-9.5=2.5

9.5-7= 2.5

7-4.5= 2.5

I hope this helps! tell me if I need to explain more!

6 0
3 years ago
PLEASE HELP WILL GIVE BRAINLIEST!!!!!!!!!!!!!!!!!!!!!!!!
STatiana [176]

Considering High School level question, answer can be written as:


A system of 2 linear equations is [two] dimensional. It is a graph of [two] lines. The solutions can be [unique] solution if the graph intersects. [No] solution if the lines are parallel - meaning they have the same slope, or [Infinitely many] solutions if they are the same line.


Explanation:

when two lines are drawn on a two-dimensional plane then there are only three possible cases:

Case1: lines will intersect

In that case you will get a unique solution at the intersection point.


Case2: lines are parallel but don't touch each other

In that case there will be no point which lies on both lines so No solution.


Case3: lines are overlapping.

In that case all the points lies on both lines so infinitely many solutions.


6 0
3 years ago
What type of number has a decimal that does not repeat or end?
galina1969 [7]
A number that has a decimal that does not repeat or end in an irrational number.  The decimal goes on forever, without a pattern.  Think of it as it is irrational to keep going on and on and on.   Irrational numbers also cannot be put into fractions.
-5 is an integer, it is a whole (positive or negative without a decimal/fraction) number.  An integer can be any whole number as long as it is a whole number and does not have a decimal.<span />
4 0
3 years ago
The length of the minute hand is 150% of the length of the hour hand.
tangare [24]
The hour hand is 30 mm hope this is right
7 0
4 years ago
Other questions:
  • 2m-7greater than or equal to 13-2m
    7·1 answer
  • How many times can 64 go into 84
    9·2 answers
  • Which equation in point slope form contains the points (6,2) and (2,4)
    15·1 answer
  • Net pay is the difference between a worker’s gross income and his or her deductions. A person’s gross income for the year was $6
    15·1 answer
  • What is the sum of the interior angles in a hendecagon
    9·2 answers
  • Seven of the 10 children at Art can't make an average of 8 paintings. The remaining children make an average of 12 paintings. Wh
    13·1 answer
  • Please help here is the problem!
    12·1 answer
  • HELP DUE IN 10 MINS!
    15·1 answer
  • Need help solving these questions!!! PLEASE HELP AS SOON AS YOU CAN!! 7.
    10·1 answer
  • Drag the dots to plot (0,6.5), (-5,-5), and (1,9).<br> Help
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!