Problem

Source: 2022 Korea Winter Program Practice Test

Tags: combinatorics, Subset, algebra



For a finite set $A$ of positive integers and its subset $B$, call $B$ a half subset of $A$ when it satisfies the equation $\sum_{a\in A}a=2\sum_{b\in B}b$. For example, if $A=\{1,2,3\}$, then $\{1,2\}$ and $\{3\}$ are half subset of $A$. Determine all positive integers $n$ such that there exists a finite set $A$ which has exactly $n$ half subsets.