|
-
May 23rd, 2003, 05:32 PM
#1
Thread Starter
Lively Member
Formula/Patterns
Hello,
I've been trying to figure out this simple problem but I'm just missing something.
Here it is:
I have 4 lights and at any given point half the lights will be on and the other half will be off. I have figured out that there are 6 different combinations where this is possible.
Ok, now move to 6 lights and the same is true, at any given point half the lights will be on and half will be off. I have figured out that there are 20 combinations possible.
With 8 lights there are 35 combinations possible.
Does anyone see a pattern or forumla I can apply?
I can do all things with VB.
-
May 23rd, 2003, 05:55 PM
#2
Thread Starter
Lively Member
Perhaps 8 lights will produce 70 combinations using
8! / [4! * (8-4)!]
with 6
6! / [3! * (6-3)!]
C=X! / [(X/2)! * (X-(X/2))!]
I think I may have figured it out.
I can do all things with VB.
-
May 24th, 2003, 06:04 AM
#3
-
May 25th, 2003, 09:14 PM
#4
Fanatic Member
As said above:
N = Total lights
R = number of lights you can turn on
the formula is: n! / (n-r)!*r!
That's the formula for a combination.
Iif you were doing a permutation (you might have the option to make them red or green, making the ORDER important) you would use this:
n! / (n-r)!
The only difference is the *r! in combination. After that it starts to get all muddled and stuff... like if you have 2 green chairs and 3 blue ones... order is only 'half' important.
Don't pay attention to this signature, it's contradictory.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|