Problem

Source: 2023 Indonesia TST Stage 1: Test 4 - Combinatorics

Tags: combinatorics, trivial



Let $A$ and $B$ be nonempty subsets of $\mathbb{N}$. The sum of $2$ distinct elements in $A$ is always an element of $B$. Furthermore, the result of the division of $2$ distinct elements in $B$ (where the larger number is divided by the smaller number) is always a member of $A$. Determine the maximum number of elements in $A \cup B$.