Skip to main content
OlympiadHQ

Browse · MathNet

Print

Slovenija 2008

Slovenia 2008 number theory

Problem

Maja can write positive integers onto a blackboard according to two rules. For every number that is already on the board, she can write down . Whenever one of the numbers on the board is a perfect square, she can also write down its square root.

a. Using only this two rules, can she get the number assuming she starts with ?

b. Using only this two rules, can she get the number assuming she starts with ?
Solution
a. With written on the board, Maja can get by taking the square root of , obtaining , and then writing down and . Now, she can write down the square root of , which is , and finally she can get as . (Note: there might be other ways of obtaining , but this is the only one that requires less than steps).

b. Let us now show that Maja cannot get from . Consider the remainders modulo . An even number is of the form and its square is . An odd number can be written as , so its square is equal to , giving the remainder of when divided by . We see that a perfect square can only give the remainders or when divided by , so we can never use the rule on numbers that give the remainder or .

The remainder we get when dividing by is . Using the rule on a number of the form , we get , a number that gives the remainder of . Using this rule on the number of the form , we get , the remainder is . After one step the remainder will be , then , then again, and so on. Since is divisible by , Maja can never reach it using the given two rules.
Final answer
a: yes; b: no

Techniques

Techniques: modulo, size analysis, order analysis, inequalitiesInvariants / monovariants