Lexicographic Index & Sums

PAB

Member
Alexafjb said:
What would your thoughts be on that Module having the ability to do the same thing, “CSN, SORT, PRIME Number” and include the ability of the user to be able to pick 1, 2, or 3 numbers to use as “seed’s” for the generation of the CSN, ect?
Hi Alex,

Here are the calculations relating to Designated / Banker numbers, which I think you call “Seed’s”.
They are for ALL the Designated / Banker numbers from 1 to 5 within the C(49,6) combinations.

Please note: These are for the full C(49,6) combinations WITHOUT having any criteria applied and are for a 649 Lotto with ONE Bonus number drawn.

ONE Banker
Matched & Combinations
1 Match = 962,598 Combinations
2 Match = 617,050 Combinations
3 Match = 123,410 Combinations
4 Match = 9,030 Combinations
5 Match = 210 Combinations
5 + Bonus = 5 Combinations
6 Match = 1 Combination
Totals > = 1,712,304 Combinations

TWO Bankers
Matched & Combinations
2 Match = 123,410 Combinations
3 Match = 49,364 Combinations
4 Match = 5,418 Combinations
5 Match = 168 Combinations
5 + Bonus = 4 Combinations
6 Match = 1 Combination
Totals > = 178,365 Combinations

THREE Bankers
Matched & Combinations
3 Match = 12,341 Combinations
4 Match = 2,709 Combinations
5 Match = 126 Combinations
5 + Bonus = 3 Combinations
6 Match = 1 Combination
Totals > = 15,180 Combinations

FOUR Bankers
Matched & Combinations
4 Match = 903 Combinations
5 Match = 84 Combinations
5 + Bonus = 2 Combinations
6 Match = 1 Combination
Totals > = 990 Combinations

FIVE Bankers
Matched & Combinations
5 Match = 42 Combinations
5 + Bonus = 1 Combinations
6 Match = 1 Combination
Totals > = 44 Combinations

I just thought you might be interested in the overall reduction in the C(49,6) combinations if you were to use a Designated / Banker number(s).

Regards,
PAB
:wavey:

-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-
12:45, restate my assumptions.
Mathematics is the language of nature.
Everything around us can be represented and understood through numbers.
If you graph the numbers of any system, patterns emerge. Therefore, there are patterns everywhere in nature.
 

Alexafjb

Member
Hi PAB

I’m … a bit lost!

Let me see if I can approach this with a different explanation of what I meant.

What would your thoughts be on that Module having the ability to do the same thing, “CSN, SORT, PRIME Number” and
include ability of the user to be able to pick 1, 2, or 3 numbers to use as “seed’s” for the generation of the CSN, ect. ?
What I meant by “seeds”. Just wrong terminology. Forget it.

We have the code you wrote that brings together all of the CSN for the given SUM (in this example it’s 160).
Your code also counts the number of PRIMES & the sums which =160.
Fabulous!

The terminology I used “Seeds” referred to the SUM of 160.
(I see now that I did not write what I was think at the time!!!! My error Sorry!)
SO, if I wanted to know all the CSN & Primes for say 110, I would change (Seed) the “Const SumTotal As Integer =110”

Now what I was asking, if I wanted only CSN that contained any 1,2,3,or 4 number between 1- 49 that I chose to be constant in the CSN but still SUM to (in our example 160).

Criteria:
The CSN, Sum’s to ( i.e. 140).
Primes are counted.
CSN must contain either 1-2-3 or4 numbers (as constants that I pick from 1-49)
CSN must Sum to ( in this example 140 with all the 1-2-3 or 4 numbers that I chose).

I tell ya PAB, some days my mind is one large fart after another! I know there was a simple way to explain what I meant, but do you think I could rub the right two thoughts together to get it out!

Cheers.
Alex.:hair:
 

PAB

Member
Hi Alex,

Alexafjb said:
Now what I was asking, if I wanted only CSN that contained any 1,2,3, or 4 number between 1- 49 that I chose to be constant in the CSN but still SUM to (in our example 160).

Criteria:-
The CSN, Sum’s to ( i.e. 140).
Primes are counted.
CSN must contain either 1-2-3 or4 numbers (as constants that I pick from 1-49)
CSN must Sum to ( in this example 140 with all the 1-2-3 or 4 numbers that I chose).
Just to clarify Alex.
If you picked the TWO numbers 9 and 18 for example, are you saying that you want ALL combinations to:-

(1) Contain the numbers 9 and 18 in EVERY combination.
(2) Add up to whatever sum you decide in the Const SumTotal As Integer declaration.
(3) Count of the number of Primes in EACH combination.

Have I missed anything out?

Regards,
PAB
:wavey:

-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-
12:45, restate my assumptions.
Mathematics is the language of nature.
Everything around us can be represented and understood through numbers.
If you graph the numbers of any system, patterns emerge. Therefore, there are patterns everywhere in nature.
 

Alexafjb

Member
Hi PAB

Yes, you are correct Sir!
You Picked 9, & 18 as the constants that have to be in the CSN.
I would Like to be able to expand that to say 9, 18, 36, & 41 as an example that have to be in all the CSN's produced, that = i.e 140.

I'm going to use this as the analytical centre for choosing my picks, in my Workbook.:finger:

Cheers.
Alex. :rolling:
 

PAB

Member
Hi Alex,

Alexafjb said:
Yes, you are correct Sir!
You Picked 9, & 18 as the constants that have to be in the CSN.
I would Like to be able to expand that to say 9, 18, 36, & 41 as an example that have to be in all the CSN's produced, that = i.e 140.

I'm going to use this as the analytical centre for choosing my picks, in my Workbook.

OK Alex, I will have a think of how to program this, I don't think it is as quite straight forward as it seems.

BTW, why did you give me the double finger, I don't understand?

Regards,
PAB
:wavey:

-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-
12:45, restate my assumptions.
Mathematics is the language of nature.
Everything around us can be represented and understood through numbers.
If you graph the numbers of any system, patterns emerge. Therefore, there are patterns everywhere in nature.
 

Alexafjb

Member
OPPP's I wear glass and did not realize the ICON meant That!!!!
Sorry..... Thought it was 2 thumbs up!!! lol won't use that again.

Cheers.
Alex.
 

Alexafjb

Member
Hi PAB

What if, ( I'm thinking out loud here ) a lookup table of all 13,983,816 CSN's was used? It be slow, but it would do it.

:lol: Hey my smile board changed LOL

Cheers.
Alex.:frosty:
 

PAB

Member
Hi Alex,

Alexafjb said:
What if, ( I'm thinking out loud here ) a lookup table of all 13,983,816 CSN's was used? It would be slow, but it would do it.
Not a great idea :no: .

There are 17,179,869,184 cells in an Excel 2007 SpreadSheet.
You would actually use 83,902,896 cells without any gaps between the combinations if you were to put each combination number in it's own cell.
This would take forever for the SpreadSheet to calculate and make the file size MANY MB.

You could however, concatenate the combinations so that each combination would only use one cell, this would give you 13,983,816 used cells. BUT, it would make it an absolute nightmare to use these combinations for any useful analysis.

I am working on the VBA approach and will get back to you.

Regards,
PAB
:wavey:

-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-
12:45, restate my assumptions.
Mathematics is the language of nature.
Everything around us can be represented and understood through numbers.
If you graph the numbers of any system, patterns emerge. Therefore, there are patterns everywhere in nature.
 

Alexafjb

Member
Just a thought

Hi PAB

Sitting here staring at the VBA Module “SumTotal_And_Prime_PAB_v2”

Now I’m definitely no skilled programmer, more a hack then anything!
I’ve forgotten most of what I learned, due to lack of use.

Can a Variable (s) be declared at the start of the Module?
i.e. (“0”-49), (“0”-49), (“0”-49), (“0”-49) “0”= no user input or ignored.

If so… could the module produce the total CSN for the given “Const SumTotal As Integer = (i.e. 270)“
First, then have the declared Variables targeted within the “Total CSN” produced, for the given “Const SumTotal As Integer = (i.e. 270)“

If CSN = Var1, Var2, Var3, Var4 then print, Else; Delete

BTW for test purposes: 150 produces 165,772 and would take the longest to run the possible CSN,
270 produces 26 CSN,
and the lowest being ,21,22,278,279 producing only 1 possible CSN.

Can you tell I don’t know enough yet!!! Just not as sharp in memory as I use to be!

Cheers.
Alex.
Just trying to help, hope I'm not turnning into a pain:eek:
 

PAB

Member
Hi Alex,

Alexafjb said:
Can a Variable (s) be declared at the start of the Module?
i.e. (“0”-49), (“0”-49), (“0”-49), (“0”-49) “0”= no user input or ignored.

If so… could the module produce the total CSN for the given “Const SumTotal As Integer = (i.e. 270)“
First, then have the declared Variables targeted within the “Total CSN” produced, for the given “Const SumTotal As Integer = (i.e. 270)“

If CSN = Var1, Var2, Var3, Var4 then print, Else; Delete
I think you are talking about an Array, which could be setup of course.

Alexafjb said:
BTW for test purposes: 150 produces 165,772 and would take the longest to run the possible CSN, 270 produces 26 CSN, and the lowest being ,21,22,278,279 producing only 1 possible CSN.
You are quite correct!
I am in the process of putting the VBA code and SpreadSheet together for you now.
I have just run what I have so far with the criteria you specified, constant numbers 9, 18, 36, & 41 and Sum Total = 140 and it took 1 second processing time and produced 16 combinations.

BTW, for information purposes, here is the full list for the Sum Totals Of ALL Combinations for a C(49,6) Lotto:-

Sum = 21 = 1 Combinations
Sum = 22 = 1 Combinations
Sum = 23 = 2 Combinations
Sum = 24 = 3 Combinations
Sum = 25 = 5 Combinations
Sum = 26 = 7 Combinations
Sum = 27 = 11 Combinations
Sum = 28 = 14 Combinations
Sum = 29 = 20 Combinations
Sum = 30 = 26 Combinations
Sum = 31 = 35 Combinations
Sum = 32 = 44 Combinations
Sum = 33 = 58 Combinations
Sum = 34 = 71 Combinations
Sum = 35 = 90 Combinations
Sum = 36 = 110 Combinations
Sum = 37 = 136 Combinations
Sum = 38 = 163 Combinations
Sum = 39 = 199 Combinations
Sum = 40 = 235 Combinations
Sum = 41 = 282 Combinations
Sum = 42 = 331 Combinations
Sum = 43 = 391 Combinations
Sum = 44 = 454 Combinations
Sum = 45 = 532 Combinations
Sum = 46 = 612 Combinations
Sum = 47 = 709 Combinations
Sum = 48 = 811 Combinations
Sum = 49 = 931 Combinations
Sum = 50 = 1057 Combinations
Sum = 51 = 1206 Combinations
Sum = 52 = 1360 Combinations
Sum = 53 = 1540 Combinations
Sum = 54 = 1729 Combinations
Sum = 55 = 1945 Combinations
Sum = 56 = 2172 Combinations
Sum = 57 = 2432 Combinations
Sum = 58 = 2702 Combinations
Sum = 59 = 3009 Combinations
Sum = 60 = 3331 Combinations
Sum = 61 = 3692 Combinations
Sum = 62 = 4070 Combinations
Sum = 63 = 4494 Combinations
Sum = 64 = 4935 Combinations
Sum = 65 = 5426 Combinations
Sum = 66 = 5940 Combinations
Sum = 67 = 6506 Combinations
Sum = 68 = 7097 Combinations
Sum = 69 = 7748 Combinations
Sum = 70 = 8423 Combinations
Sum = 71 = 9163 Combinations
Sum = 72 = 9933 Combinations
Sum = 73 = 10769 Combinations
Sum = 74 = 11637 Combinations
Sum = 75 = 12579 Combinations
Sum = 76 = 13552 Combinations
Sum = 77 = 14603 Combinations
Sum = 78 = 15690 Combinations
Sum = 79 = 16856 Combinations
Sum = 80 = 18059 Combinations
Sum = 81 = 19349 Combinations
Sum = 82 = 20673 Combinations
Sum = 83 = 22087 Combinations
Sum = 84 = 23540 Combinations
Sum = 85 = 25082 Combinations
Sum = 86 = 26663 Combinations
Sum = 87 = 28340 Combinations
Sum = 88 = 30051 Combinations
Sum = 89 = 31860 Combinations
Sum = 90 = 33706 Combinations
Sum = 91 = 35648 Combinations
Sum = 92 = 37625 Combinations
Sum = 93 = 39703 Combinations
Sum = 94 = 41809 Combinations
Sum = 95 = 44016 Combinations
Sum = 96 = 46253 Combinations
Sum = 97 = 48586 Combinations
Sum = 98 = 50944 Combinations
Sum = 99 = 53402 Combinations
Sum = 100 = 55875 Combinations
Sum = 101 = 58446 Combinations
Sum = 102 = 61031 Combinations
Sum = 103 = 63706 Combinations
Sum = 104 = 66388 Combinations
Sum = 105 = 69161 Combinations
Sum = 106 = 71928 Combinations
Sum = 107 = 74781 Combinations
Sum = 108 = 77624 Combinations
Sum = 109 = 80542 Combinations
Sum = 110 = 83440 Combinations
Sum = 111 = 86412 Combinations
Sum = 112 = 89348 Combinations
Sum = 113 = 92350 Combinations
Sum = 114 = 95311 Combinations
Sum = 115 = 98324 Combinations
Sum = 116 = 101285 Combinations
Sum = 117 = 104295 Combinations
Sum = 118 = 107235 Combinations
Sum = 119 = 110215 Combinations
Sum = 120 = 113119 Combinations
Sum = 121 = 116048 Combinations
Sum = 122 = 118889 Combinations
Sum = 123 = 121751 Combinations
Sum = 124 = 124507 Combinations
Sum = 125 = 127274 Combinations
Sum = 126 = 129930 Combinations
Sum = 127 = 132581 Combinations
Sum = 128 = 135109 Combinations
Sum = 129 = 137629 Combinations
Sum = 130 = 140008 Combinations
Sum = 131 = 142370 Combinations
Sum = 132 = 144587 Combinations
Sum = 133 = 146771 Combinations
Sum = 134 = 148800 Combinations
Sum = 135 = 150794 Combinations
Sum = 136 = 152617 Combinations
Sum = 137 = 154397 Combinations
Sum = 138 = 156004 Combinations
Sum = 139 = 157554 Combinations
Sum = 140 = 158923 Combinations
Sum = 141 = 160236 Combinations
Sum = 142 = 161354 Combinations
Sum = 143 = 162410 Combinations
Sum = 144 = 163273 Combinations
Sum = 145 = 164062 Combinations
Sum = 146 = 164654 Combinations
Sum = 147 = 165176 Combinations
Sum = 148 = 165490 Combinations
Sum = 149 = 165732 Combinations
Sum = 150 = 165772 Combinations
Sum = 151 = 165732 Combinations
Sum = 152 = 165490 Combinations
Sum = 153 = 165176 Combinations
Sum = 154 = 164654 Combinations
Sum = 155 = 164062 Combinations
Sum = 156 = 163273 Combinations
Sum = 157 = 162410 Combinations
Sum = 158 = 161354 Combinations
Sum = 159 = 160236 Combinations
Sum = 160 = 158923 Combinations
Sum = 161 = 157554 Combinations
Sum = 162 = 156004 Combinations
Sum = 163 = 154397 Combinations
Sum = 164 = 152617 Combinations
Sum = 165 = 150794 Combinations
Sum = 166 = 148800 Combinations
Sum = 167 = 146771 Combinations
Sum = 168 = 144587 Combinations
Sum = 169 = 142370 Combinations
Sum = 170 = 140008 Combinations
Sum = 171 = 137629 Combinations
Sum = 172 = 135109 Combinations
Sum = 173 = 132581 Combinations
Sum = 174 = 129930 Combinations
Sum = 175 = 127274 Combinations
Sum = 176 = 124507 Combinations
Sum = 177 = 121751 Combinations
Sum = 178 = 118889 Combinations
Sum = 179 = 116048 Combinations
Sum = 180 = 113119 Combinations
Sum = 181 = 110215 Combinations
Sum = 182 = 107235 Combinations
Sum = 183 = 104295 Combinations
Sum = 184 = 101285 Combinations
Sum = 185 = 98324 Combinations
Sum = 186 = 95311 Combinations
Sum = 187 = 92350 Combinations
Sum = 188 = 89348 Combinations
Sum = 189 = 86412 Combinations
Sum = 190 = 83440 Combinations
Sum = 191 = 80542 Combinations
Sum = 192 = 77624 Combinations
Sum = 193 = 74781 Combinations
Sum = 194 = 71928 Combinations
Sum = 195 = 69161 Combinations
Sum = 196 = 66388 Combinations
Sum = 197 = 63706 Combinations
Sum = 198 = 61031 Combinations
Sum = 199 = 58446 Combinations
Sum = 200 = 55875 Combinations
Sum = 201 = 53402 Combinations
Sum = 202 = 50944 Combinations
Sum = 203 = 48586 Combinations
Sum = 204 = 46253 Combinations
Sum = 205 = 44016 Combinations
Sum = 206 = 41809 Combinations
Sum = 207 = 39703 Combinations
Sum = 208 = 37625 Combinations
Sum = 209 = 35648 Combinations
Sum = 210 = 33706 Combinations
Sum = 211 = 31860 Combinations
Sum = 212 = 30051 Combinations
Sum = 213 = 28340 Combinations
Sum = 214 = 26663 Combinations
Sum = 215 = 25082 Combinations
Sum = 216 = 23540 Combinations
Sum = 217 = 22087 Combinations
Sum = 218 = 20673 Combinations
Sum = 219 = 19349 Combinations
Sum = 220 = 18059 Combinations
Sum = 221 = 16856 Combinations
Sum = 222 = 15690 Combinations
Sum = 223 = 14603 Combinations
Sum = 224 = 13552 Combinations
Sum = 225 = 12579 Combinations
Sum = 226 = 11637 Combinations
Sum = 227 = 10769 Combinations
Sum = 228 = 9933 Combinations
Sum = 229 = 9163 Combinations
Sum = 230 = 8423 Combinations
Sum = 231 = 7748 Combinations
Sum = 232 = 7097 Combinations
Sum = 233 = 6506 Combinations
Sum = 234 = 5940 Combinations
Sum = 235 = 5426 Combinations
Sum = 236 = 4935 Combinations
Sum = 237 = 4494 Combinations
Sum = 238 = 4070 Combinations
Sum = 239 = 3692 Combinations
Sum = 240 = 3331 Combinations
Sum = 241 = 3009 Combinations
Sum = 242 = 2702 Combinations
Sum = 243 = 2432 Combinations
Sum = 244 = 2172 Combinations
Sum = 245 = 1945 Combinations
Sum = 246 = 1729 Combinations
Sum = 247 = 1540 Combinations
Sum = 248 = 1360 Combinations
Sum = 249 = 1206 Combinations
Sum = 250 = 1057 Combinations
Sum = 251 = 931 Combinations
Sum = 252 = 811 Combinations
Sum = 253 = 709 Combinations
Sum = 254 = 612 Combinations
Sum = 255 = 532 Combinations
Sum = 256 = 454 Combinations
Sum = 257 = 391 Combinations
Sum = 258 = 331 Combinations
Sum = 259 = 282 Combinations
Sum = 260 = 235 Combinations
Sum = 261 = 199 Combinations
Sum = 262 = 163 Combinations
Sum = 263 = 136 Combinations
Sum = 264 = 110 Combinations
Sum = 265 = 90 Combinations
Sum = 266 = 71 Combinations
Sum = 267 = 58 Combinations
Sum = 268 = 44 Combinations
Sum = 269 = 35 Combinations
Sum = 270 = 26 Combinations
Sum = 271 = 20 Combinations
Sum = 272 = 14 Combinations
Sum = 273 = 11 Combinations
Sum = 274 = 7 Combinations
Sum = 275 = 5 Combinations
Sum = 276 = 3 Combinations
Sum = 277 = 2 Combinations
Sum = 278 = 1 Combinations
Sum = 279 = 1 Combinations

I hope this helps!

Alexafjb said:
Just trying to help, hope I'm not turnning into a pain.
Not at all Alex.

Regards,
PAB
:wavey:

-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-
12:45, restate my assumptions.
Mathematics is the language of nature.
Everything around us can be represented and understood through numbers.
If you graph the numbers of any system, patterns emerge. Therefore, there are patterns everywhere in nature.
 

PAB

Member
Hi Alex,

I have completed what I think will accomodate your request.
It is a SpreadSheet with a Macro incorporated and I think it is self explanatory.
There is a slight bug in it so I have adapted the code accordingly to produce the correct results.
This will ONLY work with FOUR Designated Numbers that can be ANY FOUR numbers from 1 To 49 that you desire.
Again, I have made this available for 1 Hour.

The link is:-

http://www.mediafire.com/?ddzx6qh57u7dmdc

Please let me know when you have downloaded it.

Please let me know how you get on and what you think of it.

Regards,
PAB
:wavey:

-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-
12:45, restate my assumptions.
Mathematics is the language of nature.
Everything around us can be represented and understood through numbers.
If you graph the numbers of any system, patterns emerge. Therefore, there are patterns everywhere in nature.
 

PAB

Member
Hi Alex,

What do you mean, what is the problem???

Regards,
PAB
:wavey:

-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-
12:45, restate my assumptions.
Mathematics is the language of nature.
Everything around us can be represented and understood through numbers.
If you graph the numbers of any system, patterns emerge. Therefore, there are patterns everywhere in nature.
 

Alexafjb

Member
I loaded the Module.
Filled in:
Total Numbers Drawn = 6
DN1 = 1
DN2 = 13
DN3 = 24
DN4 = 49

CSN =170

clicked Cal Comb
no Results?

Cheers.
Alex.:eek:
 

PAB

Member
Hi Alex,

Alexafjb said:
I loaded the Module.
Filled in: Total Numbers Drawn = 6
Sorry Alex, that should say Total Numbers Drawn FROM, which will be 49, my fault.

Regards,
PAB
:wavey:

-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-
12:45, restate my assumptions.
Mathematics is the language of nature.
Everything around us can be represented and understood through numbers.
If you graph the numbers of any system, patterns emerge. Therefore, there are patterns everywhere in nature.
 

PAB

Member
BTW Alex, the answer should be 7.

Regards,
PAB
:wavey:

-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-
12:45, restate my assumptions.
Mathematics is the language of nature.
Everything around us can be represented and understood through numbers.
If you graph the numbers of any system, patterns emerge. Therefore, there are patterns everywhere in nature.
 

Alexafjb

Member
Hi PAB

Thats the ticket!
Fabulous Work!!!!!!!!!!!!!!!!!!!!

I ran a few, going to drive it hard in the morning and see if I can break it again!:rolling:

One thing though CSN Under results does not seem to be correct?
All the CSN only go as hi as 19
I.E.)
Total Num From Draw = 49
DN1=24
DN2=25
DN3=26
DN4=49

CSN Total = 170

Results
19 Combination = 170
highest Prime count = 2 to 0.
CSN 1 to 19 mixed up but = 19 combinations.

No big worries, Time to step away from it for a bit.
Pick it up in the morning.
Going to be intresting looking at the code! THX

Cheers.
Alex.
:lphant:
 

PAB

Member
Hi Alex,

Alexafjb said:
One thing though, CSN under results does not seem to be correct?
All the CSN's only go as high as 19.
I.E.
Total Numbers Drawn From = 49
DN1=24
DN2=25
DN3=26
DN4=49

CSN Total = 170

Results:-
19 Combinations = 170.
Highest Prime count = 2 to 0.
CSN 1 to 19 mixed up but = 19 combinations.
The CSN I thought you wanted to show the Total Combinations associated with the criteria that matched your request.
The CSN's are mixed up because the Sort is done primarily on the Prime number and then the CSN.
To correct this just COMMENT OUT the Sort in the code.

I hope this helps!

Regards,
PAB
:wavey:

-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-
12:45, restate my assumptions.
Mathematics is the language of nature.
Everything around us can be represented and understood through numbers.
If you graph the numbers of any system, patterns emerge. Therefore, there are patterns everywhere in nature.
 

Sidebar

Top