[Wellington-pm] SEND + MORE = MONEY

michael at diaspora.gen.nz michael at diaspora.gen.nz
Tue Mar 1 19:02:51 PST 2005


Donald Gordon writes:
>On Wed, 02 Mar 2005 15:54:15 +1300, michael at diaspora.gen.nz wrote:
>
>> For the modulus trickery, one can observe that we have multiple equations
>> that can be used to filter a brute force search space; eg, in the example
>> 'SEND + MORE = MONEY', the following equations must hold:
>> 
>>     (D + E) % 10 == Y
>>     (N + R) % 10 == E
>>     (E + O) % 10 == N
>>     (S + M) % 10 == O
>
>Is that the case, though?  if D+E >= 10, then (N + R + 1) % 10 == E...

You're right.  Good thing I just checked the least significant digit, eh?

I'll post some test cases tonight, based on the perlgolf testing scripts.
    -- michael.


More information about the Wellington-pm mailing list