Author

Topic: (CLOSED) 0.01BTC for some math help :) (Read 406 times)

hero member
Activity: 615
Merit: 500
April 10, 2014, 05:10:56 PM
#5
That was perfect!!! Thx!!! Post an addy!

Thanks. Smiley
Bitcoin address:    15eUuxpUmrrWtLM2vvnJ66SebyWXBwnArR
full member
Activity: 147
Merit: 100
April 10, 2014, 05:09:40 PM
#4
That was perfect!!! Thx!!! Post an addy!
hero member
Activity: 615
Merit: 500
April 10, 2014, 05:03:23 PM
#3
For the details, you can find everything (generalization, example, reasoning, etc) here. http://en.wikipedia.org/wiki/Combination
hero member
Activity: 615
Merit: 500
April 10, 2014, 05:01:59 PM
#2
It would be n * (n-1) * (n-2) / 6
full member
Activity: 147
Merit: 100
April 10, 2014, 04:51:45 PM
#1
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.aspx

Thanks!
Jump to: