wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> medium >> A summation exercise
(Message started by: BNC on Feb 19th, 2003, 10:10am)

Title: A summation exercise
Post by BNC on Feb 19th, 2003, 10:10am
Complete the following summation exercise, using all digits 1 - 9 once.
There are multiple answers. The one required is the one that yields the maximal sum.

And please -- no brute force ;)

  __  __  __
+
  __  __  __
____________
  __  __  __
 

Title: Re: A summation exercise
Post by poseur on Feb 19th, 2003, 12:04pm
By "no brute force" I assume you're not only ruling out computerized solutions but also just guessing till you find an answer. So here's what I was able to logic out.
[hide]With 4 even digits and 5 odd divided into 3 sets, it's easy to see the answer will have to involve one instance of carrying a one to the next column. Assuming there will be at least one solution greater than 900; if tens are going to carry over to the hundreds digit, the highest total would be in the 950's, and it takes very little shuffling of the numbers to find that solution: 271+683=954. If it's the ones column that is>10, then let's assume we want to minimize the high numbers wasted in that column. 5,6,1. That easily points to the solution 235+746=981. In this scenario the tens and hundreds addends must total 16, so there's no way to increase the ones total. [/hide]

Title: Re: A summation exercise
Post by James Fingas on Feb 20th, 2003, 12:51pm
Here's another way to get the same result:
[hide]
1) With no carries, the sum of the six digits on top must equal the sum of the three digits on bottom. But the sum of all nine digits is 45, so there's no way to do this.

2) With one carry, we have the top numbers sum to 9 greater than the bottom numbers. (45-9)/2=18, so the top numbers sum to 27 and the bottom numbers sum to 18.

3) The biggest number we can make with three digits that are all different, yet sum to 18, is 981.

4) The carry cannot be in the hundreds digit, and it also can't be in the tens digit. Therefore, the carry is in the ones digit. A little trial-and-error reveals that you actually can form the sum 981, just as poseur found (or in a couple other ways).[/hide]



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board