math.NT — Number Theory
Splitting Stones and Binary Expansions in Complex Bases
Place stones at position of the line. Sweeping left to right, at each position holding stones send $\floor{m/2}$ of them to and another $\floor{m/2}$ to , leaving a single stone behind when is odd. For coprime we show that the positions of these left-behind singletons are exactly the positions of the -digits of in a binary expansion whose base is a root of . For this is the negabinary expansion, for it is Penney's base , and for it is the base . As consequences: the process always ends in a period-one travelling wave , which is a representation of zero; it terminates exactly for in an initial segment , where and ; the largest singleton is for an explicit ; and the number of singletons satisfies an effective Stewart-type lower bound for every coprime pair except and , for which equals infinitely often. For we determine all with , using the Ramanujan--Nagell theorem. This work was inspired by the mathematics behind a problem found at Project Euler.