hvisage on Mon, 3 Apr 2000 09:11:39 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: GLUG: Lotto


On Sat, Apr 01, 2000 at 08:05:56AM +0200, Dwayne Bailey wrote:
> 
> 
> > On the same thread, why not just brute force the lotto? There are only a
> > finite number of possible combinations, so generate a list of every
> possible
> > combination, and if cost to enter all the combinations is less than the
> > winnings, you have a profit... If not, back to random number generation
> :-)
> 
> 49^6 * R2.50 = +- R34.6 billion - enough to run a small African country.  I
> guess its back to random numbers

Wrong: 49!/43! which IS less than 49^6
10068347520 < 13841287201
The Logic: First pass there are 49 balls to choose from.
Second pass there are now only 48 balls 
etc.
Thus: 49*48*47..*1=49!
But we'll stop after 6 tries: thus eliminate every thing after the 49-6'th try
Thus: 49!/43!=49*48*47*46*45*44

But it's still a biggish value :(

> or
> 49^5 * R2.50 =  +- R706 million - still a lot.
> 
> Regards
> Dwayne Bailey
> 
> --
> The Linux Warehouse - your source of Linux software
> http://www.linuxwarehouse.co.za/
> info@xxxxxxxxxxxxxxxxxxxx
> tel/fax: +27-21-685 3754
> 
> 
> ---
> To unsubscribe from this list: send the line "unsubscribe glug" in
> the body of a message to majordomo@xxxxxxxxxxxx

-- 
------------------------
Hendrik Visage
hvisage@xxxxxxxxxxxxxx