I'm having some trouble with the following problem:
Let an be a sequence defined iteratively for n≥0 as follows:
an=am+1+2am+an−m−1+2 where m is defined as ⌊n2⌋−1, where ⌊.⌋ denotes the standard floor function.
The inequality I'm trying to show is:
an≤⌊n22⌋+n
I've shown the result for the the cases n=0,1 (a0=0 and a1=1 by definition, by the way) so I just need to prove the inductive step for n≥2.
Edit - I should add that all the terms of the sequence are non-negative, so in particular if k1≥k2 then we have ak1≥ak2
Here's roughly what I've tried so far:
Unless I've made a mistake, I can assume that n is even (since if n is odd just replace n by n+1 which is ≥n).
So ⌊n2⌋=n2 and hence an=an2+2an2−1+an−n2+2=2(an2+an2−1+1)
which is ≤2(⌊(n2)22⌋+⌊(n2−1)22⌋+n2+n2−1+1)=2(⌊(n2)22⌋+⌊(n2−1)22⌋+n) by the inductive hypothesis.
However, nothing I try from this point seems to make much progress.
I'm not exactly sure what the best way to manipulate the two floor functions above is, to get the required result.
Any help or hints would be greatly appreciated.
Thanks in advance.
Answer
an=am+1+2am+an−m−1+2=a⌊n2⌋−1+1+2a⌊n2⌋−1+an−⌊n2⌋+1−1+2
=a⌊n2⌋+2a⌊n2⌋−1+an−⌊n2⌋+2 Let's try by induction: suppose an≤⌊n22⌋+n for all k≤n (inductive hypothesis), let's prove it's valid also for n+1.
- If n is even (n=2k):
an=a2k=2(ak+ak−1+1)
and
an+1=a2k+1=2(ak+ak−1+1)=an≤⌊n22⌋+n≤⌊(n+1)22⌋+n+1 - If n is odd (n=2k+1):
an=a2k+1=2(ak+ak−1+1)≤⌊(2k+1)22⌋+2k+1=⌊4k2+4k+12⌋+2k+1=2k2+2k+2k+1=2k2+4k+1
and an+1=a2k+2=a2(k+1)=2(ak+1+ak+1)
but for the inductive hypothesis, ak+1≤⌊(k+1)22⌋+k+1 and ak≤⌊(k)22⌋+k which means that an+1=2(ak+1+ak+1)≤2(⌊(k+1)22⌋+k+1⌊(k)22⌋+k+1)
Now, - if k=2x an+1=a2k+2=a4x+2≤2(⌊(k+1)22⌋+k+1⌊(k)22⌋+k+1)=8x2+12x+4≤⌊(4x+2)22⌋+4x+2=8x2+8x+2+4x+2=8x2+12x+4
- instead if k=2x+1 an+1=a2k+2=a4x+4≤2(⌊(2x+2)22⌋+2x+2+⌊(2x+1)22⌋+2x+2)=8x2+20x+12≤⌊(4x+4)22⌋+4x+4 so the proof is finally concluded, because it's been proved that if an≤⌊n22⌋+n, so does an+1, and since a0≤0 it follows that an≤⌊n22⌋+n for every n∈N
Q.E.D
No comments:
Post a Comment