document.write( "Question 43436: This problem is really crazy. Here goes\r
\n" );
document.write( "\n" );
document.write( "In the alphabet of the primitive ABA tribe there are only two letters, A and B. Moreover many words have the same meaning. There are three rules which can be used to change words without altering their meaning:
\n" );
document.write( "a. three consecutive A letters (AAA) can be added or deleted
\n" );
document.write( "b. two consecutive B letters (BB) can be added or deleted
\n" );
document.write( "c. AAB can be replaced by BA and BA can be replaced by AAB\r
\n" );
document.write( "\n" );
document.write( "For example, BAAA and B have the same meaning. How many words with distinct meanings are there in the ABA language? \r
\n" );
document.write( "\n" );
document.write( "I would appreciate any help! \n" );
document.write( "
Algebra.Com's Answer #28459 by psbhowmick(878)![]() ![]() You can put this solution on YOUR website! Distinct words with only letter A: A, AA, AAA, \r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Any more words with A only is not possible e.g. AAAA has same meaning as A, AAAAA has same meaning as AA and so on.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Distinct words with only letter B: B, BB \r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Any more words with B only is not possible e.g. BBB has same meaning as B, BBBB has same meaning as BB and so on.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Distinct words with A and B: AB, BA \r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "There are 6 number of 3-letter words. Let us analyze each one. \n" ); document.write( "ABA \n" ); document.write( "= AAAB (BA replaced with AAB) = B (AAA deleted) = already existing word\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "ABB \n" ); document.write( "= A (BB deleted) = already existing word\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "BAB \n" ); document.write( "= AABB (BA replaced with AAB) = AA (BB deleted) = already existing word\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "AAB \n" ); document.write( "= AABAAA (AAA added) = AAAABAA (BA replaced with AAB) = ABAA (AAA deleted) = AAABA (BA replaced with AAB) = BA (AAA deleted) = already existing word\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "BAA \n" ); document.write( "= AABA (BA replaced with AAB) = AAAAB (BA replaced with AAB) = AB (AAA deleted) = already existing word\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "BBA \n" ); document.write( "= A (BB deleted) = already existing word\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Thus no 3 letter words exist which have meanings different than the previously mentioned words. So there is no question of any such distinct words of 4 or more letters.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Hence, all the words with different meanings are: A, AA, AAA, B, BB, AB, BA - 7 words altogether. \n" ); document.write( "I think this is the answer. Let me know if it is or even if it is not. My email id is partha.s.bhowmick@gmail.com \n" ); document.write( " |