Page 1 of 2
Problem 098
Posted: Wed Oct 29, 2008 5:08 pm
by DaveNo1
Is it right, that there are 44 Word Anagrams in total and only one word (SHEET) contains a letter twice?
Re: Problem 98
Posted: Wed Oct 29, 2008 5:41 pm
by jaap
That number is correct. The second part of your question is easily seen to be false if you read through the word list (e.g. ACADEMIC, ACCEPT), and there are even several anagram pairs with repeated letters.
Re: Problem 98
Posted: Thu Oct 30, 2008 9:10 pm
by DaveNo1
Thanks for the confirmation. Before I did not lookup for double digit -> letter assignments. My lazy implementation was just checking if digit(a) != digit(a+1) which is false ... of course. corrected that and voila

Problem 098
Posted: Sat Mar 07, 2009 3:10 am
by dnovatchev
What should I understand is correct when there are three ore more words that are anagrams to each other:
- Every pair of words can have their own (different ) mapping from letters to digits
- Every word in the group must use the same mapping from letters to digits
Here is an example:
caret, cater, crate,react,recta,trace
can we have
caret = 12345 and cater = 12543
and at the same time:
caret = 67890 and react = 89760
or once we have chosen 12345 for caret then all words in the group should use the same mapping?
Thanks,
Dimitre Novatchev
Re: Problem 098
Posted: Sat Mar 07, 2009 6:54 am
by Georg
Every pair of words can have their own (different ) mapping from letters to digits.
Re: Problem 098
Posted: Sun Sep 06, 2009 12:16 am
by elr
can two words like
ABCDEFG & ABC
be anagram pairs (assuming that there is a valid square that match ABCDEFG) ?
Re: Problem 098
Posted: Sun Sep 06, 2009 12:58 am
by daniel.is.fischer
No, anagrams are permutations, so both words have the same number of letters.
Problem 098
Posted: Sun May 29, 2011 1:32 am
by joetom93
Can someone explain to me why a pair of words like this does not fit the guidelines?
CENTRE: 436921 = 661*661
RECENT: 214369 = 463*463
I realize that there is more than one 'e' but these numbers are still anagrams and no two letters have the same digital value.
Thanks a lot
Re: Problem 098 Centre Recent
Posted: Sun May 29, 2011 2:05 am
by jaap
You use both E=1 and E=3. A letter cannot have two different values, i.e. when you substitute a letter by a value, you must substitute all occurrences of that letter by the same value.
Re: Problem 098
Posted: Sun May 29, 2011 9:07 am
by hk
joetom93 wrote:Can someone explain to me why a pair of words like this does not fit the guidelines?
CENTRE: 436921 = 661*661
RECENT: 214369 = 463*463
I realize that there is more than one 'e' but these numbers are still anagrams and no two letters have the same digital value.
Thanks a lot
Please don't start a new topic for a problem when one exists already.
Re: Problem 098
Posted: Tue Jun 07, 2011 6:47 pm
by thundre
joetom93 wrote:Can someone explain to me why a pair of words like this does not fit the guidelines?
CENTRE: 436921 = 661*661
RECENT: 214369 = 463*463
It does not fit because you are using 2 different mappings for E.
Problem 98
Posted: Mon Dec 02, 2013 8:19 am
by benedicfuentes
By replacing each of the letters in the word CARE with 1, 2, 9, and 6 respectively, we form a square number: 1296 = 362. What is remarkable is that, by using the same digital substitutions, the anagram, RACE, also forms a square number: 9216 = 962. We shall call CARE (and RACE) a square anagram word pair and specify further that leading zeroes are not permitted, neither may a different letter have the same digital value as another letter.
Using words.txt (right click and 'Save Link/Target As...'), a 16K text file containing nearly two-thousand common English words, find all the square anagram word pairs (a palindromic word is NOT considered to be an anagram of itself).
What is the largest square number formed by any member of such a pair?
NOTE: All anagrams formed must be contained in the given text file.
last line said "All anagrams formed must be contained in the given text file.". does it mean that no words will be generate (anagram) outside the given file??
and is it right that the longest word (pair of anagram words) has the possible answer? because i think that
the length of the word is equal to the number of digits of squared number.
i checked the words that has the most number of characters.
and after getting the anagram, i checked the possible squared number
of them from my list of squared numbers (starting with the highest number)
i end up with this words (i'm not sure if this is the right words)
INTRODUCE and REDUCTION
but still,, my answer is not the right one..

thank you for response
Edit by mpiotte:
I merged your topic with an already existing one.
Please check in the future if there already exists a topic for a problem.
Re: Problem 098
Posted: Mon Dec 02, 2013 8:29 am
by benedicfuentes
last line said "All anagrams formed must be contained in the given text file.". does it mean that no words will be generate (anagram) outside the given file??
and is it right that the longest word (pair of anagram words) has the possible answer? because i think that
the length of the word is equal to the number of digits of squared number.
i checked the words that has the most number of characters.
and after getting the anagram, i checked the possible squared number
of them from my list of squared numbers (starting with the highest number)
i end up with this words (i'm not sure if this is the right words)
INTRODUCE and REDUCTION
but still,, my answer is not the right one..

thank you for response
Re: Problem 098
Posted: Mon Dec 02, 2013 2:57 pm
by pieppiep
benedicfuentes wrote:last line said "All anagrams formed must be contained in the given text file.". does it mean that no words will be generate (anagram) outside the given file??
You only use the words in the file, no other words you can generate from them.
So if DUCEINTRO would be a real english word and would give a squared number, that word/number wouldn't count.
and is it right that the longest word (pair of anagram words) has the possible answer? because i think that
the length of the word is equal to the number of digits of squared number.
i checked the words that has the most number of characters.
and after getting the anagram, i checked the possible squared number
of them from my list of squared numbers (starting with the highest number)
i end up with this words (i'm not sure if this is the right words)
INTRODUCE and REDUCTION
but still,, my answer is not the right one..

thank you for response
If you can replace each character with a different digit (I = 1 and N = 1 is not valid) and both INTRODUCE and REDUCTION give square numbers, then the largest of them is the answer.
If they don't, you probably need to search the other words.
Re: Problem 98
Posted: Tue Dec 03, 2013 8:15 am
by quick.dudley
The answer is the number, not the word.
Re: Problem 098
Posted: Wed Mar 29, 2017 8:43 pm
by vjcinjr
I assume you can only use single decimal digits when assigning a number to a character. For example, one can not assign the letter 'C' to the number 12. Correct?
Re: Problem 098
Posted: Thu Mar 30, 2017 1:25 pm
by sjhillier
vjcinjr wrote: Wed Mar 29, 2017 8:43 pm
I assume you can only use single decimal digits when assigning a number to a character. For example, one can not assign the letter 'C' to the number 12. Correct?
Yes, that's right.
Re: Problem 098 Centre Recent
Posted: Thu Apr 12, 2018 2:09 am
by Loiyer
jaap wrote: Sun May 29, 2011 2:05 am
You use both E=1 and E=3. A letter cannot have two different values, i.e. when you substitute a letter by a value, you must substitute all occurrences of that letter by the same value.
Is this in the wording of the question?
Re: Problem 098
Posted: Sat Jul 20, 2019 7:47 pm
by RishadanPort
I have a bug in my code, that is for only reason giving me the largest square being 4 digits.
Can anyone give me any example of a square larger than 4 digits... (even 5) that is valid,
and by valid I mean that it has some other pair square -- matching 2 word anagrams
(Also doesn't have to be the largest of that number digits... just needs to have some other match)
My code does correctly get the 9216 / 1296 square pair for CARE / RACE
Thanks
Re: Problem 098
Posted: Tue Jun 02, 2020 1:53 pm
by oscar_thenon
Hello,
I have some difficulties to interpret "neither may a different letter have the same digital value as another letter". For me, it means that if we take two different letters from a word, these two letters must be associated with different digits.
However, the list contains the word 'CONSIDERABLE', so this rule cannot apply since it contains 11 different letters.
For example, if CONSIDERABLE = 123456789017, the two E are associated with 7, but C and L are associated with 1 which is forbidden. But no matter what you do, it's impossible to avoid it.
Have I misunderstood the wording ?
EDIT, PROBLEM SOLVED : I realized that this problem doesn't occur to word pairs since they all contain at most 10 different letters.