Take a test Sign in 中文
← Exercise 859 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Equations (63)
Polynomials (44)
Functions (28)
Sequences (44)
Logarithm (45)
Extrema (21)
Complex Numbers (42)
Trigonometry (23)

Exercises and their solutions

Exercise 859
For all positive integers $x$, let \[ f(x)=\begin{cases}1 &\mbox{if }x = 1\\ \frac x{10} &\mbox{if }x\mbox{ is divisible by 10}\\ x+1 &\mbox{otherwise}\end{cases} \] and define a sequence as follows: $x_1=x$ and $x_{n+1}=f(x_n)$ for all positive integers $n$. Let $d(x)$ be the smallest $n$ such that $x_n=1$. (For example, $d(100)=3$ and $d(87)=7$.) Let $m$ be the number of positive integers $x$ such that $d(x)=19$. Find the sum of the distinct prime factors of $m$.
← Back to Problem 859
Solution
  1. Let $c_n$ count $x$ with $d(x)=n$.
  2. Working backwards, each $y$ at level $n$ has predecessor $10y$, and also $y-1$ unless $y-1$ is a multiple of $10$ or $y-1=1$.
  3. Building the levels from $\{1\}$, $\{10\}$, $\{100,9\}$, \dots{} and counting gives $c_{19}=130368=2^6\cdot3\cdot7\cdot97$.
  4. The sum of the distinct primes is $2+3+7+97=109$.
  5. The answer is $\boxed{109}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year