A cryptogram (part 3A)

A B C + D E F G H I \begin{array} { l l l l l } & & A& B & C \\ + & & D & E & F \\ \hline & & G & H & I \\ \hline \\ \end{array}

Now consider the above equation where different letter represents distinct digit from 1 to 9, D E F = 2 A B C \overline{DEF} = 2\overline{ABC} and G H I = 3 A B C \overline{GHI} = 3\overline{ABC} .

How many different solutions altogether?

1 6 2 3 0 5 4

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.

1 solution

Nick Kent
May 25, 2019

Python script:

for i in range(1, 4):    
    for j in range(1, 10):    
        for k in range(1, 10):    
            n = 100*i + 10*j + k    
            st = set([i, j, k, (2*n)%10, (2*n//10)%10, (2*n//100)%10, (3*n)%10, (3*n//10)%10, (3*n//100)%10])    
            if len(st) == 9 and 0 not in st:    
                 print(n)

Result

192
219
273
327

I think the question was wrong because it didn't say anything about numbers with leading 0's, because then, we would've had 6 solutions.

Anonymous1 Assassin - 4 months, 1 week ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...