First person with a functional answer gets 0.01BTC
Problem:
I need a one line expression to edit a python script I use. I need to know the number of 3 number combinations in a data set when order does not matter. The expression I'm currently using for the number of 2 number combinations is this:
Combinations = ((Numbers_In_Set-1)/2)*Numbers_in_set
That works perfectly. But now I need to know how many 3 number combinations there are. The answer has to be in a one line form that I can use in my python script and match the results given by this website:
http://stattrek.com/online-calculator/combinations-permutations.aspxThanks!