Baltic Way 1993 · Problem 8
Algebra
Compute the sum of all positive integers whose digits form either a strictly increasing or a strictly decreasing sequence.
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Sequences and recurrences
Solutions
Solution
Solution:
Denote by and the sets of all positive integers with strictly increasing (respectively, decreasing) sequence of digits. Let and be the subsets of consisting of all numbers starting with , not starting with , ending in and not ending in , respectively. Let denote the sum of all numbers belonging to a set .
All numbers in are obtained from the number by deleting some of its digits. Thus, for any there are -digit numbers in (here we consider a -digit number). Every -digit number can be associated with a unique number , and such that
Hence we have
Noting that and we obtain the system of equations
which yields
This sum contains all one-digit numbers twice, so the final answer is
Contest context
Results from Baltic Way 1993
8 teams
- Mean score
- 1.0 / 5
- Scores of 4 or 5
- 0 / 8
- Estonia
- 0 / 5
Score distribution
All team scores
| Team | Score |
|---|---|
| Poland | 0 / 5 |
| Latvia | 0 / 5 |
| Estonia | 0 / 5 |
| Sweden | 2 / 5 |
| Lithuania | 3 / 5 |
| Finland | 0 / 5 |
| Iceland | 0 / 5 |
| Denmark | 3 / 5 |