Skip to main content
OlympiadHQ

Browse · MathNet

Print

The Problems of Ukrainian Authors

Ukraine number theory

Problem

Decimal representation of a number is written one or several times on the blackboard. As a result, the binary representation of the same number is obtained. Find all possible values of .
Solution
Let decimal representation of consist of exactly digits, and binary representation consists of exactly times more digits, i.e. of digits. Since all digits of equal to either or , then the number should belong to, from one side, the interval , and from the other side, to the interval . Hence we come to two inequalities: and . After transformation, we get . This inequality, obviously, is wrong for .

For we have the only possible value and the first answer - number .

If , then . From all two-digit numbers, having only as digits, only suits - the second answer.

For the last case, , possible values are . Let's examine them.

For we have . That is, if is a ten-digit number such that written thrice it represents binary form of itself, then it has to have in the second-highest decimal position, i.e. - a contradiction (binary representation of should be a -digit number).

For all other values of we see that . For , . Numbers give remainders and under the division by , respectively. Since is a sum of several powers of with the highest , we have to choose from such that they sum up either to , or to . By examination of options we see that it is impossible to get such numbers. Similarly, we can check all other cases. Let's see (for example) the case . . The remainders of under the division by equal and . We have to select a combination of powers, summing up to - others impossible. By checking two last digits () we see that it is impossible to get the required two last digits .
Final answer
1 and 10

Techniques

OtherLinear and quadratic inequalities