Being odd is fun

Let x 1 , x 2 x_1, x_2 and x 3 x_3 be odd positive integers.

Find the total number of triplets ( x 1 , x 2 , x 3 ) (x_1, x_2, x_3) satisfying x 1 + x 2 + x 3 = 51 x_1 + x_2 + x_3 = 51 .


The answer is 325.

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

Grant Bulaong
Jan 1, 2017

Relevant wiki: Stars and Bars

Since x 1 , x 2 , x 3 x_1, x_2, x_3 are odd positive integers, we can write them as x 1 = 2 a + 1 , x 2 = 2 b + 1 , x 1 = 2 c + 1 x_1=2a+1,x_2=2b+1,x_1=2c+1 for non-negative integers a , b , c a,b,c . We then look for the number of solutions to the equation a + b + c = 24 a+b+c=24 which, by Stars and Bars, gives us 325 325 .

what is stars and bars

abhishek alva - 4 years, 5 months ago
Sabhrant Sachan
Jan 1, 2017

x 1 + x 2 + x 3 = 51 x_{1}+x_{2}+x_{3} = 51

Let us denote all the possible values of the variables x 1 x_1 , x 2 x_2 and x 3 x_3 as powers of x x and Multiply the possible values of all the variables. We want the Sum of variables to be equal to 51 51 . Which means we are trying to find coefficient of x 51 x^{51} . Using formula of G.P we will simplify the expression.

x 1 + x 3 + x 5 + + x 47 + x 49 x^1+x^3+x^{5}+\cdots+x^{47}+x^{49}

( x 1 + x 3 + x 5 + + x 49 ) ( x 1 + x 3 + x 5 + + x 49 ) ( x 1 + x 3 + x 5 + + x 49 ) 3 times because 3 variables \underbrace{(x^1+x^3+x^{5}+\cdots+x^{49} )\cdot(x^1+x^3+x^{5}+\cdots+x^{49} )\cdot (x^1+x^3+x^{5}+\cdots+x^{49} )}_{3 \text{ times because 3 variables }}

x 3 ( x 0 + x 2 + x 4 + + x 48 ) 3 coeff of x 51 ( x 0 + x 2 + x 4 + + x 48 ) 3 coeff of x 48 ( 1 x 51 1 x 2 ) 3 = ( 1 x 51 ) 3 expansion does not contain coeff of x 48 × ( 1 x 2 ) 3 x^3(x^0+x^2+x^{4}+\cdots+x^{48})^{3} \hspace{5mm} \small\text{ coeff of } x^{51} \\ (x^0+x^2+x^{4}+\cdots+x^{48})^{3} \hspace{9mm} \small\text{ coeff of } x^{48} \\ \left(\dfrac{1-x^{51}}{1-x^2}\right)^{3} \hspace{2mm} = \hspace{2mm} \underbrace{(1-x^{51})^{3}}_{\small\text{expansion does not contain coeff of }x^{48} } \times (1-x^2)^{-3}

Now

1 1 x 2 = r = 0 x 2 r ( 1 ) ( 2 x ) ( 1 x 2 ) 2 = r = 0 ( 2 r ) x 2 r 1 1 ( 1 x 2 ) 2 = r = 0 ( r ) x 2 r 2 ( 2 ) ( 2 x ) ( 1 x 2 ) 3 = r = 0 ( r ) ( 2 r 2 ) x 2 r 3 1 ( 1 x 2 ) 3 = r = 0 ( r ) ( r 1 ) 2 x 2 r 4 2 r 4 = 48 r = 26 \begin{aligned} \dfrac{1}{1-x^2} & = \displaystyle\sum_{r=0}^{\infty}x^{2r} \\ \dfrac{(-1)(-2x)}{(1-x^2)^{2}} & = \displaystyle\sum_{r=0}^{\infty}(2r)x^{2r-1} \\ \dfrac{1}{(1-x^2)^{2}} & = \displaystyle\sum_{r=0}^{\infty}(r)x^{2r-2} \\ \dfrac{(-2)(-2x)}{(1-x^2)^{3}} & = \displaystyle\sum_{r=0}^{\infty}(r)(2r-2)x^{2r-3} \\ \dfrac{1}{(1-x^2)^{3}} & = \displaystyle\sum_{r=0}^{\infty}\dfrac{(r)(r-1)}{2}x^{2r-4} \\ 2r-4 & = 48 \hspace{8mm} r = 26 \end{aligned}

Coefficient of x 48 x^{48} = 26 × 25 2 = 325 \dfrac{26 \times 25 }{2} = \boxed{325}


This is the idea behind Stars and Bars Method , in short @Grant Bulaong solution is ideal .

Wesley Zumino
Jul 5, 2017

Since x 1 , x 2 , x_1, x_2, and x 3 x_3 are odd positive integers, write each as x i = 2 n i + 1 x_i = 2n_i + 1 for non-negative integers n i , i = 1 , 2 , 3 {n_i}, i=1, 2, 3 . Then the total number of triplets ( x 1 , x 2 , x 3 ) (x_1, x_2, x_3) satisfying x 1 + x 2 + x 3 = K x_1 + x_2 + x_3 = K for odd positive integer K K is the same as the number of triplets satisfying n 1 + n 2 + n 3 = N n_1 + n_2 + n_3 = N where N = 1 2 ( K 3 ) N = \frac{1}{2}(K-3) . For our problem, K = 51 K=51 and N = 24 N=24 .

To count the number of triplets ( n 1 , n 2 , n 3 ) (n_1, n_2, n_3) , regard the equation n 1 + n 2 + n 3 = N n_1 + n_2 + n_3 = N as a family of line segments in the first quadrant of the ( n 1 , n 2 ) (n_1,n_2) -plane, each having a slope -1 and parameterized by its intercept of c = N n 3 c = N-n_3 with the axes: n 1 + n 2 = c , c 0 , . . . , N n_1 + n_2 = c, c\in{0, ..., N} . For each line segment, we seek all non-negative solutions for its given parameter value c 0 , . . . , N c\in{0, ..., N} . Each such segment contains c + 1 c+1 solutions (e.g., see figure). All possible solutions consist of the integral lattice points on and below the diagonal n 1 + n 2 = N n_1 + n_2 = N of an ( N + 1 ) × ( N + 1 ) (N+1)\times(N+1) square of such points. The number of solution points on the diagonal is N + 1 N+1 . The number off the diagonal is 1 2 [ ( N + 1 ) 2 ( N + 1 ) ] \frac{1}{2}[(N+1)^2-(N+1)] (where the factor of 1 2 \frac{1}{2} is to count only non- diagonal points below the diagonal), so the total number of integral solutions is: 1 2 [ ( N + 1 ) 2 ( N + 1 ) ] + ( N + 1 ) = 1 2 [ ( N + 1 ) 2 + ( N + 1 ) ] = 1 2 ( N + 1 ) ( N + 2 ) \frac{1}{2}[(N+1)^2-(N+1)] + (N+1) = \frac{1}{2}[(N+1)^2+(N+1)] = \frac{1}{2}(N+1)(N+2) .

For N = 24 N=24 , the total number of solutions is: 1 2 ( 25 ) ( 26 ) = 25 13 = 325 \frac{1}{2}(25)(26) = 25\cdot13 = 325 . ANSWER: 325 \boxed{325}

Note: This is also a way to see that k = 1 n k = 1 2 n ( n + 1 ) \displaystyle \sum_{k=1}^n k = \frac{1}{2}n(n+1) .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...