Counting subsets

Probability Level pending

The number of subset of {1,2,3,4,5,...,2000} such that the sum of items of each subset is divisible by 5,can be written like this :

1 n \frac{1}{n} * ( 2 m 2^{m} + 2 k 2^{k} ) , where n,m and k are positive integers ,and n is an odd integer. what's n+m+k .


The answer is 2407.

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.

1 solution

Mark Hennings
May 1, 2019

For any positive integer M M , consider the polynomial F ( X ) = j = 1 5 M ( 1 + X j ) = k = 0 5 2 M ( 5 M + 1 ) a k X k F(X) \; = \; \prod_{j=1}^{5M}(1 + X^j) \; = \; \sum_{k=0}^{\frac52M(5M+1)}a_kX^k where a k a_k is the number of subsets of { 1 , 2 , 3 , , 5 M } \{1,2,3,\ldots,5M\} whose total is equal to k k . Thus we want to calculate S = k = 0 M a 5 k = 1 5 k = 0 4 F ( ζ k ) S \; = \; \sum_{k=0}^M a_{5k} \; = \; \tfrac15\sum_{k=0}^4 F(\zeta^k) where ζ = e 2 π i 5 \zeta = e^{\frac{2\pi i}{5}} is a primitive fifth root of unity. Now F ( ζ k ) = j = 1 5 M ( 1 + ζ j k ) = ( j = 1 5 ( 1 + ζ j k ) ) M F(\zeta^k) \; = \; \prod_{j=1}^{5M}(1 + \zeta^{jk}) \; = \; \left(\prod_{j=1}^5(1 + \zeta^{jk})\right)^M and so F ( ζ 0 ) = 2 5 M F(\zeta^0) \; = \; 2^{5M} , while F ( ζ k ) = F ( ζ ) = ( j = 1 5 ( 1 ζ j ) ) M = ( ( ( 1 ) 5 1 ) ) M = 2 M F(\zeta^k) \; =\; F(\zeta) \; = \; \left(-\prod_{j=1}^5(-1 - \zeta^j)\right)^M \; = \; \left(-\big((-1)^5 - 1\big)\right)^M \; = \; 2^M for each 1 k 4 1 \le k \le 4 . Thus S = 1 5 ( 2 5 M + 4 × 2 M ) = 1 5 ( 2 5 M + 2 M + 2 ) S \; = \; \tfrac15\big(2^{5M} + 4\times 2^M\big) \; =\; \tfrac15\big(2^{5M} + 2^{M+2}\big) It is worth noting that 2 4 1 ( m o d 5 ) 2^4 \equiv 1 \pmod{5} , so that 2 5 2 ( m o d 5 ) 2^5 \equiv 2 \pmod{5} , and hence 2 5 M 2 M ( m o d 5 ) 2^{5M} \equiv 2^M \pmod{5} , so that 2 5 M + 2 M + 2 2 M + 2 M + 2 ( 1 + 4 ) 2 M 0 ( m o d 5 ) 2^{5M} + 2^{M+2} \equiv 2^M + 2^{M+2} \equiv (1 + 4)2^M \equiv 0 \pmod{5} , and hence this formula for S S does always give us an integer, whatever the value of M M .

In this case we have M = 400 M=400 , so that n + m + k = 5 + 2000 + 402 = 2407 n+m+k = 5 + 2000 +402 = \boxed{2407} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...