#Discrete math problem
56 messages · Page 1 of 1 (latest)
- Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
- Wait patiently for a helper to come along.
- Once someone helps you, say thank you and close the thread with:
+close - Feel free to nominate the person for helper of the week in #helper-nominations
- Do not ping the mods, unless someone is breaking the rules. If there is a conflict amongst multiple helpers feel free to ping “Helper Mod”
- If you're happy with the help you got here, and the server overall, you can contribute financially as well:
ChatGPT may be wrong sometimes
but you're right, there are 2^(n-2) possibilities for A
you should get the same result, but obtain it in a different manner
yes that's what i'm confused about
I can do 2^n for A
but then how would I choose a and b?
because the length of A is unknown
it depends on the size of A
if A has size k, how many ways do you have to choose a and b ?
k choices for a, n-k choices for b
but what is k
k can go from 0 to n
no, no
oh
well, k(k+1)/2 = Σi≤k i, but it has nothing to do with the current sum
for each k, how many ways are there to choose A of size k, a in A and b not in A ? Call this quantity u(n,k), then the number of such triplets is equal to Σ(0≤k≤n) u(n,k)
so my answer for any k size is all of it?
Ohh
the number of ways for size k is 2^k * k * (n-k)
how do I get that from sum notation to a normal expression?
your expression is not correct, there are no 2^k ways to choose A a subset with k elements among X
yes
the point is that both expression count the same thing
so am i just supposed to leave it in summation notation
so you have a combinatorial proof that Σ nCk k (n-k) = n (n-1) 2^(n-2)
the nice expression, you already computed in question 1
what do you mean ?
is the identity this ^?
is that what i write down
yes
you showed that the number of such triples is both equal to n (n-1) 2^(n-2) and Σ nCk k (n-k), hence these two expressions must be equal
you're welcome
+close