If I got I right, 70 would be such a number. (I hope this is no spoiler) divisors = [1, 2, 5, 7, 10, 14, 35] sum = 74 no combination of the divisors adds up to 70 cheers Simon > -----Original Message----- > From: JB Eriksson [mailto:mrkode / gmail.com] > Sent: Friday, December 02, 2005 3:48 PM > To: ruby-talk ML > Subject: Re: [QUIZ] Weird Numbers (#57) > > please give an example of such a number. english is my second > language, and > english math speak is more like my sixth language or so (below > german,swedish techspeak and english techspeak). > > On 12/2/05, Ruby Quiz <james / grayproductions.net> wrote: > > > > The three rules of Ruby Quiz: > > > > 1. Please do not post any solutions or spoiler discussion > for this quiz > > until > > 48 hours have passed from the time on this message. > > > > 2. Support Ruby Quiz by submitting ideas as often as you can: > > > > http://www.rubyquiz.com/ > > > > 3. Enjoy! > > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > -=-=-=-=-=-=-=-=-= > > > > by Martin DeMello > > > > A weird number is defined as a number, n, such that the sum > of all its > > divisors > > (excluding n itself) is greater than n, but no subset of > its divisors sums > > up to > > exactly n. > > > > Write a program to find all the weird numbers less than a > given input. > > > > >