Please show us what you have tried and exactly where you are stuck.hi
is there an equation i can use to work out combination possibilities from say 4 numbers?
i am not interested in unique in order eg
1234 1243 4321 etc
but rather
1234
123
124
234
12
13
14
1
any ideas?
mal
You should try to derive the formula yourself. From your expected answers for 4 numbers:hi
i am trying to replicate what the following site does
Combinations and Permutations Calculator
www.mathsisfun.com
where order is not important and repetition is not allowed
re your question, yes 1,4 is the same as 4,1
112 is not allowed
obviously with 4 numbers its easy to do manually and get the 15 results possible
{1,2,3,4}
{1,2,3} {1,2,4} {1,3,4} {2,3,4}
{1,2} {1,3} {1,4} {2,3} {2,4} {3,4}
{1} {2} {3} {4}
, but id like to model with 9 or 10 digits which goes into hundreds/thousands of results
What you have listed above are the nonempty subsets of the set \(\{1,22,3,4\}\).obviously with 4 numbers its easy to do manually and get the 15 results possible
{1,2,3,4}
{1,2,3} {1,2,4} {1,3,4} {2,3,4}
{1,2} {1,3} {1,4} {2,3} {2,4} {3,4}
{1} {2} {3} {4}
, but id like to model with 9 or 10 digits which goes into hundreds/thousands of results