Parity does matter!

Find the number of odd coefficients in the expansion of ( a + b ) 2015 . (a + b)^{2015}.


The answer is 1024.

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.

3 solutions

We will make use of a consequence of Lucas' Theorem , whereby a binomial coefficient ( m n ) \binom{m}{n} is odd if and only if none of the digits in the binary expansion of n n is greater than the corresponding digit in the binary expansion of m . m.

In this case we have m = 2015 , m = 2015, which has a binary expansion of 11111011111. 11111011111. So all those binomial coefficients ( 2015 n ) \binom{2015}{n} in the expansion of ( a + b ) 2015 (a + b)^{2015} for which n n does not have a 1 1 in the 6 6 th from the right digit in their binary expansion will be odd. Since all numbers from 2016 2016 to 2047 2047 do have a 1 1 in this position, we can then conclude that the number of values n n from 0 0 to 2015 2015 inclusive that do not have a 1 1 in this position will be 2048 2 = 1024 . \frac{2048}{2} = \boxed{1024}.

Nice question , very helpful , thanks.

Yash Jain - 6 years, 2 months ago

Log in to reply

I enjoyed.

Ritik Kumar - 2 years, 11 months ago

Oh nicely done! Upvoted! Mine was much longer!

Kartik Sharma - 6 years, 2 months ago

I did not know Lucas's theorem but tried the binary expression of 2015. Sadly, I didn't know how to use the expression so i still got it wrong :(.

Jaleb Jay - 5 years, 6 months ago

Had no idea about Lucas theorm any other method if possible??

Aditya Mirji - 4 months, 2 weeks ago
Bhagirath Mehta
Apr 10, 2015

If writing out the Pascal's triangle, one can see that the number of odd binomial coefficients in row x = 2 k 2^k where k is the number of 1's in the binary form of the x. In this case, x = 2015, as the 2015th row of the Pascal triangle corresponds to the coefficients of the expansion of ( a + b ) 2015 (a+b)^{2015} . 2015 = 11111011111, There are 10 1's in this number, so the number of odd coefficients is 2 10 2^{10} = 1024.

Nice observation

Led Tasso - 6 years, 2 months ago

COOL! SO AWESOME, mind blown

Pil Pinas - 4 years, 7 months ago
Devansh Sehta
Jun 2, 2017

Let's do it for a general case. That is, finding number of coefficients in the expansion of ( a + b ) n (a+b)^n which are not divisible by p p . Here p p is a prime number. Theorem : If n = i = 0 k a i p i n=\displaystyle\sum_{i=0}^{k}a_{i}p^{i} or in other words, n = a k a k 1 . . . a 2 a 1 a 0 n=a_{k} a_{k-1} ... a_{2} a_{1} a_{0} in base p p . The number of coefficients not divisible by p p are i = 0 k ( a i + 1 ) \displaystyle\prod_{i=0}^{k}(a_i+1) . Proof : For simplicity, let us assume that a = 1 a=1 and b = x b=x . Thus we have ( 1 + x ) n = ( 1 + x ) i = 0 k a i p i = i = 0 k [ ( 1 + x ) p i ] a i (1+x)^{n}=(1+x)^{\sum_{i=0}^{k}a_{i}p^{i}}=\displaystyle\prod_{i=0}^{k} \left[(1+x)^{p^i}\right]^{a_i} . If we divide the expression by p p , all the terms having coefficients divisible by p p will vanish. And we will be left with the coefficients that are not divisible by p p , which is desired. Now we will use the fact that ( 1 + x ) p i ( 1 + x p i ) (mod p ) (1+x)^{p^i} \equiv (1+x^{p^i}) \text{ (mod }p) . So, ( 1 + x ) n i = 0 k ( 1 + x p i ) a i (1+x)^{n}\equiv \displaystyle\prod_{i=0}^{k} \left(1+x^{p^i}\right)^{a_i} Number of terms in the expansion of i = 0 k ( 1 + x p i ) a i \prod_{i=0}^{k} \left(1+x^{p^i}\right)^{a_i} is ( a i + 1 ) (a_i+1) . Total number of terms will be i = 0 k ( a i + 1 ) \displaystyle\prod_{i=0}^{k}(a_i+1) . Q.E.D. For the given question, 2015 = 1111101111 1 2 2015=11111011111_2 , add 1 to all the digits, and multiply them. 22222122222 22222122222 thus number of odd terms will be 2 10 = 1024 2^{10}=1024 .

improve more

improve more - 2 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...