Palindromes Help: Solving 5 & 6 Letter Problems

  • Thread starter Thread starter ashkash
  • Start date Start date
  • Tags Tags
    Permutations
Click For Summary

Homework Help Overview

The discussion revolves around calculating the number of palindromes of five and six letters, specifically focusing on the conditions of letter repetition. The original poster seeks assistance in understanding how to approach the problem.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants explore how the structure of palindromes dictates the choices for letters, particularly noting that the first half determines the second half. Questions arise regarding the implications of letter repetition and how it affects the total count of palindromes.

Discussion Status

Several participants have offered insights into the problem, discussing the relationship between the number of letters chosen and the resulting palindrome structure. There is an ongoing exploration of the conditions under which letters can repeat, with some participants questioning assumptions about letter usage.

Contextual Notes

Participants are considering two scenarios: one where letters can appear more than twice and another where no letter appears more than twice. The implications of these constraints are central to the discussion.

ashkash
Messages
31
Reaction score
0
Here is the problem:

A sequence of letters of the form abcba is an example of a palindrome of five letters.

a. If a letter may appear more than twice, how many palindromes of five letters are there? of six letters?

b. Repeat part a under the condition that no letter appears more than twice.

I do not know how to go about doing this problem. Any help would be appreciated. thanks.
 
Physics news on Phys.org
For part a, consider this. For a five letter palindrome, the first letter can be any letter out of 26. Since a letter can appear more than twice, so can the second and third. Does that make sense so far?

How many different letters can the last two be if it is going to be a palindrome? This should give you a good start for this problem. Let me know if you need more help.

stefannm
 
If you are constructing a palindrome of, say, 6 letters, once you pick the first 3 letters you have determined the entire palindrome, because this pattern must then repeat in reverse order for the final 3 letters. So for every sequence of 3 letters, there is a corresponding palindrome of 6 letters, and vice versa. How many sequences of 3 letters are there?
 
the last two letters have to be the second and first letter. is that a correct assumption? so now how would I put this in a way so that I know how many palindromes of five letters there are? thanks.
 
for the number of sequences of 3 letters would it be 26!/3!
 
I believe the answer would be [tex]26^3[/tex], but maybe we should get some clarification. Think of it like a tree. There are 26 possibilities each having 26 possibilities. and again, each of those has 26 possibilities. So for the first three letters the possibilites are
[tex]26*26*26[/tex] right?

But the last two letters are decided by the first to so for each of those possibilites only one option can be used, so the final answer should be
[tex]26*26*26*1*1=26^3[/tex]
 
that makes sense. and for 6 letters it would be the same as it would be 26*26*26*1*1*1. Is that right?

and for part b, how would I go about that. Would it be 26*26*25*1*1?
 
Right, there are the same number of palindromes for 5 and 6 letters given those conditions. Kind of an interesting result. I would not have expected that.

You are close, but remember that each letter can only be used twice. Since it is a palindrome, it has to be used at the beginning and end so the there are only 25 possibilities for the second letter and 24 for the third. Make sense?
 
for part b would it be 26*25*24*1*1?
 
  • #10
looks good to me.
 
  • #11
thanks for all your help guys.
 

Similar threads

Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
9K
Replies
2
Views
16K
  • · Replies 18 ·
Replies
18
Views
3K