Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Science, Math, and Philosophy
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-18-2007, 07:44 PM
skitzo444 skitzo444 is offline
Senior Member
 
Join Date: Jul 2005
Posts: 687
Default 3-letter palindromes, math problem?

You have three letters 26^3 combinations

how many palindromes are there in the 17,576 combinations
Reply With Quote
  #2  
Old 10-18-2007, 08:01 PM
jstnrgrs jstnrgrs is offline
Senior Member
 
Join Date: Aug 2003
Location: Massachusetts
Posts: 2,840
Default Re: 3-letter palindromes, math problem?

wouldn't it be 26^2?
Reply With Quote
  #3  
Old 10-18-2007, 08:25 PM
skitzo444 skitzo444 is offline
Senior Member
 
Join Date: Jul 2005
Posts: 687
Default Re: 3-letter palindromes, math problem?

I thought it would be 26*25 because the first pick can be any letter, the second letter can be anything except the first pick (25/26) and the third letter can only be the same as the first (1/26).


(25/26)*(1/26) = 27.04
(26^3)/ 27.04 = 650

is there something i'm missing?
Reply With Quote
  #4  
Old 10-18-2007, 08:31 PM
jay_shark jay_shark is offline
Senior Member
 
Join Date: Sep 2006
Posts: 2,277
Default Re: 3-letter palindromes, math problem?

Suppose the middle letter is an A . Then the first and third letters may be any of {A,B,C,...Z} . There are 26 letters to choose . However the middle letter may be any of the 26 letters so it should be 26*26 = 676 .
Reply With Quote
  #5  
Old 10-18-2007, 08:32 PM
skitzo444 skitzo444 is offline
Senior Member
 
Join Date: Jul 2005
Posts: 687
Default Re: 3-letter palindromes, math problem?

[ QUOTE ]
Suppose the middle letter is an A . Then the first and third letters may be any of {A,B,C,...Z} . There are 26 letters to choose . However the middle letter may be any of the 26 letters so it should be 26*26 = 676 .

[/ QUOTE ]

If the middle letter is A then the 1st and 3rd can be anything except A so there are 25 choices for the other letters.
Reply With Quote
  #6  
Old 10-18-2007, 08:46 PM
tabako tabako is offline
Senior Member
 
Join Date: Sep 2006
Location: Madison
Posts: 1,393
Default Re: 3-letter palindromes, math problem?

AAA isn't a palindrome?
Reply With Quote
  #7  
Old 10-18-2007, 08:51 PM
skitzo444 skitzo444 is offline
Senior Member
 
Join Date: Jul 2005
Posts: 687
Default Re: 3-letter palindromes, math problem?

[ QUOTE ]
AAA isn't a palindrome?

[/ QUOTE ]

No that's why theres only 25 choices for the 2nd letter because it excludes the first 1st letter that was picked...
Reply With Quote
  #8  
Old 10-18-2007, 08:52 PM
tshort tshort is offline
Senior Member
 
Join Date: May 2005
Posts: 1,143
Default Re: 3-letter palindromes, math problem?

[ QUOTE ]
[ QUOTE ]
AAA isn't a palindrome?

[/ QUOTE ]

No that's why theres only 25 choices for the 2nd letter because it excludes the first 1st letter that was picked...

[/ QUOTE ]

You seem to have an uncommon definition of a palindrome.
Reply With Quote
  #9  
Old 10-18-2007, 08:57 PM
skitzo444 skitzo444 is offline
Senior Member
 
Join Date: Jul 2005
Posts: 687
Default Re: 3-letter palindromes, math problem?

Okay, I am trying to write a slot machine program in actionscript. I keep having trouble figuring out the expected value.

I want to have 1 top payout for a 1 in 17565 way such as ABC.
I then want to pay out a second tier for any Trips (AAA,BBB,CCC)
I then want it to pay for any palindrome (ABA, DFD)...but if the palindrome is all the same ie. FFF, then i want it to payout higher.

So, what would the expected value formula look like in this situation?
Reply With Quote
  #10  
Old 10-18-2007, 09:51 PM
anisotropy anisotropy is offline
Senior Member
 
Join Date: Aug 2004
Location: \"There\'s your answer, fishbulb\"
Posts: 119
Default Re: 3-letter palindromes, math problem?

Would it not just be what jay posted above (26^2 = 676) minus all of the 'triples' (e.g. AAA, BBB, ...) of which there are 26 so the final total would be

676 - 26 = 650.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:52 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.