From: "Eric I." Date: 2008-06-09T03:13:46+09:00 Subject: Re: Preferable Pairs (#165) On Jun 7, 11:05 pm, "Eric I." wrote: > By the way, if there are n people, I believe the formula for the > number of partnership schemes is: > >     n! / (n / 2)! / 2**(n / 2) An alternative (and more efficient) way to compute the number of partnership schemes is to multiply all the odd values from 1..n. For example, if there are eight people, then we have 1 * 3 * 5 * 7, or 105. Eric ==== LearnRuby.com offers Rails & Ruby HANDS-ON public & ON-SITE workshops.    Ruby Fundamentals Wkshp          June 16-18     Ann Arbor, Mich.    Ready for Rails Ruby Wkshp       June 23-24     Ann Arbor, Mich.    Ruby on Rails Wkshp              June 25-27     Ann Arbor, Mich.    Ruby Plus Rails Combo Wkshp      June 23-27     Ann Arbor, Mich Please visithttp://LearnRuby.comfor all the details.