Find how many 18-digit numbers (without leading zeros) there are such that no digit occurs more than three times in base 10.
Investigating the behavior of a recursively defined sequence.
—