Take a test Sign in 中文
← Exercise 901 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Digits (38)
Primes (31)
Fractions, Decimals, and the Floor Function (18)
Divisors, GCD, and LCM (36)
Divisibility (59)
Bases (15)
Modular Arithmetic (42)
Integer Equations (27)

Exercises and their solutions

Exercise 901
Let $k$ be a positive integer. Bernardo writes the perfect squares in increasing order, starting with the smallest perfect square with $k+1$ digits; each time, Silvia erases the last $k$ digits of the number he wrote. This continues until the last two numbers remaining on the board differ by at least $2$. Let $f(k)$ be the smallest positive integer not written on the board. (For example, $f(1)=5$: the squares $16,25,36,49,64$ leave $1,2,3,4,6$.) What is the sum of the digits of $f(2)+f(4)+\cdots+f(20)$?
← Back to Problem 901
Solution
  1. For $k=2n$, Bernardo writes $m^2$ for $m=10^n,10^n+1,\dots$, and the board shows $\lfloor m^2/10^{2n}\rfloor$. While $2m+1\le10^{2n}$, consecutive squares differ by at most $10^{2n}$, so the shown numbers increase by at most $1$ and nothing is skipped.
  2. With $M=5\cdot10^{2n-1}$, $(M+i)^2=25\cdot10^{4n-2}+i\cdot10^{2n}+i^2$ shows $25\cdot10^{2n-2}+i$ for $0\le i<10^n$, and $i=10^n$ shows $25\cdot10^{2n-2}+10^n+1$, a jump of $2$ that ends the process. So $f(2n)=25\cdot10^{2n-2}+10^n$.
  3. $\sum_{n=1}^{10}25\cdot10^{2n-2}$ is $25$ repeated $10$ times, and $\sum_{n=1}^{10}10^n=11111111110$.
  4. Adding the $1$s to the digits $2$ and $5$ causes no carries, so the digit sum is $7\cdot10+10=\boxed{80}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year