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
mr Goodwill [35]
3 years ago
8

If w is a string of english letters a–z (all uppercase for the purposes of this problem), let wr denote the reverse of w; (train

)r=niart. a palindrome is a string that is its own reversal: w = wr. for example, bzrzb is a palindrome of length 5. we are not concerned with whether it is an actual english word. find a formula for the number of palindromes of length k. you will need to treat odd (k = 2m + 1) and even (k = 2m) lengths differently
Mathematics
1 answer:
Dennis_Churaev [7]3 years ago
5 0

Answer:

f(x)=\left \{\begin{array}{rl}26^{\frac{k}{2}}&\text{for k even}\\26^{\frac{k+1}{2}}&\text{for k odd}\end{array}\right.

Step-by-step explanation:

Half the length of the palindrome can be any possible sequence of the 26 available letters. The other half is constrained to be the reverse of the same sequence. For odd length sequences, the middle letter can be any of the 26.

So, for k even, the number of palindromes is 26^(k/2). For k odd, the number is 26·26^((k-1)/2) = 26^)((k+1)/2).

You might be interested in
A cube has eight congruent faces.<br> true<br> false
bogdanovich [222]
False, it has 6 congruent faces
3 0
3 years ago
Which statement is true about this data set? {79, 66, 82, 83, 84, 86, 85, 84, 84, 85, 88}
Bess [88]
66 is the outlier because it is less than all the other numbers while all the numbers are in the 70s and 80s
5 0
3 years ago
Read 2 more answers
Help I don't know what I did incorrectly, can you tell me then give me the answer
mafiozo [28]

Answer:

the slope is negative since its going downward

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
On a coordinate plane, a straight line and a parallelogram are shown. The straight line has a negative slope and has a formula o
alexira [117]

Answer:

(1,3)

Step-by-step explanation:

edge 2020

6 0
3 years ago
Read 2 more answers
$29000; 4 percent decrease
yulyashka [42]
The easiest way to calculate this, since you don't need to know what the discount is, if the decrease is 4% you still have 96%. Multiply 29,000 x .96= $27,840. If you do it the other way, .04 x 29000= 1160. Then subtract 29000-1160=27850.
6 0
3 years ago
Other questions:
  • Match each description when z = 9 + 3i. 1. Real part of z, 3 2. Imaginary part of z, 9 - 3i 3. Complex conjugate of z, 3i 4. 3i
    15·1 answer
  • Question 1. -29 + |-43| = __
    6·1 answer
  • When you multiply a function by -1, what is the effect on its graph?
    6·2 answers
  • The net of a pyramid is shown below​
    8·2 answers
  • Can somebody explain and help?
    14·2 answers
  • If Jake has 10 white socks and 8 white socks in a bag what would be the most likely one we would pull out
    8·2 answers
  • Simplify the following.(2x-y)(x+2y)​
    11·1 answer
  • Tony spent $60 on video games , each video game cost $6 . how many video games did tony buy
    13·2 answers
  • Find the equation of the line passing<br> through the points (2, 1) and (5, 10).<br> y = [? ]x + ( )
    11·1 answer
  • What is the probability of spinning a yellow?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!