Forum Home
PC World Chat
 
Thread ID: 50317 2004-10-17 02:52:00 Lotto Tips lotto (6285) PC World Chat
Post ID Timestamp Content User
281877 2008-03-18 13:25:00 Interesting reading! I am not much of a programmer, but I am intrigued by the maths. How easy is it to write a program that will generate 6 number lines that cover all four number combinations of 1-40, without any repeats? There are 91390 four number combinations from numbers 1-40. Each 6 number line covers 15 four number combinations. Is it possible therefore to generate 6092.66 (91390/15) six number lines that cover the 91390 four number combinations? If possible let me know.

Well it's like this........yes certainly every group of six numbers contains 15 groups of four but.....you will get plenty of 'doubleups' a simple example is the 8 number 'budget' combo i made up it goes like this:

123456
123478
125678
135678
145678
235678
245678
345678

now this grouping of 8 rows of six numbers contains all the groups of 4 numbers which may be derived from any 8 numbers (from memory theres 70 - I think) theres NO possible way to reduce that down so you can play less than 8 groups of six numbers to 'cover' all the 4:8 sets........

as you can easily see theres several 'repeats' .......in fact 8 groups of six numbers contain 120 groups of 4 numbers.....

so to answer this:


How easy is it to write a program that will generate 6 number lines that cover all four number combinations of 1-40, without any repeats? as far as I can make out its most likely totally impossible to avoid repeats......

Oh btw for anyones interest .........waaaaaaayyyyyyyy back when I first started doing this stuff I wrote a 700 line BASIC program (on my 128 commodore lol - pretty much my first REAL program) ......this was designed to allow you to input any group of 8-9-10-12-14-16-20 numbers (or get the pc to input a ramdomly chosen group for you then match those numbers against any number of simulated draws then print out a summary of the resulting 'wins'. Was quite interesting......taking into account the non 'true' randomness of numbers generated by the pc I recall running one set of 20 numbers over 10,000 draws.......it showed up overall that you'll get about one group of SEVEN winning numbers (6+bonus) within any chosen group of 20 appearing with a frequency of about 1 in 50 draws......

lol......commodores........I also wrote a program designed to generate all the groups of 4 numbers which could be derived from 40 ........this took over three hours to run ! Guess on my P4 (3.2ghz) it'd take a HELL of a lot less probably a matter of seconds.......
drcspy (146)
281878 2008-03-18 22:29:00 Cool, thanks drcspy. Obviously you have thought about this more than me. I was thinking more along the lines of:

1 2 3 4 5 6
1 2 3 7 8 9
1 2 3 10 11 12
1 2 3 13 14 15
1 2 3 16 17 18
1 2 3 19 20 21
1 2 3 22 23 24
1 2 3 25 26 27
1 2 3 28 29 30
1 2 3 31 32 33
1 2 3 34 35 36
1 2 3 37 38 39
1 2 3 40

1 2 4 7 10 13
1 2 4 16 19 22
1 2 4 25 28 31
1 2 4 34 37 40
1 2 4 8 11 14
1 2 4 17 20 23
1 2 4 26 29 32
1 2 4 35 38 9
1 2 4 12 15 18
1 2 4 21 24 27
1 2 4 30 33 36
1 2 4 39

And so on. All I have done here is use 123456 then the next line (by adding 1 to the end) that doesn't have repeats and so on. Sort of like binary 40 system I suppose? As you can see there is no way around the first incomplete line as if you add any number to complete the line you will get repeats.

That is not such a big deal as some double ups are ok. The reason I am trying to work this out is simple. I agree with everyone that lotto is completely random and there is no way to beat the odds. However there is a way to guarentee getting 25% of your money back and reduce your odds to a real probability of winning 80% of your money back each draw. And of course you still have the odds of getting more (or less) but that is what gambling is all about!! This system would suit people that faithfully get their $6 lotto ticket every week. Essentially it's getting a definite 25% discount on lotto tickets, and probably an 80% discount, i.e. playing lotto for 20% of the normal price!!

If you can help with the combos let me know. I have a maths/stats degree. this is for real. In fact it's really simple!!! Can share more if anyone is interested?
lottogeek (6286)
281879 2008-03-18 23:09:00 Isn't it a fact that you can't improve your chance of winning but you can use numbers least likely to be picked by other people for various reasons so that if you ever do win, you're less likely to be sharing with a crowd of others. PaulD (232)
281880 2008-03-18 23:55:00 I had thought of doing this long ago to write a program to generate all the possible combos of 4:40 then run a process to create all necessary sets of 6 numbers incorporating those 4:40 groups.....and set it up to make the least possible 6 number groups thus covering all the 4:40's as cheaply as possible.....however I got lazy lol......I did long ago design a system which guaranteed a win if you played the 40 numbers (as two groups of 20) This was all the 4:20 combos (from memory there were about five and a half thousand of them) combined into groups of 6 numbers - I did this all 'manually' BY HAND as in those days I didn't have a computer. Turns out it costs about $600 to play all 40 numbers this way and if I recall correctly the 'repeat rate' of the 4:20's was about 1.7 ......so in essence it'd guarantee you a win for you $600 but only maybe $50 - the chances were pretty good of getting more of course.......I actually designed about 35 systematic methods of playing in the end then I kinda got too busy with other life happenings and sorta dropped it though my interest has always been numerical stuff :-)


It's really very interesting and not just because of the potential to win but I find it quite fascinating to look at what different playing strategies do for the potential results.........

Heres a little hint......look at for instance what happens when you play all the 40 numbers as two groups of 20

Group A: 1 2 3 4 5 6 7
Group B: 6 5 4 3 2 1 0

The above shows that if group A for example has 5 winning numbers then group B MUST contain the other 2. The really interesting thing is this: if you played BOTH groups of numbers then one of them MUST contain AT LEAST 4 winning numbers........the methods you use to play those groups of 20 numbers will be the greatest determining factor in whether you collect a prize.....This can break down into some interesting scenarios........
drcspy (146)
281881 2008-03-19 00:07:00 Isn't it a fact that you can't improve your chance of winning

WRONG.........

as I stated earlier heres an example

lotto 9 combo (i'll use the 'old' prices here it's easier for me to remember)

$42 = play ONE group of 9 numbers

Use MY budget 9 combo game
$6 = play ONE group of 9 numbers.....same odds of winning A prize (might be a smaller prize though)


now imagine your budget is $42 per week

what you gonna do ?........play ONE 9 number combo for $42 or play SEVEN 9 number 'budget combo' games for the same cost ?........

it's VERY obvious that for the same cost playin SEVEN different groups of 9 numbers is going to give you a MUCH better chance of winning...

the bottom line is that if you get smart and play 'budget' systems you can indeed increase your chances of winning yet at the same time lose LESS should you not get a prize.........so does that cover it ?......

Dont gamble your plan - Plan your gamble
drcspy (146)
281882 2008-03-19 01:07:00 "How can you improve your chances of winning the lottery? Simple, Buy more tickets. I would love to highlight to you a fantastic new system that would change or enhance you ability to win the lottery. Unfortunately I can't because it is not possible. Well I say that, it is, You simply buy more tickets!!"
www.probabilitytheory.info

Your example of $42 sounds like buying more tickets!
PaulD (232)
281883 2008-03-19 02:10:00 yes buy more tickets is one way and the trick is - if you get smart - you can cover a greater range of numbers within a certain budget. Of course playing more numbers should give you a better chance of winning......whats your problem with tht ?... drcspy (146)
281884 2008-03-19 02:13:00 I would love to highlight to you a fantastic new system that would change or enhance you ability to win the lottery. Unfortunately I can't because it is not possible

WRONG of course you can *enhance* your ability to win even without 'buying more tickets' or exceeding whatever your current lotto budget might be.....it's called playing SMART.

And anyway it is again entirely possible to GUARANTEE a win but of course you cant guarantee a profit in the same game

Generally speakign when you play lotto you'll either need luck to win - or if you want to spend a bit and play a guaranteed winning system you'll need luck in order to make a profit. You cant 'beat the system' but you can play SMART.
drcspy (146)
281885 2008-03-19 02:29:00 Stick with exactly the same numbers ALWAYS and eventually they will come up. Bantu (52)
281886 2008-03-19 08:40:00 yes buy more tickets is one way and the trick is - if you get smart - you can cover a greater range of numbers within a certain budget. Of course playing more numbers should give you a better chance of winning......whats your problem with tht ?...

You may be able to cover a greater range of numbers with a system and a limited budget but you cannot cover more combinations of numbers on an equal or lesser budget. That does not vary.
andrew93 (249)
1 2 3 4 5 6 7 8 9 10 11 12