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 many triangles are there that satisfy the conditions a =13, b =9, A = 62°?
8_murik_8 [283]

Answer:

Step-by-step explanation:

Alright, lets get started.

Using sin Law,

\frac{sinA}{a}=\frac{sinB}{b}

Plugging the value of a, b and angle A

\frac{sin62}{13}=\frac{sinB}{9}

sinB=\frac{9*sin62}{13}

sinB=\frac{9*0.8829}{13}

sinB=0.61127

taking sin inverse on both sides

B=sin^{-1}(0.61127) =37.68

The may be another value of B that will called B' = 180-37.68=142.32

We will not consider this B' value because the um of angle B' and A will exceeds 180 degree (142.32+62=204.32)

Thats why only one triangle is possible.   :   Answer

Hope it will help :)

5 0
3 years ago
Find the measure of the graph
Nadya [2.5K]
Where’s the graph lol?
3 0
2 years ago
What is the value of 1/2 x power of 3 + 5.3y, when x = 2 and y = 3? (1 point)
sleet_krkn [62]
1/2 (2) + 3 + 5.3 (3)
1 + 3 + 15.9
19.9
6 0
3 years ago
Read 2 more answers
Which of the following statements is true? A. Congruent angles have the same measure. B. Congruent angles are complementary. C.
sesenic [268]

Answer:

A. Congruent angles have the same measure.

Step-by-step explanation:

In geometry, 2 objects are congruent if they have the same shape. As such, congruent angles are formed from such shapes. Irrespective of the unit of measurement (in degrees or radians), congruent angles are equal.

This is independent of the direction of the angles.

Hence the right option is

A. Congruent angles have the same measure.

3 0
3 years ago
The population in Rochester, New York, was 219,773 people in 2000 and 210,565 people in 2010. By about what percent did the popu
garri49 [273]
The population shrank by 23.86762%
5 0
3 years ago
Other questions:
  • PLEASE help really quick! (; Math problem.
    13·1 answer
  • All my points and BRAINLIEST!!!!<br><br> Please help
    5·2 answers
  • What is the answer to n in n/5 + =6
    8·1 answer
  • (5m^3+7m-7m^2) + (4-7m^2-m^3)
    8·1 answer
  • There are 40 coins in a roll of nickles. Find the value of 25 rolls of nickels.
    10·2 answers
  • Bud is a teacher in the science, technology, engineering, and mathematics career cluster. He is thinking about changing his care
    6·1 answer
  • Complete the equation so that it has solutions of –5 and 7.
    12·2 answers
  • Help would be very much appreciated;)
    13·2 answers
  • PLEASE ANSWER QUICKLY!!
    6·1 answer
  • Which point is on the graph ofx=13(y−18)in the coordinate plane?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!