Tessellate S.T.E.M.S. (2019) - Mathematics - Category A (School) - Set 3 - Objective Problem 1

Let k k be a positive integer. Bernardo and Silvia take turns writing and erasing numbers on a blackboard as follows. Bernardo starts by writing the smallest perfect square with k + 1 k+1 digits. Every time Bernardo writes a number, Silvia erases the last k k digits of it. Bernardo then writes the next perfect square, Silvia erases the last k k digits of it, and this process continues until the last two numbers that remain on the board differ by at least 2 2 . Let f ( k ) f(k) be the smallest positive integer not written on the board. For example, if k = 1 k = 1 , then the numbers that Bernardo writes are 16 16 , 25 25 , 36 36 , 49 49 , and 64 64 , and the numbers showing on the board after Silvia erases are 1 1 , 2 2 , 3 3 , 4 4 , and 6 6 , and thus f ( 1 ) = 5 f(1) = 5 . What is the sum of the digits of f ( 2 ) + f ( 4 ) + f ( 6 ) + + f ( 2016 ) f(2) + f(4) + f(6) + \cdots + f(2016) ?


This problem is a part of Tessellate S.T.E.M.S. (2019)

8064 8000 8032 8048

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Patrick Corn
Feb 11, 2019

The idea is to show that f ( 2 n ) = 1 0 2 n 4 + 1 0 n . f(2n) = \frac{10^{2n}}4 + 10^n. Then n = 1 1008 f ( 2 n ) = 2525 25 + 111 10 , \sum\limits_{n=1}^{1008} f(2n) = 2525\cdots25 + 111\cdots10, where there are 1008 1008 copies of 25 in the first number and 1008 1008 1s in the second number. There are clearly no carries when we sum these two numbers, so the digit sum equals the sum of the digit sums of the two addends, which is 7 1008 + 1008 = 8064 . 7 \cdot 1008 + 1008 = \fbox{8064}.

To see that x n = 1 0 2 n 4 + 1 0 n x_n = \frac{10^{2n}}4 + 10^n is not on the board, notice that ( 1 0 2 n 2 + 1 0 n ) 2 = 1 0 2 n ( x n + 1 ) ( 1 0 2 n 2 + 1 0 n 1 ) 2 = 1 0 2 n x n ( 2 1 0 n 1 ) \begin{aligned} \left( \frac{10^{2n}}2 + 10^n \right)^2 &= 10^{2n}(x_n+1) \\ \left( \frac{10^{2n}}2 + 10^n - 1 \right)^2 &= 10^{2n} x_n - (2\cdot 10^n-1) \end{aligned} so chopping off the rightmost 2 n 2n digits from these consecutive squares gives the numbers x n 1 x_n-1 and x n + 1. x_n+1.

It's a little bit more painful to see why x n x_n is the smallest number not on the board. There are two steps: first, the squares of any two consecutive numbers less than 1 0 2 n / 2 10^{2n}/2 differ by less than 1 0 2 n , 10^{2n}, so truncating the rightmost 2 n 2n digits of them will either give the same number or consecutive numbers. Second, it's a straightforward but tedious check that the numbers obtained by truncating the rightmost 2 n 2n digits of the squares of the 1 0 n 10^n consecutive numbers 1 0 2 n / 2 , 1 0 2 n / 2 + 1 , , 1 0 2 n / 2 + 1 0 n 1 10^{2n}/2, 10^{2n}/2 + 1, \ldots, 10^{2n}/2 + 10^n - 1 are consecutive integers. (Indeed, they are the integers 1 0 2 n / 4 , 1 0 2 n / 4 + 1 , , 1 0 2 n / 4 + 1 0 n 1. 10^{2n}/4, 10^{2n}/4 + 1, \ldots, 10^{2n}/4 + 10^n - 1. ) I'll leave that to the reader!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...