|
-
Dec 7th, 2011, 05:23 PM
#1
Thread Starter
Banned
how many options out of 8
is this correct :
given 8 buttons, user can press 1 or 2 or...8
sum of
8 : 1
7 : 8
6 : 8*7*6*5*4*3
5 : 8*7*6*5*4
4 : 8*7*6*5
3 : 8 * 7 *6
2 : 8 *7
1 : 8
8842 ?
-
Dec 7th, 2011, 05:34 PM
#2
Re: how many options out of 8
You didn't really ask a complete question. You'll have to be clearer. For what it's worth,
1 + 8 + 8*7*6*5*4*3 + 8*7*6*5*4 + 8*7*6*5 + 8 * 7 *6 + 8 *7 + 8
= 28,969
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
-
Dec 7th, 2011, 05:38 PM
#3
Thread Starter
Banned
Re: how many options out of 8
-
Dec 12th, 2011, 05:32 PM
#4
Re: how many options out of 8
Actually, it's 256
8 : 1
7 : 8
6 : (8 * 7) / 2 = 28
5 : (8 * 7 * 6) / (3 * 2) = 56
4 : (8 * 7 * 6 * 5) / (4 * 3 * 2) = 70
3 : (8 * 7 * 6) / (3 * 2) = 56
2 : (8 * 7) / 2 = 28
1 : 8
0 : 1
1 + 8 + 28 + 56 + 70 + 56 + 28 + 8 + 1 = 256
-
Dec 12th, 2011, 07:22 PM
#5
Re: how many options out of 8
Ah! So perhaps they were asking how many ways a user can toggle up to 8 buttons. Using the binomial coefficients works, but it's needlessly overcomplicated. For each button, you can choose to toggle it or not. That gives 8 independent choices between 2 alternatives, so there are 2^8 = 256 outcomes. This reasoning generalizes to give the identity
sum_k=0^n of (n choose k) = 2^n
This is also the number of subsets of a set of size n.
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
-
Dec 13th, 2011, 04:09 AM
#6
Thread Starter
Banned
Re: how many options out of 8
I don't get post #4 where is the divs ( \ ) from ?
-
Dec 14th, 2011, 05:44 PM
#7
Re: how many options out of 8
The division reflects the number of ways to choose the same set of buttons. Choosing button 1 with button 2 is the same as choosing button 2 with button 1. The product (8 * 7 for choosing two buttons) counts both options, so we must divide by 2 to find the total number of unique combinations. The equations I posted are partially reduced equations of the 'choose' function (n choose k), which jemidiah referenced. In fact, the entirety of my post is the sum (n = 8) in the identity he posted. I was not intentionally using binomial coefficients, rather I was showing the flaw in your original logic where you had left out the necessary division.
What I posted as
6 : (8 * 7) / 2 = 28
could also be shown as
6 : (8*7*6*5*4*3) / (6*5*4*3*2*1) = 28
which has as its numerator the product you gave in your original post. The denominator is 6! (six factorial).
-
Dec 15th, 2011, 04:46 AM
#8
Thread Starter
Banned
Re: how many options out of 8
order of press does not matter
buttons pressed : options
1 : 8
2 : buttons not pressed options : 6 : 8*7*6*5*4*3
3 : so on
4
5
6
7
8 : 1
it's like post 1 where is the overlap in the buttons pressed
-
Dec 15th, 2011, 02:10 PM
#9
Re: how many options out of 8
There are 8*7/2 = 28 ways for 2 buttons to be pressed, not 8*7*6*5*4*3:
12; 13; 14; 15; 16; 17; 18
23; 24; 25; 26; 27; 28
34; 35; 36; 37; 38
45; 46; 47; 48
56; 57; 58
67; 68
78
[On a more interesting note, this ennumeration forms a triangle. Indeed, 28 is the 7th triangular number, T_n. Relevant identities: T_n = 1 + 2 + ... + n = n*(n+1)/2 = (n+1 choose 2).]
Last edited by jemidiah; Jan 13th, 2012 at 03:29 PM.
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
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
|