MathDB
Weird function on subsets

Source: Philippine Mathematical Olympiad 2024 P4

February 20, 2024
functioncombinatoricsnumber theory

Problem Statement

Let nn be a positive integer. Suppose for any S{1,2,,n}\mathcal{S} \subseteq \{1, 2, \cdots, n\}, f(S)f(\mathcal{S}) is the set containing all positive integers at most nn that have an odd number of factors in S\mathcal{S}. How many subsets of {1,2,,n}\{1, 2, \cdots, n\} can be turned into {1}\{1\} after finitely many (possibly zero) applications of ff?