Let x 1 , x 2 and x 3 be odd positive integers.
Find the total number of triplets ( x 1 , x 2 , x 3 ) satisfying x 1 + x 2 + x 3 = 5 1 .
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.
what is stars and bars
x 1 + x 2 + x 3 = 5 1
Let us denote all the possible values of the variables x 1 , x 2 and x 3 as powers of x and Multiply the possible values of all the variables. We want the Sum of variables to be equal to 5 1 . Which means we are trying to find coefficient of x 5 1 . Using formula of G.P we will simplify the expression.
x 1 + x 3 + x 5 + ⋯ + x 4 7 + x 4 9
3 times because 3 variables ( x 1 + x 3 + x 5 + ⋯ + x 4 9 ) ⋅ ( x 1 + x 3 + x 5 + ⋯ + x 4 9 ) ⋅ ( x 1 + x 3 + x 5 + ⋯ + x 4 9 )
x 3 ( x 0 + x 2 + x 4 + ⋯ + x 4 8 ) 3 coeff of x 5 1 ( x 0 + x 2 + x 4 + ⋯ + x 4 8 ) 3 coeff of x 4 8 ( 1 − x 2 1 − x 5 1 ) 3 = expansion does not contain coeff of x 4 8 ( 1 − x 5 1 ) 3 × ( 1 − x 2 ) − 3
Now
1 − x 2 1 ( 1 − x 2 ) 2 ( − 1 ) ( − 2 x ) ( 1 − x 2 ) 2 1 ( 1 − x 2 ) 3 ( − 2 ) ( − 2 x ) ( 1 − x 2 ) 3 1 2 r − 4 = r = 0 ∑ ∞ x 2 r = r = 0 ∑ ∞ ( 2 r ) x 2 r − 1 = r = 0 ∑ ∞ ( r ) x 2 r − 2 = r = 0 ∑ ∞ ( r ) ( 2 r − 2 ) x 2 r − 3 = r = 0 ∑ ∞ 2 ( r ) ( r − 1 ) x 2 r − 4 = 4 8 r = 2 6
Coefficient of x 4 8 = 2 2 6 × 2 5 = 3 2 5
This is the idea behind Stars and Bars Method , in short @Grant Bulaong solution is ideal .
Since x 1 , x 2 , and x 3 are odd positive integers, write each as x i = 2 n i + 1 for non-negative integers n i , i = 1 , 2 , 3 . Then the total number of triplets ( x 1 , x 2 , x 3 ) satisfying x 1 + x 2 + x 3 = K for odd positive integer K is the same as the number of triplets satisfying n 1 + n 2 + n 3 = N where N = 2 1 ( K − 3 ) . For our problem, K = 5 1 and N = 2 4 .
To count the number of triplets
(
n
1
,
n
2
,
n
3
)
, regard the equation
n
1
+
n
2
+
n
3
=
N
as a family of line segments in the first quadrant of the
(
n
1
,
n
2
)
-plane, each having a slope -1 and parameterized by its intercept of
c
=
N
−
n
3
with the axes:
n
1
+
n
2
=
c
,
c
∈
0
,
.
.
.
,
N
.
For each line segment, we seek all non-negative solutions for its given parameter value
c
∈
0
,
.
.
.
,
N
. Each such segment contains
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
of an
(
N
+
1
)
×
(
N
+
1
)
square of such points. The number of solution points
on
the diagonal is
N
+
1
. The number
off
the diagonal is
2
1
[
(
N
+
1
)
2
−
(
N
+
1
)
]
(where the factor of
2
1
is to count only
non-
diagonal points
below
the diagonal), so the total number of integral solutions is:
2
1
[
(
N
+
1
)
2
−
(
N
+
1
)
]
+
(
N
+
1
)
=
2
1
[
(
N
+
1
)
2
+
(
N
+
1
)
]
=
2
1
(
N
+
1
)
(
N
+
2
)
.
For N = 2 4 , the total number of solutions is: 2 1 ( 2 5 ) ( 2 6 ) = 2 5 ⋅ 1 3 = 3 2 5 . ANSWER: 3 2 5
Note: This is also a way to see that k = 1 ∑ n k = 2 1 n ( n + 1 ) .
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Stars and Bars
Since 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 for non-negative integers a , b , c . We then look for the number of solutions to the equation a + b + c = 2 4 which, by Stars and Bars, gives us 3 2 5 .