Daily

Random

Practice set

Baltic Way 2023 · Problem 19

Number Theory

Show that the sum of the digits of 22220232^{2^{2^{2023}}} is greater than 2023.

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Modular arithmetic

Solutions

Solution

We will prove the more general statement that, for every positive integer nn, the sum of decimal digits of 222n2^{2^{2n}} is greater than nn. Let m=22n=4nm = 2^{2n} = 4^n, so that we need to consider the digits of 2m2^m. It will suffice to prove that at least nn of these digits are different from 00, since the last digit is at least 22.

Let 0=e0<e1<⋯<ek0 = e_0 < e_1 < \dots < e_k be the positions of non-zero digits, so that 2m=∑i=0kdi⋅10ei2^m = \sum_{i=0}^k d_i \cdot 10^{e_i} with 1≤di≤91 \le d_i \le 9. Considering this number modulo 10ej10^{e_j}, for some 0<j≤k0 < j \le k, the residue ∑i=0j−1di⋅10ei\sum_{i=0}^{j-1} d_i \cdot 10^{e_i} is a multiple of 2ej2^{e_j}, hence at least 2ej2^{e_j}, but on the other hand it is bounded by 10ej−1+110^{e_{j-1}+1}. It follows that 2ej<10ej−1+1<16ej−1+12^{e_j} < 10^{e_{j-1}+1} < 16^{e_{j-1}+1}, and hence ej<4(ej−1+1)e_j < 4(e_{j-1} + 1). With e0=40−1e_0 = 4^0 - 1 and ej≤4(ej−1+1)−1e_j \le 4(e_{j-1} + 1) - 1, it follows that ej≤4j−1e_j \le 4^j - 1, for all 0≤j≤k0 \le j \le k. In particular, ek≤4k−1e_k \le 4^k - 1 and hence

2m=∑i=0kdi⋅10ei<104k<164k=24⋅4k=24k+1,2^m = \sum_{i=0}^{k} d_i \cdot 10^{e_i} < 10^{4^k} < 16^{4^k} = 2^{4 \cdot 4^k} = 2^{4^{k+1}},

which yields 4n=m<4k+14^n = m < 4^{k+1}, i.e., n−1<kn - 1 < k. In other words, 2m2^m has k≥nk \ge n non-zero decimal digits, as claimed.

Contest context

Results from Baltic Way 2023

10 teams

Mean score
0.5 / 5
Scores of 4 or 5
1 / 10
Estonia
0 / 5

Score distribution

08
11
20
30
41
50
All team scores
TeamScore
Germany4 / 5
Sweden0 / 5
Lithuania1 / 5
Poland0 / 5
Estonia0 / 5
Latvia0 / 5
Norway0 / 5
Denmark0 / 5
Finland0 / 5
Iceland0 / 5