Browse · MathNet
Print49th International Mathematical Olympiad Spain
algebra
Problem
For an integer , denote by the unique number in such that is a multiple of . A function satisfies , , and
Prove that holds for all integers .
Prove that holds for all integers .
Solution
The given conditions determine uniquely on the positive integers. The signs of seem to change quite erratically. However, values of the form are sufficient to compute directly any functional value. Indeed, let have base representation , and let . Repeated applications of the recurrence show that is an alternating sum of the quantities plus . (The exact formula is not needed for our proof.)
So we focus attention on the values and . Six cases arise; more specifically, , , , , , .
Claim. For all integers the following equalities hold:
Proof. By induction on . The base comes down to checking that and ; the given values are also needed. Suppose the claim holds for . For , the recurrence formula and the induction hypothesis yield For we use the three equalities just established: The claim follows.
A closer look at the six cases shows that if is divisible by , and otherwise. On the other hand, note that is divisible by if and only if is. Therefore, for all nonnegative integers and , (i) if is divisible by ; (ii) if is not divisible by .
One more (direct) consequence of the claim is that for all .
The last inequality enables us to find an upper bound for for less than a given power of . We prove by induction on that holds true for all integers with .
The base is clear as . For the inductive step from to , let and satisfy . If , we are done by the inductive hypothesis. If then where . Now, by and the inductive assumption, The induction is complete.
We proceed to prove that for all integers . Since is not a power of , its binary expansion contains at least two summands. Hence one can write where and . Applying the recurrence formula twice yields Since is divisible by , we have by (i). Since is not divisible by , we have by (ii). Finally as , so that . Therefore which is nonnegative because .
So we focus attention on the values and . Six cases arise; more specifically, , , , , , .
Claim. For all integers the following equalities hold:
Proof. By induction on . The base comes down to checking that and ; the given values are also needed. Suppose the claim holds for . For , the recurrence formula and the induction hypothesis yield For we use the three equalities just established: The claim follows.
A closer look at the six cases shows that if is divisible by , and otherwise. On the other hand, note that is divisible by if and only if is. Therefore, for all nonnegative integers and , (i) if is divisible by ; (ii) if is not divisible by .
One more (direct) consequence of the claim is that for all .
The last inequality enables us to find an upper bound for for less than a given power of . We prove by induction on that holds true for all integers with .
The base is clear as . For the inductive step from to , let and satisfy . If , we are done by the inductive hypothesis. If then where . Now, by and the inductive assumption, The induction is complete.
We proceed to prove that for all integers . Since is not a power of , its binary expansion contains at least two summands. Hence one can write where and . Applying the recurrence formula twice yields Since is divisible by , we have by (i). Since is not divisible by , we have by (ii). Finally as , so that . Therefore which is nonnegative because .
Techniques
Functional EquationsRecurrence relationsModular Arithmetic