Agassi

Logic Level 3

ROLAND + GARROS = AGASSI

In a cryptarithm above, what is the value of AGASSI? Each letter corresponds to a different digit!


The answer is 424665.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

K T
Mar 18, 2020

Just by brute force a little python script gave two solutions 271389 + 32276 = 303665 271389+32276=303665 183479 + 241186 = 424665 183479+241186=424665 of which the first would have a leading 0 in GARROS, which is ugly enough to opt for the second solution.

Here's the script (q&d):

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
def val(a,b,c,d,e,f):
    return f+10*e+100*d+1000*c+10000*b+100000*a

from itertools import permutations 
def RolandGarrosAgassi():
    for perm in permutations(range(0, 10)):
        A=perm[0]
        D=perm[1]
        G=perm[2]
        I=perm[3]
        L=perm[4]
        N=perm[5]
        O=perm[6]
        R=perm[7]
        S=perm[8]
        Roland=val(R,O,L,A,N,D)
        Garros=val(G,A,R,R,O,S)
        Agassi=val(A,G,A,S,S,I)
        if Roland+Garros==Agassi:
            print ("{}+{}={}".format(Roland,Garros,Agassi))

RolandGarrosAgassi()

Lovro Cupic
Oct 7, 2018

Analyse column by column, starting from the left. Since the sum is also a 6-digit number, A A must be greater than R R and G G . In the second column, A A is above G G , so 10 10 from here is transferred to the first column, hence the equation A = G + R + 1 A = G + R + 1 . In the third column, A A is below L L and R R , so it must be A = L + R A = L + R or A = L + R + 1. A = L + R + 1. But A A is already equal to G + R + 1 G + R + 1 and L L and G G can not be equal, so A = L + R A = L + R and (no transfer from the 3rd to the 2nd column) O + A = 10 + G O + A = 10 + G . From these equations we can get O + R = 9 O + R = 9 . Now things get a little complicated, and an attempt to obtain a 9 × 9 9 \times 9 system of equations can be done by separation on different cases, when 10 10 is transferred from a column to the one on the left or isn't. But, we know that A A cannot be 0 , 1 , 2 , 3 0,1,2,3 and 9 9 because 3 = G + R + 1 3 = G + R + 1 implies G = R G = R , A = 9 A = 9 implies 9 = L + R = O + R 9 = L + R = O + R , so O O and L L would be equal, and so on. We restricted A A to be 4 , 5 , 6 , 7 4,5,6,7 or 8 8 , and by inserting these numbers for A A we can determine values of the remaining letters by trial and error; plugging A = 4 A = 4 into summation yields G = 2 G = 2 , R = 1 R = 1 and so on ( 184479 + 241186 = 424665 184479+241186=424665 ), and, luckily enough, it is the solution (there is only one). There are many solutions that are "almost" correct and only one truly correct.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...