Ivo writes consecutively the integers on 100 cards and gives some of them to Yana. It is known that for every card of Ivo and every card of Yana, the card with the sum of the numbers on the two cards is not in Ivo and the card with the product of these numbers is not in Yana. How many cards does Yana have if the card with number 13 is in Ivo?
Problem 1240
Official solution
Solution:
Yana has at least one card, say . If Ivo has , then the product does not belong to Yana, a contradiction. Therefore Yana has .
If is in Ivo, then the sum belongs to Yana, a contradiction. Therefore belongs to Yana. Since the sum is in Ivo, both cards and belong to one and the same person. They are not in Ivo since otherwise the sum is in Yana. Using similar arguments we conclude that all cards belong to Yana. Further, all cards , , are in Ivo, and all the others belong to Yana. Therefore Yana has cards.