r/programmingrequests • • Sep 10 '15

Request for a program that shows the number combinations extracted in a lottery game

Hello everyone!

 

I have an excel file with the data bellow which are numbers extracted in a lottery game. Each day there are 20 numbers extracted from a pool of 80 numbers (1 to 80). The first column shows the number of extractions made and the columns 2 to 21 show the 20 numbers that are extracted in each extraction. Each day I will add in this file the numbers selected that day.
What I want is a program that will show me the combinations of 2,3...20 numbers (I want to be able to select how many) from 1 to 80 that were not extracted in the last (I want to be able to select how many) extractions. I know this is probably not an easy thing to do so any kind of help would be greatly appreciated.

 

For example:
If I would tell the program to show me the combinations of 2 numbers that were not extracted in the last 100 extractions (the ones bellow) then the result would be:

1-66; 10-18; 14-68; 18-53; 28-53; 53-72; 62-66

 

Extr. nrNr. 1Nr. 2Nr. 3Nr. 4Nr. 5Nr. 6Nr. 7Nr. 8Nr. 9Nr. 10Nr. 11Nr. 12Nr. 13Nr. 14Nr. 15Nr. 16Nr. 17Nr. 18Nr. 19Nr. 20
1436434401177756115142955763601850371716
24152505549594043616851783747154662547624
3132258745759391574450973367527632914
4577212992868472791872253414211405745
5681653446576455465226133729794035695530
675303155820332119662747556823422251387
72729176746120566624581173126584295113
881048271133473804572441328376322772465
9542040517918223236686193072867867839
1044826292113807543395953341777462452207
115455262867487235563401128019435121874
1265595464471963420583840112596215241478
1359485626533570201364785631138396016553
14362385570687788441661127943391833427
1544255958762339829121822742135234756961
161024879175076413517267762743143206148
1766522373182128861554142762965795626451
1856328422201014780427219697331576701
1962546127473753839694351796877407158328
202322492634358303670646838396253880956
21581727783565617554707237167132059608038
22601485128733871177418426559397724545
23654818604412745130762264402123233666373
2420407413312132381224836634270103033339
25672372276824202344163124765643761129
2646349484129735770123035311876588374060
27513176916762064405363357030361455376141
284277603156581336924183435543784632354
298521013165363912684347920592533722963
3016541545764850592843366563156417333251
3147163552342733050118727078266213746327
3221422814657385307648627849107743643345
33627864585077412659333779382360705542514
3480623151939611611469574028655821554679
35480261112405670671829782976821614419
3665783236117331375123358482161476740242
375512167681931466107013413850476525715
3827741916622330326972177920187784159675
39131253147366452971747677616226021781933
4076395859291615686537781172547025644668
41635053157831591063747780546195475259
425760394337615416781165363270202856765564
43406116725529642154314351284248713712024
4474447477363312042265747344683554649
45664221122617375272304676556254278055
462564015637534295233181602726457767328
472177151976451151781741693842567293774
48114739806724494121330435260692061425471
4948593774443157232166829255071656186636
502614847230526735655944632510557870958
5142880552661547525362023276327656133529
52273741618029792666332444656474063577048
53295434383726552219787128356375413249514
54774481538213722297165410433623453069
55271871224137642205734523632795970197411
563457314177594942616254878437140531012
57772420415775392629378516021286740666874
5829426758563645148853141964326026344562
591370182154427492763378783417976225829
604251234145557960567314533565508105416
6115157711823351532473843691341605421778
62106028187417172233868246245426581315
6370676312649481375584618797145622465319
6415691117043148173276203821164180743645
6564775759297674234784923556117125761363
66607125515363175376753806242544647237430
675638371674228029363239244159756360524867
6846764246782660273523225231716169582532
6922566359652167546367151257387835202441
706724730545346791629391033216551234704
715629427375401849194350176845526120693048
723342353662475517259640377458792053825
73216614163480465871545783218291248156074
7424754755504229781746258141921573843680
758066348604723921673332718561779114449
7615520742541637257795661652322647735592
77265760137821748357323425956631224696276
781335269241851282165929622731481941532
7914582160566369807333265462137235154445
803747691233537059764258432665142450737746
813992034602823843315501136274012594479
825726863141372943615035133283847453239
836265355136140177169723649682956622759
84527858571131516497224516744186066324156
85588048771779706333342656672435712192174
862467262734265435349363446213357395838
8743707641488035271683945444256540571145
8868104360387922253197735488464254549
89165107640637368531262505177175249752555
907311920253280775437362221272394217248
9131597320651734373540517695327055424667
927930762543753161495963154254227335402437
9376483866755579274910327135638012367061
946154319383276142563731552505729672719
95335213104143564549577044666302741980
96157128436670773246587887917392769407265
97677315144216793641714781297470396972
98525126840597218701117281679804974555166
9976432810544297412337417036214640662027
10022667323444393461335642427415669387747
2 Upvotes

2 comments sorted by

1

u/[deleted] Sep 12 '15

Could you clarify the first column for me? I'm assuming that each row represents the extraction of numbers for one day and the first column is a number that represents the number of extractions (days) that have occurred.

1

u/ursubalu Sep 12 '15 edited Sep 12 '15

Yes TheSadDad, you are assuming correctly. The first column represents the number of extractions ( day 1 to 100) and the other columns represent the numbers that were extracted in each of these days.
What I am interested in is knowing which are the combinations of 2,3 and up to 20 numbers that are extracted each day that have not occurred in the last xxx extractions.
I'm pretty sure that if I had that information I would start winning at the lottery:)