By Kardi Teknomo, PhD.



< Previous | Content | Next >

Share this: Google+

CryptArithmetic Problem: GERALD + DONALD = ROBERT

This following puzzle is another interesting CryptArithmetic Problem:

GERALD DONALD ROBERT CryptArithmetic Problem and Solution

How to solve the above challenge?

We put the letter as equality constraints
Expression1 = 100,000*G + 10,000*E + 1,000*R + 100*A + 10*L + D
Expression2 = 100,000*D + 10,000*O + 1,000*N + 100*A + 10*L + D
Expression3 = 100,000*R + 10,000*O + 1,000*B + 100*E + 10*R + T
If (Expression3 ==Expression1 + Expression2) then
Report the value of {G, E, R, A, L, D, O, N, B, T}

We do permutation of digit 0 to 9 and then compute the above expression.

Solution

The solution is unique
{G=1, E=9, R=7, A=4, L=8, D=5, O=2, N=6, B=3, T=0}

          197485           GERALD
526485 DONALD
----------- + ------------ +
723970 ROBERT


< Previous | Content | Next >