Problem

Source:

Tags: irrational number, rational numbers



The set $ S$ is a finite subset of $ [0,1]$ with the following property: for all $ s\in S$, there exist $ a,b\in S\cup\{0,1\}$ with $ a, b\neq s$ such that $ s =\frac{a+b}{2}$. Prove that all the numbers in $ S$ are rational.