Skip to main content
OlympiadHQ

Browse · MathNet

Print

41st Balkan Mathematical Olympiad

algebra

Problem

Prove that there is a positive integer number such that the decimal representation of the number: ends in 2023 digits 8.
Solution
Let and be a third root of the unity. Using the fact that for every integer : we get that: Now note that and are the roots of the polynomial: which, in turn, is the characteristic polynomial of the recursive sequence : Thus, if we set for , then for every . Let . Since , any three consecutive terms of the sequence uniquely determine the previous as well as the next term of this sequence. Together with the fact that there are only finitely many residues modulo , we conclude that the sequence is periodic with some period (since ). Therefore: Finally, since , we conclude that and consequently:

and thus . Therefore has the desired property.

Techniques

Roots of unityRecurrence relationsInverses mod nGreatest common divisors (gcd)Complex numbers