I need to prove that any integer can created using a sum of elements in an=2an−1−⌊an−12⌋,a1=1 without repetition.
My attempt was just bad...
I've tried proving by induction but it I'm not sure it's legitimate.
I've divided the proof into 2 cases:
- k=1 then it's obvious since a1=1
-k≥2 by induction let's prove that any k≥2∈N can be created using the above mentioned series without using a1. For k=2 it works since a2=2 and given it's correct for some k, for k+1 we use the I.H for k and then use a1=1 since we did not use it. It's bad...
I've also tried looking at an+1−an but it didn't help.
Two main questions:
- Any clues to how would I prove it?
- I've tried to understand how to find a general non-recursive formula for this series and couldn't( since it's not linear and not anything I've learned so far...). This part is actually pure curiosity and is not homework but it really is more interesting :)
Answer
It is more natural to use induction on an. Let the inductive hypothesis be that it is possible to represent the numbers 1… an using a1… an. This is obviously true for n=1; assume it is also true for n=k. Then, take some 1≤ x≤ ak+1. If 1≤ x≤ ak then x has a representation by the inductive hypothesis and if x=ak+1 then x can obviously be represented. Otherwise, we will represent x as ak+(x−ak). To ensure that it is valid to do this, we need only verify that 1≤ x−ak< ak. Note that the right bound is strict in order to enforce uniqueness. Taking ak< x< ak+1, we have
ak< x< 2ak−⌊ak2⌋
0< x−ak< ak−⌊ak2⌋<ak (if k>1)
1≤ x−ak<ak
The result we wanted to show. Hence, any number can be so represented.
No comments:
Post a Comment