This discussion board is a place to discuss our Daily Challenges and the math and science
related to those challenges. Explanations are more than just a solution — they should
explain the steps and thinking strategies that you used to obtain the solution. Comments
should further the discussion of math and science.
When posting on Brilliant:
Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.
Markdown
Appears as
*italics* or _italics_
italics
**bold** or __bold__
bold
- bulleted - list
bulleted
list
1. numbered 2. list
numbered
list
Note: you must add a full line of space before and after lists for them to show up correctly
I'm using [1,2,3] to denote a set with elements 1,2,3. I can't seem to type the curly brackets. :/
Let S=[−1,−1,2,−2,...,n,−n]. Let us find the number of ways to pick n numbers from S such that, for all x≤n, either x or −x is chosen, if not both.
Then there are two ways to count the total number of subsets possible.
Case 1:- We count by PIE. Let A denote the set of ways to pick n numbers from S. Let Ai denote the set of ways to pick n numbers without picking either i or −i.
Then we need to find ∣A∣−∣A1∪A2∪...∪An∣ .
∣A∣ is simply (n2n)
Since ∣Ai∣ is the number of ways to pick n numbers from S−[i,−i], it is obviously (n2n−2).
And the number of ways to choose the index i is (1n). Therefore ∑∣Ai∣=(n2n−2)∗(1n).
Likewise, ∣Ai∣∩∣Aj∣ is the number of ways to pick n numbers from S−[i,−i,j,−j], which is (n2n−4). And the number of ways to choose unequal indexes i,j is (2n). Therefore ∑∣Ai∣∩∣Aj∣=(n2n−4)∗(2n).
By the same logic, ∣Aa1∣∩∣Aa2∣∩...∩∣Aax∣, is equal to (n2n−2x). And the number of ways to choose unequal indexes is (xn). Therefore ∑∣Aa1∣∩∣Aa2∣∩...∩∣Aax∣=(n2n−2x)∗(xn).
And ∣A∣−∣A1∪A2∪...∪An∣=(n2n)−(n2n−4)∗(2n)+(n2n−4)∗(2n)−...
Case 2:-. This one is thankfully shorter. We can see that we can choose one and only one element from each of the sets [1,−1],[2,−2],...,[n,n]. The number of ways to do this is 2n.
Since we're counting the same thing. Both must be equal.
Consider the expansion of (2x+x2)n
=[(1+x)2-1]n
So coefficient of xn in left hand side is 2power n and it should be equal to coefficient of xn in right hand side
[(1+x)2-1]n = Co (1+x)2n - C1 (1+x)2n-2 + C2(1+x)2n-4.......
= Co 2nCn - C1 2n-2Cn + C2 2n-4Cn ......
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
Let coefficient of xn =a
We can see that -
(n2n)−(1n).(n2n−2)+(2n).(n2n−4)−…
=a in (1+x)2n−(1n)(a in (1+x)2n−2)+(2n)(a in (1+x)2n−4−⋯
= coefficient of xn in ((1+x)2n−(1n)(1+x)2n−2+(2n)(1+x)2n−4−⋯)
= coefficient of xn in ((1+x)2−1)n
= coefficient of xn in xn(2+x)n
= constant term in(2+x)n=2n
Combinatorical solution:-
I'm using [1,2,3] to denote a set with elements 1,2,3. I can't seem to type the curly brackets. :/
Let S=[−1,−1,2,−2,...,n,−n]. Let us find the number of ways to pick n numbers from S such that, for all x≤n, either x or −x is chosen, if not both.
Then there are two ways to count the total number of subsets possible.
Case 1:- We count by PIE. Let A denote the set of ways to pick n numbers from S. Let Ai denote the set of ways to pick n numbers without picking either i or −i.
Then we need to find ∣A∣−∣A1∪A2∪...∪An∣ .
∣A∣ is simply (n2n)
Since ∣Ai∣ is the number of ways to pick n numbers from S−[i,−i], it is obviously (n2n−2). And the number of ways to choose the index i is (1n). Therefore ∑∣Ai∣=(n2n−2)∗(1n).
Likewise, ∣Ai∣∩∣Aj∣ is the number of ways to pick n numbers from S−[i,−i,j,−j], which is (n2n−4). And the number of ways to choose unequal indexes i,j is (2n). Therefore ∑∣Ai∣∩∣Aj∣=(n2n−4)∗(2n).
By the same logic, ∣Aa1∣∩∣Aa2∣∩...∩∣Aax∣, is equal to (n2n−2x). And the number of ways to choose unequal indexes is (xn). Therefore ∑∣Aa1∣∩∣Aa2∣∩...∩∣Aax∣=(n2n−2x)∗(xn).
Therefore, by PIE,
∣A1∪A2∪...∪An∣=∑∣Ai∣−∑(∣Ai∣∩∣Aj∣)...
⟹∣A1∪A2∪...∪An∣=(n2n−4)∗(2n)−(n2n−4)∗(2n)+...
And ∣A∣−∣A1∪A2∪...∪An∣=(n2n)−(n2n−4)∗(2n)+(n2n−4)∗(2n)−...
Case 2:-. This one is thankfully shorter. We can see that we can choose one and only one element from each of the sets [1,−1],[2,−2],...,[n,n]. The number of ways to do this is 2n.
Since we're counting the same thing. Both must be equal.
Log in to reply
brilliant :D
Consider the expansion of (2x+x2)n =[(1+x)2-1]n So coefficient of xn in left hand side is 2power n and it should be equal to coefficient of xn in right hand side [(1+x)2-1]n = Co (1+x)2n - C1 (1+x)2n-2 + C2(1+x)2n-4....... = Co 2nCn - C1 2n-2Cn + C2 2n-4Cn ......