Compute the sum of all positive integers whose digits form either a strictly increasing or strictly decreasing sequence.
Source: Baltic Way 1993
Tags: algebra proposed, algebra
Compute the sum of all positive integers whose digits form either a strictly increasing or strictly decreasing sequence.