Skip to main content
OlympiadHQ

Browse · MathNet

Print

TST

Vietnam algebra

Problem

Define the sequence as , and for all positive integers .

a) Find all positive integers such that for all integers .

b) Prove that there are infinitely many positive integers such that for all positive integers .
Solution
a) We prove by induction on that for all where is the sum of the digits of in binary representation.

The base case is trivial. Now, we assume that is proved for , and prove it for .

We shall prove the statement for with some cases as follows.

, let with . It follows , so , let with . It follows , so Therefore in all cases, we always have . So that for all positive integers . We distinguish two cases regarding the value of .

Case 1. , it is easy to see that satisfied.

Case 2. , we investigate three subcases

Subcase 1. if then choose , so , which is not satisfying .

Subcase 2. if then we will prove in this case satisfied. Assume that , with and is odd, expand . We have with number have digits 0 after and for all because Thus, for all odd.

On the other hand, if is even then .

Thus, for all .

Subcase 3. does not have the form of or . Let where is odd and greater than 1, we have

, let with digits 0, so . Choose with digits 0, so Therefore, , which is not satisfied.

, let , with and because does not have the form of . Choose with digits 0. It follows that with have digits 0 from in the left to in the right and have digits 0 at the end. Thus, since , which do not satisfied for all .

Hence, there are only and satisfied.

b) Choose , so for all positive integers .

Final answer
a) All n with n = 2 or n = 2^t − 1 for some integer t ≥ 1. b) Infinitely many choices exist; for example, any m = 2^p works.

Techniques

Recurrence relationsIntegers