The construction counts an arbitrary length list of numbers, each which can count an integer > 0. The case between a number < 1 and a number >=1 is also addressed.
If that holds true without missing any possibilities, then this maps to the continued fractions. I've gone through several such mappings that missed at least one before, so looking to see if this one has any such as well.