So i'm trying to find out how to count the number of possible outputs there are if you have five variables:
I know that if you have 5 of them with 5 different rows you'd just have 25 possibilities. But mine need to start from 2 groupings each and end at 5 ie:
I think you'd normally just do 5x4x3x2 and that would tell you there's 120 possibilities there.
But in my circumstance each value only counts once, ie abc,acb,cab,cba etc. are all the same value.
The 5 values might change, so manually writing them out seems like a waste of time when I really just need some sort of equation of formula. Sadly i'm way not smart enough to figure that out on my own. Anyone have any ideas?
I don't know if this is what you are looking for, but the formula for a combination is
where n is the number of variables and k is the combination of variables. So if you have a, b, c, d, and e, to find how many combinations of two letters there are, the formula would be 5! / (2! * (5 - 2)!) = 10. To find how many combinations of three there are 5! / (3! * (5 - 3)!) = 10. Four combinations 5! / (4! * (5 - 4)!) = 5. Five combinations = 1. Sum them to get 26 possible outputs.