Take a test Sign in 中文
← Exercise 860 →
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 860
Let $f(n)$ and $g(n)$ be functions satisfying \[ f(n) = \begin{cases} \sqrt{n} & \text{ if } \sqrt{n} \text{ is an integer}\\ 1 + f(n+1) & \text{ otherwise} \end{cases} \] and \[ g(n) = \begin{cases}\sqrt{n} & \text{ if } \sqrt{n} \text{ is an integer}\\ 2 + g(n+2) & \text{ otherwise} \end{cases} \] for positive integers $n$. Find the least positive integer $n$ such that $\tfrac{f(n)}{g(n)} = \tfrac{5}{9}$.
← Back to Problem 860
Solution
  1. If $n$ lies between consecutive squares, $(k-1)^2<n\le k^2$, then $f(n)=k^2-n+k$.
  2. For $g$, step by $2$ to the next square of the same parity as $n$.
  3. Searching upward, the first $n$ with $\frac{f(n)}{g(n)}=\frac59$ is $n=102$, where $f(102)=121-102+11=30$ and $g(102)=144-102+12=54$.
  4. The answer is $\boxed{102}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year