Problem

Source: Middle European Mathematical Olympiad 2012 - Individuals I-2

Tags: floor function, combinatorics proposed, combinatorics



Let $ N $ be a positive integer. A set $ S \subset \{ 1, 2, \cdots, N \} $ is called allowed if it does not contain three distinct elements $ a, b, c $ such that $ a $ divides $ b $ and $ b $ divides $c$. Determine the largest possible number of elements in an allowed set $ S $.