posted 10 years ago

That depends. is the subset (1,2,3,4,5) considered the same as (5,4,3,2,1) or not?

is the subset (1,1,1,1,1) valid?

how about (1,2,3)?

the formula is different for each of these, but try googling "Permutations" and "Combinations".

is the subset (1,1,1,1,1) valid?

how about (1,2,3)?

the formula is different for each of these, but try googling "Permutations" and "Combinations".

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors

umut uzumcu

Ranch Hand

Posts: 43

posted 10 years ago

I m looking for all different possibilities,

Not less or more than 5 numbers.

no repetition of the same number in the group. (1,2,1,3,5) is not valid

order doesnt make difference (1,2,3,4,5) and (5,4,3,2,1) are same

Pablo Muller

The formula you send

C(n,m)=n!/(m!(n-m)!)

I think this is what i was looking for.

thank you all

Not less or more than 5 numbers.

no repetition of the same number in the group. (1,2,1,3,5) is not valid

order doesnt make difference (1,2,3,4,5) and (5,4,3,2,1) are same

Pablo Muller

The formula you send

C(n,m)=n!/(m!(n-m)!)

I think this is what i was looking for.

thank you all

Don't get me started about those stupid light bulbs. |