Lexicographic Index & Sums

PAB

Member
Morning Alex,

Alexafjb said:
When you run the program and you get "Results" / ( I call it "Output") and if a module is created to sort out a specific criteria, that "removes" a calculated Result/Output.
Then is that criteria lost?
(Till the program is rerun with the same variables.)

An example would be: If a module was built to act on the combination "Output" to remove combinations from that "Output"...
Lets say I want to remove all combinations that have 3 or more Prime Numbers, or I want to remove all combinations that have 3 or 4 specific numbers in them, or I want only combinations that have 2 number in sequential order.
The criteria data is only held within the variables for as long as the program is compiling, which includes the output to the SpreadSheet. Once the program reaches the End Sub then the varables are emptied.

With the Prime numbers you could just add an extra statement to the code to exclude any combination where there are <=3 Prime numbers.

With the 3 OR 4 Specific Numbers you could create another Defined Named Formula with the numbers that you want excluded, similar to the Decades.

With the 2 Numbers In Sequential Order you could just add an extra statement OR Function to the code.

Alexafjb said:
Could the Output be sent/printed to another worksheet or file for retrieval if need be?
Yes, you just need to add code for the destination, this being the WorkSheet name and the cell range.

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.
 

Alexafjb

Member
Sort

Hi PAB

THX for timely response!

So then, I can't work with the output that appears under the Results?
Unless I include (what ever I want to do) in the original module?

What I'm trying to say is; "what I see as output, is on the screen only", and not in a cell as usable data?

Cheers.
Alex.:confused:
 

PAB

Member
Hi Alex,

Alexafjb said:
So then, I can't work with the output that appears under the Results? Unless I include (what ever I want to do) in the original module?

What I'm trying to say is; "What I see as output, is on the screen only", and not in a cell as usable data?
The results output to the WorkSheet DN Combinations Generator are values in the cells, therefore you can create formulas etc to do whatever you want to with that data.

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.
 

Alexafjb

Member
Puzzle

:confused:
Hi PAB

Reviewing this thread, and a question occurred to me, maybe you have answered it somewhere else, have not found it yet though.
Hope I can form this question correctly the first time!

When CSNs progress from (CSN “1” to CSN “13,983,816”), they do so in a progressive pattern.
i.e.
1- 2- 3- 4- 5- 6 = 21
1- 2- 3- 4- 5- 7 = 22
and so on to:
1- 2- 3- 4- 5-48 = 63
1- 2- 3- 4- 5-49 = 64
1- 2- 3- 4- 6- 7 = 23
1- 2- 3- 4- 7- 8 = 25
and so on to:
1- 2- 3- 4-47-48 = 105
1- 2- 3- 4-48-49 = 107
1- 2- 3- 5- 6- 7 = 24
1- 2- 3- 6- 7- 8 = 27

Is this correct?
When the Macro calculates, it repeats this pattern to the last CSN "13,983,816"?
If so, then would not [any choosen] "SUM" reappear every number of iterations of the Macro?

All the Best.
Alex. :confused:
 

PAB

Member
Hi Alex,

Alexafjb said:
When CSNs progress from (CSN “1” to CSN “13,983,816”), they do so in a progressive pattern.
i.e.
1- 2- 3- 4- 5- 6 = 21
1- 2- 3- 4- 5- 7 = 22
and so on to:
1- 2- 3- 4- 5-48 = 63
1- 2- 3- 4- 5-49 = 64
1- 2- 3- 4- 6- 7 = 23
1- 2- 3- 4- 7- 8 = 25
and so on to:
1- 2- 3- 4-47-48 = 105
1- 2- 3- 4-48-49 = 107
1- 2- 3- 5- 6- 7 = 24
1- 2- 3- 6- 7- 8 = 27
I am not quite sure if I understand your question.
I can see that the totals you have are the sum of the numbers within each combination.
Are you saying that you want to know how many combinations have a set sum?
If so, here are the total combinations for all possible sums within a 649 Lotto from 21-279.

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

I hope this helps!

Regards,
PAB
:wavey:

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

Alexafjb

Member
Hi PAB

What I meant by "Progressive Patterns"?

To formulate CSN's the macro loops and a new CSN is created.

How many iterations of the macro take place before the same "SUM" appears again?

I do understand that the number of iteration will peak at "Sum Of 150 = 165772 Combinations" and then reverse.

So to get Sum 21 = 1 loop, Sum 22 = 2 loop, Sum 23 = 3 loop.
Question is how many loops/iterations to the next Sum 23? I used 23 as an example only.

I'm looking for the "LOOP COUNT" between the same Sum's as they progress to their maximum CSN combination amount.

Does this make it any clearer?

All The Best.
Alex.:confused:
 

Sidebar

Top