This is part of the Secretive Shopkeeper set
You enter a shop, and see from the display that garden sets cost , headphones cost , ironing boards cost and jackets cost . You tell the shopkeeper that you want to buy 1 garden set, 1 pair of headphones, 1 ironing board and 1 jacket, but you don't know what the cost is. He tells you the following:
How much money (in pounds) should you give to the shopkeeper for 1 garden set, 1 pair of headphones, 1 ironing board and 1 jacket?
Details:
are positive integers
If you underpay him, he will call the police
If you overpay him, he will keep the extra money
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.
From the information in the question, g 2 + g h + h 2 + h i + i 2 + i j + j 2 + j g = 6 5 3 1 3 ( 1 ) g 2 + h 2 + i 2 + j 2 = 4 1 5 7 8 ( 2 ) 2 g i + 2 h j = 2 3 8 4 8 ( 3 )
( 1 ) − ( 2 ) : g h + h i + i j + j g = 2 3 7 3 5 and doubling, 2 g h + 2 h i + 2 i j + 2 j g = 4 7 4 7 0 ( 4 )
( 3 ) + ( 4 ) : 2 g h + 2 g i + 2 g j + 2 h i + 2 h j + 2 i j = 7 1 3 1 8 ( 5 )
Now, ( g + h + i + j ) 2 = g 2 + h 2 + i 2 + j 2 + 2 g h + 2 g i + 2 g j + 2 h i + 2 h j + 2 i j Substituting in from ( 2 ) and ( 5 ) : ( g + h + i + j ) 2 = 4 1 5 7 8 + 7 1 3 1 8 ( g + h + i + j ) 2 = 1 1 2 8 9 6 g + h + i + j = 3 3 6