Vassil Vassilev, age 15 from Lawnswood School, Leeds, Michael Gray, S6, Madras College
St Andrews and Koopa Koo from Boston College all solved this problem, well done all of you.
Here is Vassil's solution:
Let
denote the sum of the first
terms of the sequence
|
|
First I tried with several numbers.
Let
. Then
where the sequence is:
0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7
Let
. Then
where the sequence is:
0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7
Let
. Then
where the sequence is:
0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8
Let
. Then
where the sequence is:
0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8
I noticed that the formula for
depends on whether
is odd or even.
Case I -
is odd, i.e.
Then
|
|
Case II -
is even, i.e.
|
|
Now we have to calculate
There are two cases. In the first case, when one of
and
is even and the other
is odd, then
and
are both odd. Otherwise
and
are both even.
Case I
and
both odd.
|
|
Case II
and
both even.
|
|