Daily

Random

Practice set

Baltic Way 1997 · Problem 8

Number Theory

If we add 1996 and 1997, we first add the unit digits 6 and 7. Obtaining 13, we write down 3 and "carry" 1 to the next column. Thus we make a carry. Continuing, we see that we are to make three carries in total:

1111996+19973993\begin{array}{r} 111 \\ 1996 \\ +1997 \\ \hline 3993 \end{array}

Does there exist a positive integer kk such that adding 1996⋅k1996 \cdot k to 1997⋅k1997 \cdot k no carry arises during the whole calculation?

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

GCD and LCM · Divisibility and factorization

Solutions

Solution

Solution:

Answer: yes. The key to the proof is noting that if we add two positive integers and the result is an integer consisting only of digits 99 then the process of addition must have gone without any carries. Therefore it is enough to prove that there exists an integer kk such that 3993k3993 k is of the form 999…9999\ldots 9.

Consider the first 39943994 positive integers consisting only of digits 99:

9,99,999,…,999…9⏟3994.9,99,999, \ldots, \underbrace{999 \ldots 9}_{3994} .

By the pigeonhole principle some two of these give the same remainder upon division by 39933993, so their difference

99…9⏟n00…0⏟r=99…9⏟n⋅10r\underbrace{99 \ldots 9}_{n} \underbrace{00 \ldots 0}_{r}=\underbrace{99 \ldots 9}_{n} \cdot 10^{r}

is divisible by 39933993. Since 1010 and 39933993 are coprime we get an integer consisting only of digits 99 and divisible by 39933993.

Contest context

Results from Baltic Way 1997

11 teams

Mean score
3.4 / 5
Scores of 4 or 5
7 / 11
Estonia
5 / 5

Score distribution

03
10
21
30
40
57
All team scores
TeamScore
Poland5 / 5
Germany2 / 5
Estonia5 / 5
Sweden5 / 5
Denmark5 / 5
Latvia5 / 5
Finland5 / 5
Norway5 / 5
St. Petersburg0 / 5
Iceland0 / 5
Lithuania0 / 5