The string of digits is formed by
alternately writing the digits , in that order, and then writing
some number of consecutive s.
There are exactly consecutive
s immediately following the th occurrence of . If is the sum of the first digits of the string, what is the
sum of the digits of ?
, 2026
Solutions — 2
Solution 1
Suppose the number of complete strings of is . We can compute the number of digits up
to and including the rightmost in
the string. It is ( occurrences of each of , , , and ) plus the number of s, which is Note that the 5s that follow the final are not included in this count. This
sum is equal to so there are digits up to and
including the rightmost .
The total number of digits is ,
so must be the greatest integer
satisfying
2026 4052$.
Notice that but
, so we have that
, meaning that there are complete strings of .
Thus, the number of digits up to and including the rightmost is 606042026-2010=162026$ digits in total. This means there
are no "partial" strings of .
Therefore, among the first
digits, there are each of , , ,
for a total of
digits, and the rest must be .
Thus, of the digits
are .
The sum of the first digits
is The sum of the digits of is .
Solution 2
Suppose the number of complete strings of is . We can compute the number of digits up
to and including the rightmost in
the string. It is ( occurrences of each of , , , and ) plus the number of s, which is Note that the 5s that follow the final are not included in this count. This
sum is equal to so there are digits up to and
including the rightmost .
The total number of digits is ,
so must be the greatest integer
satisfying
2026 4052$.
Notice that but
, so we have that
.
Thus, the number of digits up to and including the rightmost is 606042026-2010=162026$ digits in total. This means there
are no "partial" strings of .
Therefore, among the first
digits, there are each of , , ,
for a total of
digits, and the rest must be .
Thus, of the digits
are .
The sum of the first digits
is The sum of the digits of is .