Problem

Source:

Tags: modular arithmetic, Recursive Sequences



Each term of a sequence of natural numbers is obtained from the previous term by adding to it its largest digit. What is the maximal number of successive odd terms in such a sequence?