A number theory problem by Syed Hamza Khalid

Number Theory Level pending

How many ways are there of choosing 3 3 different numbers in an increasing order from {1, 2, 3, ... , 10} so that no two of the numbers are consecutive?

72 48 56 20 54

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.

2 solutions

Notice that a set of consecutive integers should have at least five elements for it to be possible to fulfill the requirement. We will therefore start counting the ways to satisfy the condition from the set 6 , 7 , 8 , 9 , 10 {6,7,8,9, 10} , proceeding backwards by adding another element at each iteration. By considering sequences starting from the least element of a set ( 6 6 in this example ) we will avoid counting contributions twice. { 6 , 7 , 8 , 9 , 10 } 1 \{\boxed{6} ,7,\boxed{8} ,9, \boxed{10}\} \rightarrow 1 { 5 , 6 , 7 , 8 , 9 , 10 } ; { 5 , 6 , 7 , 8 , 9 , 10 } 2 { 5 , 6 , 7 , 8 , 9 , 10 } 1 \{\boxed{5} ,6 ,\boxed{7},8,{\color{#D61F06}\boxed{\color{#333333} 9}},10 \};\{\boxed{5} ,6 ,\boxed{7},8,9,{\color{#D61F06}\boxed{\color{#333333} 10}} \}\rightarrow 2 \\ \{\boxed{5} ,6 ,7,\boxed{8},9, {\color{#D61F06}\boxed{\color{#333333} 10}}\}\rightarrow 1 { 4 , 5 , 6 , 7 , 8 , 9 , 10 } ; { 4 , 5 , 6 , 7 , 8 , 9 , 10 } ; { 4 , 5 , 6 , 7 , 8 , 9 , 10 } 3 { 4 , 5 , 6 , 7 , 8 , 9 , 10 } ; { 4 , 5 , 6 , 7 , 8 , 9 , 10 } 2 { 4 , 5 , 6 , 7 , 8 , 9 , 10 } 1 \{ \boxed{4} ,5 ,\boxed{6},7,{\color{#D61F06}\boxed{\color{#333333} 8}},9,10 \};\{\boxed{4} ,5 ,\boxed{6},7,8,{\color{#D61F06}\boxed{\color{#333333} 9}},10 \} ;\{\boxed{4} ,5 ,\boxed{6},7,8,9,{\color{#D61F06}\boxed{\color{#333333} 10}} \} \rightarrow 3 \\ \{ \boxed{4} ,5,6 ,\boxed{7},8,{\color{#D61F06}\boxed{\color{#333333} 9}},10 \};\{ \boxed{4} ,5,6 ,\boxed{7},8,9,{\color{#D61F06}\boxed{\color{#333333} 10}} \}\rightarrow 2 \\ \{ \boxed{4} ,5,6 ,7,\boxed{8},9,{\color{#D61F06}\boxed{\color{#333333} 10}} \}\rightarrow 1

The pattern is easy to notice: the contribution of a new set can be obtained from the contribution of the previous one by adding the next integer to it. The number of ways requested is 1 + ( 1 + 2 ) + ( 1 + 2 + 3 ) + + ( 1 + 2 + 3 + 4 + 5 + 6 ) = 6 1 + 5 2 + 4 3 + 3 4 + 2 5 + 1 6 = 2 28 = 56. 1+(1+2)+(1+2+3)+\dots+(1+2+3+4+5+6)=6 \cdot 1+ 5 \cdot 2+ 4\cdot 3+3 \cdot 4+2 \cdot 5+ 1 \cdot 6= 2 \cdot 28=56.

More generally, we see that the contribution of the set { k , k + 1 , , n } \{k,k+1,\dots,n \} is 1 n 3 k k = ( n 3 k ) ( n 2 k ) 2 \sum_{1}^{n-3-k} k=\frac{(n-3-k)\cdot(n-2-k)}{2} so we have to evaluate (written like this, it looks like I will sum over k the previous expression, while I will sum k ( k + 1 ) 2 \frac{k \cdot (k+1)}{2} instead, since otherwise I would use a change of variables) 1 n 4 k ( k + 1 ) 2 = 1 2 ( 1 n 4 k 2 + 1 n 4 k ) = ( n 4 ) ( n 3 ) ( n 2 ) 6 \sum_{1}^{n-4} \frac{k\cdot (k+1)}{2}=\frac{1}{2} \cdot (\sum_{1}^{n-4} k^2+ \sum_{1}^{n-4} k) =\frac{(n-4)(n-3)(n-2)}{6} which gives the desired result for n = 10 n=10 .

Note: if you are wondering why the indices range up to n 4 n-4 , the reason is that since you must have at least five numbers in a set constructed this way in order to be able to choose three non consecutive integers from it, the contributions "start" after the first 4 sets.

Jeremy Galvagni
Aug 13, 2018

( 8 3 ) = 56 \binom{8}{3}=56

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...