| hvisage on Tue, 4 Apr 2000 09:57:28 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: GLUG: Lotto |
On Mon, Apr 03, 2000 at 08:55:58PM +0200, Carl Templin 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
> ................................................
>
>
> > 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
>
>
> RONG! This is a permutation. You want combinations 6 out of 49
Apologies: it should be "49 combination 6" (Moderne Statistiek vir die
Praktyk)
/49\ = 49! = 49!
\6/ --- ---
6!(49-6)! 6!43!
Which is an even smaller number (720th less)
thus it approaches R35million
This looks MUCH more doable, after the jackpot reached R40million or more...
> > 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
>
>
> cheers, CT.
--
------------------------
Hendrik Visage
hvisage@xxxxxxxxxxxxxx