How many triples of positive integers?

How many triples of positive integers ( r , s , t ) (r, s, t) such that r < s < t r < s < t which satisfy the equation below?

r + s + t = 52 \large r + s + t = 52

26,235 225 200 22025

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.

6 solutions

Otto Bretscher
Dec 22, 2018

Let s = r + a s=r+a and t = s + b = r + a + b t=s+b=r+a+b for positive integers a , b a,b , and write the given equation as 3 r + 2 a + b = 52 3r+2a+b=52 or 3 r + 2 a 51 3r+2a\leq 51 . Now r r may be any integer between 1 and 16, and, for a given r r , there are 51 3 r 2 \lfloor\frac{51-3r}{2} \rfloor choices for a a . The answer is r = 1 16 51 3 r 2 = 200 \sum_{r=1}^{16}\lfloor\frac{51-3r}{2}\rfloor=\boxed{200} .

Chew-Seong Cheong
Dec 22, 2018

r s t r s t r s t r s t 1 2 49 2 3 47 3 4 45 14 18 20 1 3 48 2 4 46 3 5 44 15 16 21 1 4 47 2 5 45 3 6 43 15 17 20 15 18 19 1 25 26 2 24 26 3 24 25 16 17 19 \begin{array} {ccccccccccccccccc} r & s & t & & r & s & t & & r & s & t & & \cdots & & r & s & t \\ \hline 1 & 2 & 49 & & 2 & 3 & 47 & & 3 & 4 & 45 & & \cdots & & 14 & 18 & 20 \\1 & 3 & 48 & & 2 & 4 & 46 & & 3 & 5 & 44 & & \cdots & & 15 & 16 & 21 \\1 & 4 & 47 & & 2 & 5 & 45 & & 3 & 6 & 43 & & \cdots & & 15 & 17 & 20 \\ \cdot & \cdot & \cdot & & \cdot & \cdot & \cdot & & \cdot & \cdot & \cdot & & \cdots & & 15 & 18 & 19 \\1 & 25 & 26 & & 2 & 24 & 26 & & 3 & 24 & 25 & & \cdots & & 16 & 17 & 19 \end{array}

From the table of ( r , s , t ) (r,s,t) triples above, we note that for a value of r r (say 1), we can have many values of s s (2 to 25), But for a pair of ( r , s ) (r, s) , there is only one value of t t which is equal to 52 r s 52-r-s . Therefore, the total number of ( r , s , t ) (r,s,t) triples N N is equal to the total number of ( r , s ) (r,s) pairs or the sum of possible s s for all r r or N = r = 1 r m a x n r N = \sum_{r=1}^{r_{max}} n_r , where n r n_r is the number of s s for a particular r r and r m a x r_{max} is the maximum value of r r . We can find the value of r m a x r_{max} by considering r m a x + r m a x + 1 s + r m a x + 2 t 52 r_{max} + \underbrace{r_{max} + 1}_s + \underbrace{r_{max} + 2}_t \le 52 r m a x = 49 3 = 16 \implies r_{max} = \left \lfloor \frac {49}3 \right \rfloor = 16 as shown in the table above.

We see that n r = s r , m a x r n_r = s_{r, max} - r (for example: r = 1 r=1 , n 1 = 25 1 = 24 n_1 = 25 - 1 = 24 ). Similar to finding r m a x r_{max} , s r , m a x + s r , m a x + 1 t 52 r s_{r, max} + \overbrace {s_{r, max} + 1}^t \le 52-r s r , m a x = 51 r 2 \implies s_{r, max} = \left \lfloor \frac {51-r}2 \right \rfloor . Then we have:

N = r = 1 16 n r = r = 1 16 ( s r , m a x r ) = r = 1 16 51 r 2 r = 1 16 r Consider odd and even r separately. = k = 1 8 ( 51 ( 2 k 1 ) 2 o d d + 51 2 k 2 e v e n ) 16 ( 17 ) 2 = k = 1 8 ( 51 2 k ) 136 = 8 ( 51 ) 8 ( 9 ) 136 = 200 \begin{aligned} N & = \sum_{r=1}^{16} n_r = \sum_{r=1}^{16} \left(s_{r, max} - r\right) \\ & = {\color{#3D99F6}\sum_{r=1}^{16} \left \lfloor \frac {51-r}2 \right \rfloor} - \sum_{r=1}^{16} r & \small \color{#3D99F6} \text{Consider odd and even }r \text{ separately.} \\ & = {\color{#3D99F6}\sum_{\color{#D61F06}k=1}^{\color{#D61F06}8} \bigg(\underbrace{\left \lfloor \frac {51-(2k-1)}2 \right \rfloor}_{odd} + \underbrace{\left \lfloor \frac {51-2k}2 \right \rfloor}_{even} \bigg)} - \frac {16(17)}2 \\ & = \sum_{k=1}^8 (51-2k) - 136 \\ & = 8(51) - 8(9) - 136 = \boxed{200} \end{aligned}

Jeffrey Robles
Dec 27, 2018

Consider first all the positive integer solutions to the given equation: r + s + t = 20 ( r + 1 ) + ( s + 1 ) + ( t + 1 ) = 52 r + s + t = 49 \begin{aligned} r + s + t &= 20 \\ (r' + 1) + (s' + 1) + (t'+1) &= 52 \\ r' + s' + t' &= 49 \end{aligned}

Note that the variables are expressed as x + 1 x' + 1 so that x x' can be zero. Using Stars and Bars, there are ( 51 2 ) = 1275 {51 \choose 2} = 1275 .

This set of solutions consists of three subsets: none are equal , two are equal , all three are equal . Since 52 is not divisible by 3, then the last subset is empty. The required total is the number of elements belonging to the first subset (none are equal), only that we have to restrict the order (such that r < s < t r<s<t ) by dividing by 3 ! 3! . We can first find the number of cases when two are equal, subtract this from the overall total, and finally divide by 3 ! 3! .

Case: Two are equal W.L.O.G., assume r = s (the subtotal is then multiplied by ( 3 2 ) 3\choose 2 ): 2 r + t = 52 t = 52 2 r 2r + t = 52 \\ t = 52 - 2r

Since, t > 0 t>0 , then r [ 1 , 25 ] r \in \left[1,25\right] .

Therefore, the number of positive integer triples ( r , s , t ) (r,s,t) where r < s < t r<s<t is 1275 ( 3 2 ) ( 25 ) 3 ! = 200 \frac{1275-{3\choose 2}(25)}{3!}=\boxed{200}

Brute force solution in Ruby, which prints 200:

I did this in command line in Windows 10. The image is because the solutions editor editor here does not seem to understand single spaced lines.

Nalab Limbu
Dec 21, 2018

Consider the number of ways pairs s and t, you can have with known r. We know the largest r can be is 16.

As 52 3 \frac{52}{3} =17 1 3 \frac{1}{3} r < s < t and positive integers. r =17 1 3 \frac{1}{3} - 1 1 3 \frac{1}{3} =16, s =17 1 3 \frac{1}{3} - 1 1 3 \frac{1}{3} =17, t =17 1 3 \frac{1}{3} - 1 2 3 \frac{2}{3} =19

Lowest r can be is 1, 0 not considered positive nor negative. And the lowest s can be is r +1, means the largest t can be is 52 -(2r +1)

We can can add 1 to s =r +1 and minus 1 from t, and conditions are still satisfied as, until s = t. Part of the question can be seen as how many times can you increase s by 1 and decrease t by 1, for 1 \le r \le 16. With given constraints.

In this range we have 16 distinct value for r. the difference between the lowest s and largest t is D = t - s = 52 -(3r +2), this is our limit to how much we can make s and t apart. As we +1 to s and -1 to t we lower the difference my 2. There are two case to consider; when the difference is even or when it is odd.

even:

we have current position, example r =2, s = 3, t = 47, D = difference = 44, we can add up to 21 to s and subtract 21 from t such that s < t still, but at s+22 and t-22 the s=t and that is not allowed for this question. so the total time we can increase s by 1 is 21. The total number of s and t with r =2, for given constraints is 22 = D 2 \frac{D}{2}

odd:

we have current position, example r =1, s =2, t =49, D =47. As D is odd and we subtract 2 every time to find new s and t, D will reach 1 so there exist t such that t = s+1,and so the number of ways to increase s is 23 . the number of pairs of s and t for r =1, for given constraints is 24 = D 1 2 \frac{D-1}{2} +1

However this can be written differently 24 = D 2 \left\lceil \frac { D }{ 2 } \right\rceil , this works for the even case as well, try it yourself.

We can then find the total number of triplet = r = 1 16 D 2 = r = 1 16 52 ( 3 r + 2 ) 2 \sum _{ r=1 }^{ 16 }{ \left\lceil \frac { D }{ 2 } \right\rceil } =\sum _{ r=1 }^{ 16 }{ \left\lceil \frac { 52-(3r+2) }{ 2 } \right\rceil } = 200 \boxed{200}

which can be further generalise for instead of 52 we have n then the number of triplets we have is = r = 1 k n ( 3 r + 2 ) 2 \sum _{ r=1 }^{ k }{ \left\lceil \frac { n-(3r+2) }{ 2 } \right\rceil } . Where k is the largest r can be.

Kyle T
Dec 21, 2018

<?php
$n = 0;
for($i=1;$i<=52;$i++){
for($j=$i+1;$j<=52;$j++){
for($k=$j+1;$k<=52;$k++){
if($i+$j+$k==52){
$n++;
}
}
}
}
echo $n; //prints 200
?>






0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...