Daily

Random

Practice set

Baltic Way 1997 · Problem 5

Algebra

In a sequence u0,u1,…u_{0}, u_{1}, \ldots of positive integers, u0u_{0} is arbitrary, and for any non-negative integer nn,

un+1={12un for even una+un for odd unu_{n+1}= \begin{cases}\frac{1}{2} u_{n} & \text { for even } u_{n} \\ a+u_{n} & \text { for odd } u_{n}\end{cases}

where aa is a fixed odd positive integer. Prove that the sequence is periodic from a certain step.

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Sequences and recurrences

Solutions

Solution

Solution:

Suppose un>au_{n}>a. Then, if unu_{n} is even we have un+1=12un<unu_{n+1}=\frac{1}{2} u_{n}<u_{n}, and if unu_{n} is odd we have un+1=a+un<2unu_{n+1}=a+u_{n}<2 u_{n} and un+2=12un+1<unu_{n+2}=\frac{1}{2} u_{n+1}<u_{n}. Hence the iteration results in un⩽au_{n} \leqslant a in a finite number of steps. Thus for any non-negative integer mm, some non-negative integer n>mn>m satisfies un⩽au_{n} \leqslant a, and there must be an infinite set of such integers nn.

Since the set of natural numbers not exceeding aa is finite and such values arise in the sequence (un)\left(u_{n}\right) an infinite number of times, there exist nonnegative integers mm and nn with n>mn>m such that un=umu_{n}=u_{m}. Starting from umu_{m} the sequence is then periodic with a period dividing n−mn-m.

Contest context

Results from Baltic Way 1997

11 teams

Mean score
4.7 / 5
Scores of 4 or 5
10 / 11
Estonia
5 / 5

Score distribution

00
10
21
30
40
510
All team scores
TeamScore
Poland5 / 5
Germany5 / 5
Estonia5 / 5
Sweden2 / 5
Denmark5 / 5
Latvia5 / 5
Finland5 / 5
Norway5 / 5
St. Petersburg5 / 5
Iceland5 / 5
Lithuania5 / 5