Daily

Random

Practice set

Baltic Way 1996 · Problem 7

Number Theory

A sequence of integers a1,a2,…a_{1}, a_{2}, \ldots, is such that a1=1,a2=2a_{1}=1, a_{2}=2 and for n≥1n \geq 1

an+2={5an+1−3an if an⋅an+1 is even, an+1−an if an⋅an+1 is odd. a_{n+2}= \begin{cases}5 a_{n+1}-3 a_{n} & \text { if } a_{n} \cdot a_{n+1} \text { is even, } \\ a_{n+1}-a_{n} & \text { if } a_{n} \cdot a_{n+1} \text { is odd. }\end{cases}

Prove that an≠0a_{n} \neq 0 for all nn.

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Modular arithmetic

Solutions

Solution

Solution: Considering the sequence modulo 66 we obtain 1,2,1,5,4,5,1,2,…1, 2, 1, 5, 4, 5, 1, 2, \ldots The conclusion follows.

Contest context

Results from Baltic Way 1996

10 teams

Mean score
4.4 / 5
Scores of 4 or 5
8 / 10
Estonia
2 / 5

Score distribution

00
10
22
30
40
58
All team scores
TeamScore
Poland5 / 5
Latvia5 / 5
Sweden5 / 5
Denmark5 / 5
St. Petersburg5 / 5
Finland5 / 5
Norway2 / 5
Lithuania5 / 5
Estonia2 / 5
Iceland5 / 5