Literally every time I'm serving some soup I'm thinking of this little mathematical problem I devised.
Imagine you have a very large (= infinite, for the purposes of the actual problem) bowl of soup and want to divide it into two halves using a (finite) ladle. The trouble is that some of the good stuff floated to the surface and every scoop takes a part $p$ of it, $p < \frac12$ (so its amount goes down geometrically with a quotient of $1-p$). The other good stuff is evenly dissolved in the volume. The protocol is that you always take a full scoop in this manner, so the only freedom is in what order do you empty the ladle into $A$ or $B$'s plate. What order would you take so that, asymptotically, both parties get fair shares in both respects?
Obviously the answer can't be $ABABAB\ldots$, because $A$ would always get $1/(1-p)$-times more than $B$. $\overline{ABBA}$ does not work either because $1+(1-p)^{-3}$ is always greater than $(1-p)+(1-p)^2$. In fact (except for a countable number of special values of $p$ (*)) it can't be any periodic infinite word of $A$ and $B$ for a slight variant of the same reason. One more thing I found is that the greedy algorithm (go $A$ until it has more than $B$, then swap) won't work either because while it would always satisfy splitting of the geometrical part, it would break the linear one (number of scoops). That's all I know at the moment.
Rephrased: for a given $1-p =: q \in (\frac12, 1)$, find a subset $M ∈ \mathbb{N}$ such that both
- $\displaystyle\lim_{N→∞} \frac{\#\left( M \cap \{1,\ldots,N\} \right)}{N} = \frac12$,
- $\displaystyle\sum_{n=1}^∞ q^n \chi_M(n) = \frac12 \sum_{n=1}^∞ q^n$.
I'm pretty sure the answer will lie somewhere in the theory of non-integer base systems or combinatorics on words or both, but I know little of those.
(*) For example, for $q = φ - 1$ the equality $q + q^2 + q^3 = 1 + q^4 + q^5$ holds, so for $p = 2 - φ \approx 0.381966$ the sequence $\overline{ABBBAA}$ would work.
Proposition. Let $(a_n)$ be an absolutely convergent series of real numbers such that for any natural $k$ we have $$|a_{2k-1}-a_{2k}|\le \sum_{n=k+1}^\infty |a_{2n-1}-a_{2n}|.\label{1}\tag{1}$$ Then there exists a subset $M$ of natural numbers such that $|M\cap \{2k-1,2k\}|=1$ for each natural $k$ and $\sum_{n\in M} a_n=\tfrac 12\sum_{n=1}^\infty a_n$.
Proof. For each natural $k$ put $b_k=|a_{2k-1}-a_{2k}|$. It suffices to show that we can consecutively choose signs for $b_k$, providing $\sum_{k=1}^\infty \pm b_k=0$. At the beginning choose a sign “$+$” for $b_1$ and for each $k>1$ choose for $b_k$ a sign “$+$”, if $\sum_{i=1}^{k-1} \pm b_i\ge 0$ and “$-$”, otherwise. It is easy to check that Condition \eqref{1} provides $\sum_{k=1}^\infty \pm b_k=0$. $\square$
Corollary. For each $q\in (1/\sqrt{2},1)$ there exists a subset $M$ of natural numbers such that $|M\cap \{2k-1,2k\}|=1$ for each natural $k$ and $\sum_{n\in M} q^n=\tfrac 12\sum_{n=1}^\infty q^n$.
Proof. It suffices to check that for any any natural $k$ we have $$q^{2k-1}-q^{2k}\le \sum_{n=k+1}^\infty q^{2n-1}-q^{2n}=\frac{q^{2k+1}}{1+q}. \square$$