– January 2013 Maths Item of the Month Trying Triangulars

advertisement
Maths Item of the Month – January 2013
Trying Triangulars
The triangular numbers are 1, 3, 6, 10...
17 can be expressed as the sum of distinct triangular numbers:
17 = 1 + 6 + 10.
5 cannot be expressed as the sum of distinct triangular numbers.
What is the largest positive integer that cannot be expressed as the sum of distinct triangular
numbers?
Solution
By individually checking and noting down which numbers are not expressible as the sum of
triangular numbers, we will generate the set of numbers S {2,5,8,12, 23,33} . Above this,
we will cease to find results. This suggests that 33 is our answer, but just checking numbers
is obviously not enough; we must find a proof.
Proof by induction:
Let P(n) be the proposition: With the exception of integers in the set S
{2,5,8,12, 23,33} ,
2
every positive integer up to and including n is expressible as the sum of distinct triangular
numbers.
To verify that 33 is the largest positive integer that cannot be expressed as the sum of
distinct triangular numbers, we must prove this proposition to be true for all n
.
We should begin by verifying that P(n) is true for every natural number up to and including
49 .
Now we assume P(n) is true for some arbitrary n
7.
To use induction, we inspect P(n 1) . We now examine the general integer m such that
n2
m
(n 1) 2 . This is the range of integers which are proposed by P(n 1) , but which
have not already been assumed by P(n) .
1 of 4
JS 23/01/13 © MEI
The above diagram shows where the range of m comes from (the blue line shows the range
of integers proposed by P(n) , whilst the red line shows those proposed by P(n 1) ).
If we can show, using the assumption that P(n) is true, that all possible values of m can be
expressed as the sum of triangular numbers, then we will have shown that “ P(n) is true
implies P(n 1) is true” for all n
7.
To do this we will use the following two identities:
1. n2
2. n2
(n 1)n n(n 1)
n 1
n
2
2
(n 2)(n 1) (n 1)(n 2)
2
2
2
n 2
n 1
2
th
(These are derived from the fact that the r triangular number can be written as
To make use of these identities, it helps to write m as follows: m
r
r (r 1)
.)
2
k n2
There are then two cases to consider for k .
Case I: k
S
Using the first identity,
m
k
n 1
n
So m is made up of two triangular numbers and a third number, k . We need to show that k
can be expressed as a sum of distinct triangular numbers, exclusive of
Now, from the definition of m :
k
n2
Rearranging,
k
(n 1) 2
Simplifying,
k
2n 1
Using triangular number formula,
and
n
.
m (n 1) 2
Substituting for m ,
Now we can try to show that 2n 1
n 1
n 1
(n 1) 2
n2
. We do this by examining the inequality.
2n 1
(n 1)n
2
2 of 4
JS 23/01/13 © MEI
Expand and multiply by 2,
4n 2 n2 n
Rearrange,
n2 5n 2 0
Complete the square,
So 2n 1
k
n 1
n 1
is true for all n
n
5
33
2
5
33
2
5.37 . As n 7 , this will always be true, giving
.
By examining the definition of
n 1
we can extend this to become k
n 1
n2 . As we have
assumed P(n) is true, k is therefore expressible as a sum of distinct triangular numbers.
Furthermore, k
or
n
n 1
excludes the possibility that any of these triangular numbers are
n 1
.
So we have proven for Case I.
Case II: k
S
m
Using the second identity,
For this case, k
exclusive of
n 2
n 1
k 2
2 needs to be expressible as a sum of distinct triangular numbers,
n 2
and
n 1
.
If we examine S , we can see that every element can be written as
(which is 0 2 ) and 33 (which can be written as
As k
7
2
r
2 , except for 2
2 ).
S , the above gives us three sub-cases to consider for the value of k 2 .
1. k
2 0
2. k 2
r (where r
3. k
2
7
and
2 r 6| r
5)
2
In the first sub-case, m
n 2
n 1
and can therefore be expressed as the sum of distinct
triangular numbers.
For the second sub-case, we need to show that k
k
2
n 2
. As shown in Case I above,
2n 1 , so it follows that k 2 2n 1. Now we examine the inequality; 2n 1
3 of 4
n 2
.
JS 23/01/13 © MEI
4n 2 n2 3n 2
Expand and multiply by 2,
n2 7n 4 0
Rearrange,
Complete the square,
So k
2
n 2
7
n
7
is true for all n
(n 2)(n 1)
2
2n 1
Using triangular number formula,
33
2
33
6.37
6.37 . As we have defined n to be greater than or
2
equal to 7 , this will always be the case.
Therefore, for this sub-case, k
2 will always be a triangular number smaller than
n 2
, and
m can therefore be expressed as a sum of distinct triangular numbers.
Finally, the third sub-case; k
2
7
2
. In this case, k
2 31 . We already found that
k 2 2n 1, so for this sub-case 31 2n 1 . This rearranges to give n 16 . As such,
28 must be smaller than n 2 105 .
7
So we have shown that any possible value of m can be expressed as the sum of distinct
triangular numbers. There, for n 7 , P(n) is true implies P(n 1) is true.
So, by induction, P(n) is true for all n
, and the largest integer that cannot be expressed
as the sum of distinct triangular numbers is 33 .
4 of 4
JS 23/01/13 © MEI
Download