Can you figure out this equation?

Algebra Level 2

A B C D E F + G H P P P \begin{array}{lrr} &&A & B \\ -&&C& D \\ \hline \\ &&E & F \\ + &&G& H\\ \hline \\ &P&P& P \end{array}

Each of the letters A , B , C , D , E , F , G , H , P A, B, C, D, E, F, G, H, P represents a distinct digit from 1 to 9.

What is A + B + C + D ? A+B+C+D?

17 19 21 23

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.

10 solutions

John Ross
Apr 8, 2018

Notice that P = 1 P=1 because it carries from E + G E+G . F + H F+H must equal 11 because two distinct numbers cannot sum to 1. E + G E+G must then equal 10. The sum of the numbers from 1 to 9 is 45. Therefore A + B + C + D = 45 10 11 1 = 23 A+B+C+D=45-10-11-1=23

Ok... I was going for a system of equations with a little bit of trial and error method. The idea was to find out all numbers. But this is a lot more economically convenient. Seriously, well done my friend.

M. Zeidan - 3 years, 2 months ago

Log in to reply

Solving the entire equation (which I actually did for all 3 solutions) would be ideal, but I also saw this shortcut, so I decided to share it. In the end, my goal is to learn mathematics better, so solving the entire equation would be better in that sense. Others posted solutions solving the entire equation, so I decided that posting a solution along the same lines wouldn't really help the conversation, but those solutions are probably preferable because they help us to learn more about solving these types of equations. On the other hand, because there is no unique solution to the equation (3 solutions), my method does keep it general and saves me from having to find all 3 solutions and proving that those are the only solutions (which at least so far, none of the other solutions have done; other than the fact that brilliant is asking for one answer, none of the other solutions have shown that their answer is the only possible answer.)

John Ross - 3 years, 2 months ago

Log in to reply

I came up with the same solution, after using the same equations to start the complete solution and realising I need go no further. Of course, technically you have only shown that, if such numbers exist then they must have this property. However the statement of the question implies they do. Now had the choices been 19, 21, 23, "It's insoluble" then that would be more interesting.

Richard Farrer - 3 years, 1 month ago

Log in to reply

@Richard Farrer Yes, I had realized that I was assuming that a solution existed in my short proof, but I had worked all three solutions by hand, so I was comfortable with that. On a side note, almost all of the other solutions posted here assumed that one solution existed. Most of the other solutions stopped after finding only one possible answer, hypothetically leaving the door open for more than one answer. (other than, of course, the fact that we are asked for only one answer)

John Ross - 3 years, 1 month ago

I solved it this way as well. The idea isn't to find all the numbers, it clearly states to find the sum of A, B, C, D.

It further hints the sum must be one of only four choices (at least they are all odd since it can easily be shown that three of the four have the same parity.)

Jeremy Galvagni - 3 years, 2 months ago

Thank for your solution! It was elegant!!!!

Jim Lien - 3 years, 1 month ago

Deductive simplicity. Love it.

Zoki Kuzmanovski - 3 years ago
Naren Bhandari
Mar 29, 2018

8 6 5 4 3 2 + 7 9 1 1 1 \small\begin{array}{lr} &8\ 6 \\ -&5\ 4\\ \hline \\ &3\ 2 \\ + &7\ 9\\ \hline \\ &1\ 1\ 1 \end{array}

Since two digit number can be denoted as 10 x + y 10x+y where x x and y y are its digits. Similary for above case where a , b , c , d , e , f , g a,b,c, d,e,f,g and h h are distinct we have as ( 10 a + b ) ( 10 c + d ) = 10 e + f 10 ( a c ) + ( b d ) = 10 e + f \begin{aligned} & (10a+b) -(10c+d) = 10e + f \\& 10(a-c)+(b-d) = 10e +f\end{aligned} Note that obtained difference is one digit number and it's digits can be equated as follow : a c = e b d = f \begin{aligned} a - c = e \qquad b-d = f \end{aligned} Also 10 ( e + g ) + ( f + h ) = 111 p \begin{aligned} 10(e+g) +(f+h) = 111p\end{aligned} Note that the maximum sum of two two digits can never exceed 200 so which leads us the conclusion that p = 1 p=1 . Since for p > 1 p>1 the sum is not possible. Hence, 10 ( a c + g ) + ( b d + h ) = 111 10 ( a c + g ) + ( b d + h ) = 10 × 11 + 1 c c c isn’t true since c c a c + g + 1 = 11 b d + h = 11 10 ( a c + g ) + ( b d + h ) = 10 × 10 + 11 \begin{aligned} & 10(a-c+g) +(b-d+h) = 111\\& 10(a-c+g) +(b-d+h) = 10\times 11 + 1 \phantom{ccc}\text{isn't true}\\& \text{since} \phantom{cc} a-c+g+{\color{#3D99F6}1}= 11 \qquad b-d +h = 11\\& \therefore 10(a-c+g) +(b-d+h) =10\times 10 +11 \end{aligned}


Equating the respective digits we have { a c + g = 10 e + g = 10 b d + h = 11 f + h = 11 \begin{cases} & a-c +g =10 \implies e+g =10 \\& b-d+h = 11\implies f+h =11 \end{cases} since p = 1 p=1 so neither a , c a,c or b , d b,d cannot be consecutive integers so there difference should lie between 1 to 9(inclusive). Note: ( a c ) / e (a-c)/e is read as ( a c ) (a-c) or e e ( a c ) / e = { 2 g = 8 3 g = 7 4 g = 6 5 g = 5 ( b d ) / f = { 2 h = 9 3 h = 8 4 h = 7 5 h = 6 (a-c)/e = \begin{cases} 2\implies g = 8 \\ {\color{#D61F06}3 \implies g =7 }\\ 4 \implies g = 6 \\ 5\implies g = 5 \end{cases} \quad (b-d)/f =\begin{cases}{\color{#D61F06} 2\implies h = 9} \\ 3 \implies h = 8 \\ 4 \implies h = 7 \\ 5 \implies h = 6 \end{cases}


Note that when ( b d ) / f = 2 , h = 9 (b-d)/f =2, h=9 is uniquely defined since there occurs no 9 9 for g g (also reverse works ) and it's clear that ( a c ) / e 2 , g 8 (a-c)/e \neq 2 , g\neq 8 . since g 8 g\neq 8 So highest possible value for g = 7 g=7 (among ,6,5,) and it only works that prevents the reappears of same number.

A B C D E 2 + 7 9 1 1 1 \begin{array}{lr} &A\ B \\ -&C\ D \\ \hline \\ &E\ 2 \\ + &7\ 9\\ \hline \\ &1\ 1\ 1 \end{array}
Then we can conclude that e = 4 e=4 and only left digits are 4 4 , 5 5 , 6 6 and 8 8 since e = 3 e =3 which is possibly yield by a c = 8 5 a-c= 8-5 and b d = 6 4 = 2 b-d=6-4=2 .

So, a = 8 , b = 6 , c = 5 , d = 4 , e = 3 , f = 2 , g = 7 a=8, b = 6, c=5, d = 4, e = 3 , f = 2 , g = 7 and h = 9 h=9 . Therefore, a + b + c + d = 23 a+b+c+d = \boxed{23} .

I didn't go through your solution, but a=9, b=5, c=2, d=7, e=6, f=8, g=4, h=3, p=1 is also a possible set..

Chung Koo Kim - 3 years, 2 months ago

Log in to reply

I did a=9 b=8 c=3 d=1 e=6 f=7 g=5 h=4.... p=2

David Braswell - 3 years, 2 months ago
Bruno Neves
Apr 9, 2018
1
2
3
4
5
6
7
8
9
from itertools import permutations

for p in permutations('123456789'):
    s  = ''.join(p)
    l = list(s)
    [A,B,C,D,E,F,G,H,P] = l
    if int(A+B) - int(C+D) == int(E+F) and int(E+F)+int(G+H) == int(P+P+P):
        print int(A)+int(B)+int(C)+int(D)
        break

there are 3 possible results and the sum of ABCD is 23.[854639721] [865432791][952768431]

耀 李 - 3 years, 2 months ago

lol brute force, good on ya!

Andrew Kerr - 3 years, 1 month ago

There are three possible solutions:

9 5 2 7 6 8 + 4 3 1 1 1 \begin{array}{ccc} & 9 & 5 \\ - & 2 & 7 \\\hline & 6 & 8 \\+ & 4 & 3 \\\hline 1 & 1 & 1 \\ \end{array}~~~~~ 8 6 5 4 3 2 + 7 9 1 1 1 \begin{array}{ccc} & 8 & 6 \\ - & 5 & 4 \\\hline & 3 & 2 \\+ & 7 & 9 \\\hline 1 & 1 & 1 \\ \end{array}~~~~~ 8 5 4 6 3 9 + 7 2 1 1 1 \begin{array}{ccc} & 8 & 5 \\ - & 4 & 6 \\\hline & 3 & 9 \\+ & 7 & 2 \\\hline 1 & 1 & 1 \\ \end{array}

in all of them A + B + C + D = 23 A+B+C+D = 23 , found via code:

1
2
3
4
5
6
7
P = perms(1:9);
R =[];          
for k = 1:factorial(9)
    if (10*P(k,1)+P(k,2)-10*P(k,3)-P(k,4)==10*P(k,5)+P(k,6))&&(10*P(k,5)+P(k,6)+10*P(k,7)+P(k,8)==111*P(k,9))
        R = [R; P(k,:),P(k,1)+P(k,2)+P(k,3)+P(k,4)];
    end
end

Filip Kramaric
Apr 15, 2018
1
2
3
4
5
import itertools
x = list(itertools.permutations('23456789', 8))
for n in range(40320):
    if (int(x[n][0]+x[n][1])-int(x[n][2]+x[n][3])+int(x[n][6]+x[n][7]) == 111 and int(x[n][0]+x[n][1])-int(x[n][2]+x[n][3]) == int(x[n][4]+x[n][5])):
        print(x[n], int(x[n][0])+int(x[n][1])+int(x[n][2])+int(x[n][3]))

Giorgos K.
Apr 11, 2018

using M a t h e m a t i c a Mathematica :

P P must be 1 1

Select[Permutations@Range[2,9],#[[2]]-#[[4]]==#[[6]]&&#[[1]]-#[[3]]==#[[5]]&&#[[6]]+#[[8]]==11&&#[[5]]+#[[7]]==10&]

returns {8, 6, 5, 4, 3, 2, 7, 9} which is the correct {a,b,c,d,e,f,g,h} tuple

Robert Williams
Apr 9, 2018

Seeing John Ross’s elegant solution makes me feel I made this hard for myself, but here’s my approach:

Observations:

  • P must be 1
  • EF + GH = 111
  • F + H = 11... possible combinations (5,6) (4,7) (3,8) (2,9)
  • E + G = 10 ... possible combinations (4,6) (3,7) (2,8)
  • A > 4

Since digits cannot be duplicated possible combinations for EG&FH and remaining digits for ABCD (not in order) are:

(E,G) and (F,H) A,B,C,D
(4,6) with (3,8) 2,5,7,9
(4,6) with (2,9) 3,5,7,8
(3,7) with (5,6) 2,4,8,9
(3,7) with (2,9) 4,5,6,8
(2,8) with (5,6) 3,4,7,9
(2,8) with (4,7) 3,5,6,9

Seek combinations of ABCD that give a remainder that can be formed from EG&FH...

Within the first set we find one solution: 95 - 27 = 68, leaving GH to be 43.

Sum of digits ABCD is 23

Himank Kansal
Apr 15, 2018

I t i s c l e a r t h a t P = 1 s i n c e i t c a r r i e s f r o m E + G . T h e r e f o r e F + H = 11 a n d E + G = 10. T a k i n g F = 2 , H = 9 , E = 3 , G = 7 w e g e t A + B + C + D = 8 + 6 + 5 + 4 = 23. \\It is clear that P=1 since it carries from E+G . \\ Therefore F+H =11 and E+G=10. \\Taking F=2, H=9, E=3, G=7 we get A+B+C+D= 8+6+5+4 =23.

小渊 Xyz
Apr 9, 2018

首先,9个数字的和是45。

PPP首位的P是由E+G进位得来的,所以一定是1,即PPP是111。F+H=11,才能得到末位的1,十位的1则是由个位进上来的,所以E+G=10。

最后A+B+C+D=45-11-10-1=23。

至于算式,则是:

86-54=32,32+79=111

如果想得到这个式子,不妨从下面四个数入手,1不能使用,因为P已经是1了,9和8的位置得到限制,接着将数字和为10和11的成对考虑,就可以得到这个式子了。

What he said.

Dorian Subirana - 3 years, 2 months ago
Alfred Tang
Mar 28, 2018

The solution.

Step 1: As the three digit in PPP are the same. PPP can be 111, 222, 333...

        The largest possibility of EF+GH is 187. Therefore, PPP can only be 111.

Step 2: After knowing that P=1, we need to list all the possibility of EF+GH=111

         e.g. 24+87, 25+86, 26+85, 27+84...

Step 3: We need to know four things:

        (1) F+H=11     「2+9」、「3+8」、「4+7」、「5+6」、「6+5」、「7+4」、「8+3」、「9+2」

        (2) E+G=10      「2+8」、「3+7」、「4+6」、「6+4」、「7+3」、「8+2」

        (3) The biggest number for EF is 78. If AB=90 and CD=20, then EF=78, which is the greatest number

        (4) A-C must be positive. As this problem don't have negative number, A-C should be a positive number

Step 4: Keep trying.

Step 5: The answer is 86-54=32, 32+79=111

        A=8, B=6, C=5, D=4, E=3, F=2, G=7, H=9, P=1

Step 6: A+B+C+D

      =8+6+5+4

      =23

ANSWER: 23

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...