MathDB
Wizards spell on island

Source: Saint Petersburg olympiad 2024, 11.7

September 22, 2024
combinatorics

Problem Statement

A tourist has arrived on an island where 100100 wizards live, each of whom can be a knight or a liar. He knows that at the time of his arrival, one of the hundred wizards is a knight (but does not know who exactly), and the rest are liars. A tourist can choose any two wizards AA and BB and ask AA to spell on BB with the spell "Whoosh"!, which changes the essence (turns a knight into a liar, and a liar into a knight). Wizards fulfill the tourist's requests, but if at that moment wizard AA is a knight, then the essence of BB really changes, and if AA is a liar, that doesn't change. The tourist wants to know the essence of at least kk wizards at the same time after several consecutive requests. For which maximum kk will he be able to achieve his goal?