Baltic Way 1998 · Problem 20
Combinatorics
We say that an integer covers the number 1998 if appear in this order as digits of . (For instance, 1998 is covered by 215993698 but not by 213326798 .) Let be the number of positive integers that cover 1998 and have exactly digits , all different from 0 . What is the remainder of in division by 8 ?
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Pigeonhole and extremal arguments
Solutions
Solution
Solution:
Let be fixed integers. Consider all -digit numbers with all digits non-zero, such that , , , and this quadruple 1998 is the leftmost one in ; that is,
There are such numbers . Obviously, for , and in all other cases. Since is obtained by summing up the values of over all possible choices of , the remainder we are looking for is .
Contest context
Results from Baltic Way 1998
11 teams
- Mean score
- 3.0 / 5
- Scores of 4 or 5
- 5 / 11
- Estonia
- 5 / 5
Score distribution
All team scores
| Team | Score |
|---|---|
| Latvia | 0 / 5 |
| Estonia | 5 / 5 |
| Poland | 5 / 5 |
| Finland | 0 / 5 |
| St. Petersburg | 3 / 5 |
| Sweden | 3 / 5 |
| Denmark | 5 / 5 |
| Iceland | 0 / 5 |
| Norway | 5 / 5 |
| Germany | 2 / 5 |
| Lithuania | 5 / 5 |