Skip to main content
OlympiadHQ

Browse · MathNet

Print

IV OBM

Brazil algebra

Problem

Any positive integer can be written in the form . We call the odd part of . Given an odd integer , define the sequence as follows: , is the odd part of . Find .
Solution
An induction shows that for . It is certainly true for . Suppose it is true for . Then . Since , the odd part is , so the result is true for . That gets us as far as .

Now we want the odd part of . Certainly is even. We have for odd, so for odd it is not divisible by 4. Hence for odd we have .
Final answer
(3^n - 1)/2

Techniques

Recurrence relationsFactorization techniques