Need help figuring out pattern

michaelsmith559

Well-known Member
Joined
Oct 6, 2013
Messages
881
Office Version
  1. 2013
  2. 2007
I'm trying to figure out patterns for someone who is playing the lottery. They want me to show the low/high & odd/even combinations broken down into four groups: low/odd, low/even, high/odd, high/even. I have most of it done but can't figure out what I'm missing. The total combinations should be 12103014 and I have 11186884. I need to find the missing patterns. Here is what I have done so far:

Cell Formulas
RangeFormula
F2F2=SUM(B2:E2)
B4:E8B4=COMBIN(B$2,$A4)
G69:J72,G11:J62G11=COMBIN(B$2,B11)
K11:K72K11=G11*H11*I11*J11
G63:J63G63=COMBIN(B2,B63)
G64:J64G64=COMBIN(B2,B64)
G65:J65G65=COMBIN(B2,B65)
G66:J66G66=COMBIN(B2,B66)
G67:J67G67=COMBIN(B2,B67)
G68:J68G68=COMBIN(B2,B68)
L72L72=SUM(K11:K72)
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
How do you conclude, that the result should be: 12103014 ?
This result you get, from =COMBIN(F$2;$A4)
 
Upvote 0
How do you conclude, that the result should be: 12103014 ?
This result you get, from =COMBIN(F$2;$A4)
The game they are doing is choosing 5 main numbers from 70.
That is 12103014 combinations.
So in the above post, five numbers total must be chosen. You could choose 5 from just one group or a few across several groups so that the total of numbers chosen is 5.
 
Upvote 0
I still cant's see, how you conclude that in your set of numbers, the result should be 12103014 ? As you write, the possible combinations, are this number, as a formula =COMBIN(F$2;$A4) will show.
But your set of numbers, differs from that possible combinations. And your explanation in #3 do not make it more clear to me, the logic behind.
 
Upvote 0
I still cant's see, how you conclude that in your set of numbers, the result should be 12103014 ? As you write, the possible combinations, are this number, as a formula =COMBIN(F$2;$A4) will show.
But your set of numbers, differs from that possible combinations. And your explanation in #3 do not make it more clear to me, the logic behind.
Sorry, I will try to make it clearer.
They have to choose 5 numbers from a total of 70. You can use the combin function to calculate the combinations which returns 12103014. They broke the numbers down into 4 different ways of combining them. You can only have a total of 5 numbers but they come from the 4 groups. So for example, in B11 they chose 5 numbers from the low/odd group which give a 8568 combinations. Or they could choose 1 number from low/odd, 1 number from low/high, and 3 numbers from high/even which would give 249696 combinations (Cell K50). Maybe this helps explain it better? If not, I'll try again.
 
Upvote 0
So I figured out I could just do the permutations for the arrangements and remove duplicates to get the patterns I needed. For example, I took 1112 ran a macro for permutations taking 4 at a time and then used the remove duplicates function. Now, I'll see if all the patterns I have equal the number of combinations. Thanks.
 
Upvote 0
After figuring out the patterns using permutations and deleting the duplicates, I still do not have the 12103014 combinations. Did I remove duplicates I didn't need to or am I just missing something else entirely? My reasoning for the 12103014 is that it's still 70 numbers in total and your still choosing 5 at a time. Unless I am missing a pattern for the way they are broken down I'm not sure why the total combinations do not sum to 12103014. Any suggestions? Thanks.

Cell Formulas
RangeFormula
F2F2=SUM(B2:E2)
B4:E8B4=COMBIN(B$2,$A4)
F10:I53F10=COMBIN(B$2,B10)
J10:J53J10=F10*G10*H10*I10
K53K53=SUM(J10:J53)
 
Upvote 0
I found the missing pattern. Here is the sheet finished:

Lotto Odds&Prob.xlsm
ABCDEFGHIJKLMNOPQRSTU
1Low/OddLow/EvenHigh/OddHigh/EvenTotalCombinationsProbabilityOccur in 100Occur in 100OddsWays to MissMiss ProbabilityMiss in 100Miss in 100Number PatternsCount
2Items18171718700, 0, 0, 556
3Chosen0, 0, 5, 0
4585686188618885680, 5, 0, 0
5430602380238030605, 0, 0, 0
638166806808160, 0, 1, 4
721531361361530, 0, 4, 1
81181717180, 1, 0, 4
90, 1, 4, 0
100005111856885680.00070792001 : 1413120944460.99929207799.9399 to 1000, 4, 0, 1
110050116188161880.00051128001 : 1956120968260.99948872299.9599 to 1000, 4, 1, 0
120500161881161880.00051128001 : 1956120968260.99948872299.9599 to 1001, 0, 0, 4
135000856811185680.00070792001 : 1413120944460.99929207799.9399 to 1001, 0, 4, 0
14004111238018428400.00353961001 : 283120601740.99646038699.6599 to 1001, 4, 0, 0
15001411173060520200.0042981001 : 233120509940.99570189799.5799 to 1004, 0, 0, 1
16040112380118428400.00353961001 : 283120601740.99646038699.6599 to 1004, 0, 1, 0
17041012380171404600.00334297001 : 299120625540.99665703199.6799 to 1004, 1, 0, 0
18010411713060520200.0042981001 : 233120509940.99570189799.5799 to 1000, 0, 2, 3
19014011723801404600.00334297001 : 299120625540.99665703199.6799 to 1000, 0, 3, 2
20400130601118550800.00455093001 : 220120479340.99544906799.5499 to 1000, 2, 0, 3
21401030601171520200.0042981001 : 233120509940.99570189799.5799 to 1000, 2, 3, 0
22410030601711520200.0042981001 : 233120509940.99570189799.5799 to 1000, 3, 0, 2
23100418113060550800.00455093001 : 220120479340.99544906799.5499 to 1000, 3, 2, 0
24104018123801428400.00353961001 : 283120601740.99646038699.6599 to 1002, 0, 0, 3
25140018238011428400.00353961001 : 283120601740.99646038699.6599 to 1002, 0, 3, 0
260023111368161109760.0091692910 to 11 : 109119920380.99083071499.08992, 3, 0, 0
270032116801531040400.0085962110 to 11 : 116119989740.99140379499.14993, 0, 0, 2
280203113618161109760.0091692910 to 11 : 109119920380.99083071499.08993, 0, 2, 0
29023011366801924800.0076410710 to 11 : 131120105340.99235892899.24993, 2, 0, 0
300302168011531040400.0085962110 to 11 : 116119989740.99140379499.14990, 1, 1, 3
31032016801361924800.0076410710 to 11 : 131120105340.99235892899.24990, 1, 3, 1
322003153118161248480.01031545111 : 97119781660.98968455398.9798 to 990, 3, 1, 1
332030153168011040400.0085962110 to 11 : 116119989740.99140379499.14991, 0, 1, 3
342300153680111040400.0085962110 to 11 : 116119989740.99140379499.14991, 0, 3, 1
353002816111531248480.01031545111 : 97119781660.98968455398.9798 to 991, 1, 0, 3
363020816113611109760.0091692910 to 11 : 109119920380.99083071499.08991, 1, 3, 0
373200816136111109760.0091692910 to 11 : 109119920380.99083071499.08991, 3, 0, 1
381103181718162496960.02063089221 : 48118533180.97936910697.9497 to 981, 3, 1, 0
391130181768012080800.0171924121 to 21 : 58118949340.98280758898.28983, 0, 1, 1
401013181178162496960.02063089221 : 48118533180.97936910697.9497 to 983, 1, 0, 1
411031181680182203200.0182037321 to 21 : 55118826940.9817962798.18983, 1, 1, 0
421310186801712080800.0171924121 to 21 : 58118949340.98280758898.28980, 1, 2, 2
431301186801182203200.0182037321 to 21 : 55118826940.9817962798.18980, 2, 1, 2
440113117178162358240.0194847321 to 21 : 51118671900.98051526798.05980, 2, 2, 1
450131117680182080800.0171924121 to 21 : 58118949340.98280758898.28981, 0, 2, 2
460311168017182080800.0171924121 to 21 : 58118949340.98280758898.28981, 2, 0, 2
473110816171712358240.0194847321 to 21 : 51118671900.98051526798.05981, 2, 2, 0
483101816171182496960.02063089221 : 48118533180.97936910697.9497 to 982, 0, 1, 2
493011816117182496960.02063089221 : 48118533180.97936910697.9497 to 982, 0, 2, 1
5011121817171537959060.0657609776 to 71 : 15113071080.93423902593.42932, 1, 0, 2
5111211817136187490880.06189268661 : 16113539260.93810731893.8193 to 942, 1, 2, 0
5212111813617187490880.06189268661 : 16113539260.93810731893.8193 to 942, 2, 0, 1
5321111531717187959060.0657609776 to 71 : 15113071080.93423902593.42932, 2, 1, 0
5401221171361533537360.029227132 to 31 : 34117492780.970772997.08971, 1, 1, 2
5502121136171533537360.029227132 to 31 : 34117492780.970772997.08971, 1, 2, 1
5602211136136183329280.0275078632 to 31 : 36117700860.97249214197.25971, 2, 1, 1
5710221811361533745440.03094634331 : 32117284700.96905365996.9196 to 972, 1, 1, 1
5812021813611533745440.03094634331 : 32117284700.96905365996.9196 to 97
5912201813613613329280.0275078632 to 31 : 36117700860.97249214197.2597
6020121531171533979530.03288049331 : 30117050610.96711951396.7196 to 97
6120211531136183745440.03094634331 : 32117284700.96905365996.9196 to 97
6221021531711533979530.03288049331 : 30117050610.96711951396.7196 to 97
6321201531713613537360.029227132 to 31 : 34117492780.970772997.0897
6422011531361183745440.03094634331 : 32117284700.96905365996.9196 to 97
6522101531361713537360.029227132 to 31 : 34117492780.970772997.0897
6612103014
MM Number Patterns
Cell Formulas
RangeFormula
F2F2=SUM(B2:E2)
U2U2=COUNTA(T:T)-1
B4:E8B4=COMBIN(B$2,$A4)
F10:I65F10=COMBIN(B$2,B10)
K10:K65,P10:P65K10=J10/$J$66
L10:L65L10=ROUND(K10*100,0)
M10:M65,R10:R65M10=IF(INT(ROUND(K10*100,2))=ROUND(ROUND(K10*100,2),0),INT(ROUND(K10*100,2)),INT(ROUND(K10*100,2))&" to "&ROUND(ROUND(K10*100,2),0))
N10:N65N10=1&" : "&(ROUND(1/K10,0))
O10:O65O10=$J$66-J10
Q10:Q65Q10=ROUND(P10*100,2)
J10:J65J10=F10*G10*H10*I10
J66J66=SUM(J10:J65)
 
Upvote 0
Here are a couple more sheets that go with the above trying to find combinations:

Lotto Odds&Prob.xlsm
GHIJK
1Low/HighCombinationsProbabilityOccur in 100Ways to Miss
20 Low / 5 High3246320.026822412 to 311778382
31 Low / 4 High18326000.1514168291510270414
42 Low / 3 High38942750.321760761328208739
53 Low / 2 High38942750.321760761328208739
64 Low / 1 High18326000.1514168291510270414
75 Low / 0 High3246320.026822412 to 311778382
8Total Comb12103014
9Low: 1 to 35
10High: 36 to 70
11
12
13Odd/EvenCombinationsProbabilityOccur in 100Ways to Miss
140 Odd / 5 Even3246320.026822412 to 311778382
151 Odd / 4 Even18326000.1514168291510270414
162 Odd / 3 Even38942750.321760761328208739
173 Odd / 2 Even38942750.321760761328208739
184 Odd / 1 Even18326000.1514168291510270414
195 Odd / 0 Even3246320.026822412 to 311778382
20Total Comb12103014
2135 Odd
2235 Even
PB MM C4L JB
Cell Formulas
RangeFormula
I2:I7I2=H2/$H$8
J14:J19,J2:J7J2=IF(INT(ROUND(I2*100,2))=ROUND(ROUND(I2*100,2),0),INT(ROUND(I2*100,2)),INT(ROUND(I2*100,2))&" to "&ROUND(ROUND(I2*100,2),0))
K2:K7K2=$H$8-H2
H2,H14H2=COMBIN(35,0)*COMBIN(35,5)
H3,H15H3=COMBIN(35,1)*COMBIN(35,4)
H4,H16H4=COMBIN(35,2)*COMBIN(35,3)
H5,H17H5=COMBIN(35,3)*COMBIN(35,2)
H6,H18H6=COMBIN(35,4)*COMBIN(35,1)
H7,H19H7=COMBIN(35,5)*COMBIN(35,0)
H8,H20H8=SUM(H2:H7)
I14:I19I14=H14/$H$20
K14:K19K14=$H$20-H14


On the sheet below you can change the cells in blue to different numbers to see how the probability and odds change if you have the winning numbers in the amount you are leaving.
Lotto Odds&Prob.xlsm
AB
1MegaMillions
2Choose Main5
3Main Balls70
4Bonus25
5Main Comb12103014
6Bonus Comb25
7Odds1 : 302575350
8Probability0.000000003304961888006
9
10
11Change Main67
12Change Bonus23
13Main Comb9657648
14Bonus Comb23
15Odds1 : 222125904
16Probability0.000000004501951289751
Sheet13
Cell Formulas
RangeFormula
B5B5=COMBIN(B3,B2)
B6,B14B6=COMBIN(B4,1)
B7,B15B7=1&" : "&(B5*B6)
B8,B16B8=1/((RIGHT(B7,LEN(B7)-4))+0)
B13B13=COMBIN(B11,B2)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top