What is the sum of all numbers that occur an odd number of times in rows 0 through 1 1 of Pascal's triangle?
Details and assumptions
The 0th row of the Pascal triangle is the vertex, which is 1 .
You only sum the number once, regardless of the number of times it appears in the triangle.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Superb! Short and nice solution. Thanks for sharing Daniel C.! :)
Why such number can be expressed in the form(m n)?why is m not equal to 2n.
Log in to reply
Pascal's Triangle can also be represented in the form
( 0 1 ) ( 0 2 ) ( 0 0 ) ( 1 1 ) ( 1 2 ) ( 2 2 ) ⋯
Then, for a number ( n m ) , if m = 2 n , then it appears twice in the same row.
( 0 1 ) ( 0 2 ) ( 0 0 ) ( 1 1 ) ( 1 2 ) ( 2 2 ) ⋯
These two are the same, since ( n m ) = ( m − n m ) If m = 2 n , these are the same, so it appears only once in the row. This only occurs in the middle
( 0 1 ) ( 0 2 ) ( 0 0 ) ( 1 1 ) ( 1 2 ) ( 2 2 ) ⋯
The numbers down the middle are all distinct, and we can add them up for the answer.
Can someone please explain to me how the brackets are used in combinatorics? Thanks in advance.
Log in to reply
Are you referring to the meaning, or the symbol in LaTeX?
The meaning is here .
To write it in LaTeX, use \dbinom{m}{n}, which gives ( n m )
You should probably mention that pairs are parity-preserving. Hence why the solution works, in general, even for numbers that appear more than once.
Log in to reply
Sure. That was basically what I meant by "Pairs can be ignored".
This is a fantastic little problem.
Lemma 1
We note that any number that is not of the form: ( n 2 n ) Appears an even number of times in its row.
Proof
This is simple because, say we have some integers m ≥ n ≥ 0 , then: ( n m ) = ( m − n m ) (The number of ways we can choose n items from a set is the same as the number of ways we can choose m − n items which we exclude.)
Now, the only time that we don't have two counts is when m = 2 n , since: m − n = 2 n − n = n QED.
Lemma 2
Now, say the number of form ( n 2 n ) appears more than once in the triangle, then, it must appear an odd number of times, in total.
Proof
Since, it is of the form ( n 2 n ) , we must also have: ( n 2 n ) = ( k m ) For some m , k . Then, by the above lemma, since m = 2 k , the number appears an even number of additional times, say 2 l . Clearly 2 l + 1 is odd, and we are done.
QED.
So, we have our total, by the above lemmas, to be: n = 0 ∑ 5 ( n 2 n ) = 3 5 1
A very pretty solution, indeed.
Why must ( k m ) exist when it is of the form ( n 2 n ) ?
Log in to reply
Now, say the number of form ( n 2 n ) appears more than once in the triangle, then, it must appear an odd number of times, in total.
[Emphasis added]
I assumed it did to show that it is independent of this happening (as it must happen an even number of times at any point, afterwards). If it didn't appear more than once, then, obviously, 1 is odd, so we just add it to our count.
I am not sure what should be the correct approach but writing down a few rows might help.
1 1 1 6 1 5 1 4 1 5 1 3 1 0 1 2 6 2 0 1 3 1 0 1 4 1 5 1 5 1 6 1 1 The numbers in the subsequent rows will be greater than 11 (except the first two and last two terms as they are 1 and the row number).
Lets have a look at the numbers in the triangle above. Its clear that 6, 1, 2 and 20 appear a odd number of times or we can also assert that the middle term of an even numbered row appears an odd number of times.
Numbers in the subsequent odd rows will appear twice and hence they won't be counted in our final answer. (1 too appears twice but it is counted in our final answer because overall, it appears an odd number of times.)
We have written down the numbers till 6th row. The only even numbered rows left are 8 and 10. The middle term of these rows are ( 5 8 ) = 7 0 and ( 6 1 0 ) = 2 5 2 .
Adding up the numbers, 1 + 2 + 6 + 2 0 + 7 0 + 2 5 2 = 3 5 1 .
Take note that according to the binomial theorem, the numbers that appear in the Pascal's triangle are actually equivalent to the coefficients that appear in the binomial theorem.
For example: ( x + y ) 2 = x 2 + 2 a b + y 2 , where 1, 2, 1 are the numbers in row 2 of the triangle.
Besides, it is noticeable that in row 2, the number 2 appears only once. Same goes to the number 6 in row 4, and 20 in row 6. The rule is that in every even row, (e.g. row 0, 2, 4, etc) there exist a number that occurs for an odd number of times in the triangle, and the number only appears in the row exactly once. It is located at the center of the even row. Even though it might appear in other rows, it appears in pairs. Hence, the number appears for an odd number of times in the triangle.
To further illustrate this, just look at row 4 and row 6:
Row 4: 1 4 6 4 1
Row 6: 1 6 15 20 15 6 1
The numbers 6 and 20 appears in row 4 and row 6 respectively for exactly once, and the numbers are at the center of row 4 and row 6. Although the number 6 also appears in row 6, it appears in a pair.
We can express these numbers as ( n / 2 n ) , where n is the row number.
The sum of numbers are:
( 0 0 ) + ( 1 2 ) + ( 2 4 ) + ( 3 6 ) + ( 4 8 ) + ( 5 1 0 )
= 1 + 2 + 6 + 2 0 + 7 0 + 2 5 2
= 3 5 1
The the ( k − 1 ) st number in the n th row equals ( k n ) . Also, for non-negative integers n , k , k ≤ n ,
( k n ) = ( n − k n )
This means, if n − k = k , ( k n ) occurs twice in the same row. But, for even n , when k = 2 n , ( k n ) = ( n − k n )
Therefore, except for ( 0 0 ) , ( 1 2 ) , ( 2 4 ) , ( 3 6 ) , ( 4 8 ) , ( 5 1 0 ) , all numbers occur twice in the Pascal's Triangle.
Summing up the numbers above gives us our answer 3 5 1 .
Simply look at a Pascal's triangle. If you look closely, you will see that the numbers that occur an odd number of times from rows 0 to 11 are the numbers that are in line (downwards) with the first "1" at the topmost. Those numbers are 1, 2, 6, 20, 70 and 252. Taking its sum, 1+2+6+20+70+252= 351. :D
In pascal's triangle the middle row alternatively has numbers that exist odd no. of times.
for up till row 11,they are 1+2+6+20+70+252 = 351
Pascal's Triangle is symmetric about a vertical line cutting through the middle of the triangle. This means that if a number N is not on that line, it appears an even number of times, since for every time it appears on the left, it has a corresponding appearance on the right. Therefore, the only N appearing an odd number of times are those exactly on the middle line - that is, those in the form ( k 2 k )
for some nonnegative integer k . [This is because the number in the r th row and p th position from the left can be written as ( p r ) . ] Since we are considering only rows 0 through 1 1 , we can only take k = 0 , 1 , 2 , 3 , 4 , 5 . Doing so gives us
N = 1 , 2 , 6 , 2 0 , 7 0 , 2 5 2
which sum to 3 5 1 .
as we knew pascal triangle has a pattern like this ,the odd-numbered pascal triangle(s) always have a "middle number" ,that is the number that only appears one time . so if it is listed, it should be like this.
third pascal triangle 's middle number : 2
fifth pascal triangle 's middle number : 6
seventh pascal triangle 's middle number : 20
ninth pascal triangle 's middle number : 70
eleventh pascal triangle 's middle number : 252
and, the number "1" , appears an odd number of times, because, every pascal triangles has two 1's , thus we obtain the number of 1 appeared in the 0-11th pascal triangle
first-eleventh pascal triangles : 2x11 = 22 1's
and the 0th pascal triangle has exactly one 1's ,so there are 23 1's
then we know that 1 is counted
so now we sum the "middle number"(s) we've found : 2+6+20+70+252= 350
and because 1 is counted the sum is : 350+1 = 351
The main problem here is, in my opinion understanding the question. It would have been lot more easier if the question had better punctuation. like
What is the sum of all numbers that occur, an odd number of times, in rows 0 through 11 of Pascal's triangle?
once you have understood the question it is only to check pascals triangle manually. you will find it easier to check pascals triangle row-by-row, not column. thanks
Problem Loading...
Note Loading...
Set Loading...
Each such number can be expressed in the form ( n m ) , and if m = 2 n , then ( n m ) = ( m − n m ) so it appears in a pair. Pairs can be ignored, so the only numbers that occur an odd number of times are ( 5 1 0 ) , ( 4 8 ) , ( 3 6 ) , ( 2 4 ) , ( 1 2 ) , ( 0 0 ) . These end up all being distinct, so the answer is 2 5 2 + 7 0 + 2 0 + 6 + 2 + 1 = 3 5 1