wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> hard >> A magical number?
(Message started by: BMAD on Feb 24th, 2015, 9:01am)

Title: A magical number?
Post by BMAD on Feb 24th, 2015, 9:01am
Write a list from 1 to 100.
Pick two numbers at random
Sum the two numbers and find the product of the two numbers
Sum the above two numbers you found
Erase the two chosen numbers from the list
Add the final sum of the two numbers to the list
Repeat until there is only one number.

Repeat the above process multiple times.

Is it the same number? Do the numbers center around a point? Bimodal?  analyze.

I recommend trying this for numbers 1-10 and 1-20 to see if anything special is happening ... The calculated numbers can be quite huge.

Title: Re: A magical number?
Post by towr on Feb 24th, 2015, 11:15am
[hide]The operation is commutative and associative, so the answer is always the same for a given starting set of numbers
It seems to be to sum of the products of each set in the powerset. But calculated much quicker than it sounds :p [/hide]

Title: Re: A magical number?
Post by pex on Feb 24th, 2015, 2:32pm
Numerically, the result seems to be [hide](n+1)!-1[/hide]. Given the form of the answer and towr's observation that [hide]the order in which the operations are performed doesn't matter[/hide], it looks like it shouldn't be too hard to produce a proof based on [hide]good old mathematical induction[/hide], but I don't have the time right now.

Edit: [hide]Ok, the base case is obvious, and the induction step is essentially just (n!-1) + n + n(n!-1) = n!(n+1) +n-n -1 = (n+1)!-1.[/hide] Neat little puzzle!

Edit the Second: By the same reasoning, if the list of numbers does not have to be 1..n but can be anything, the result is [hide]product(xi+1)-1[/hide].



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