I want to create a numerical database of all combinations of 39 integers(1 Through 39) taken 5 at a time. I know the total possible combinations = 575757. This would be the size of the database.
I would then like to query the database for various criteria, e.g. number of combinations that are made up of all even numbers, all odd numbers, 1 even, 1 odd, 2 even, 2 odd, etc, and then query those results for other criteria such as restricted sums of all integers, and range distribution.
How would I do this? Obviously this is a Lottery oriented idea and I expect nothing but ridicule and disdain.