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
What is the quotient of 3 and 3 over 5 Division sign 2 over 5
nevsk [136]
Dont understand can u use a pic
6 0
2 years ago
Read 2 more answers
If 139 is added to a number, the result is 44 less than four times the number. Find the number. Step 1 of 2: Use the variable x
lorasvet [3.4K]

Answer:

73

Step-by-step explanation:

let the number = X

If 139 is added, it becomes= X +139

the result becomes 44less than four time the number

= 4(39)-44 = 156-44 =112

the set up equation becomes

X +39 = 112

solving for the value of X

X = 112-39

X = 73

4 0
1 year ago
Isabella is getting older and feels like she should donate her collection of stuffed animals to children who are less fortunate.
Studentka2010 [4]

Answer:

well for the cats she can do 3 for each and dogs 2 for each

3 0
2 years ago
Which of these ratios is NOT the same (not equivalent)? 12/4 12:3 4 to 1 24:6
Margaret [11]

The answer is A: 12/4.

5 0
3 years ago
Read 2 more answers
21,400 in standard form
sweet-ann [11.9K]

Answer:

2.14 X 10(power4)

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • It took Mary 15 seconds to walk 10 feet. How fast was she walking, in feet per second?
    8·2 answers
  • What multiplied by itself 3 times gives you -216 please answer asap!!!
    13·2 answers
  • What n+5n in simplest form
    6·2 answers
  • Jamie wants to borrow $15,000 from South Western Bank. They offered a 4 year loan with an APR of 5.5%. How much will she pay in
    8·2 answers
  • Evaluate the given expression for x =-5.<br> -3x^2+7x+29<br><br> So what should be the answer
    12·2 answers
  • Simplify 3/4(3x+6)-1/4(5x-24)
    15·1 answer
  • Which eqation is true when k = -15
    6·1 answer
  • A ramp is being used to unload the back of a truck. The bottom of the ramp is 12 feet from the truck and the top of the ramp is
    11·2 answers
  • 28x^2 - 5x - 3 = 0 what is the answer
    11·1 answer
  • The area of the regular pentagonal base of this prism is 43.06 square units. What is the volume of this prism?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!