A couple of days ago, I remembered the following fun fact from my high-school days in Romania:

First, note that I am using the European notation for periodic decimal expansions (or repeating decimals). What you get is a periodic expansion, where all the two-digit numbers from 00 to 99, except 98, appear in the periodic part. Ok, there seems to be some magic going on here, let us try to understand what is happening.
First, note that , so probably there's nothing special about the 2 in there. Indeed, try

Good, let us go ahead and generalize this a little more. The 9 in there is the number of fingers you are left with when you lose one, so the same should be true for creatures anatomically different (by the way, there is ice on Mercury, and maybe more !):

Before stating and proving a general result, let us discuss the easiest case (for us humans), 1/81. The idea comes from [cgo] and the starting point is the formula

which is the power series expansion of around . For , we get

At this point, the expression above starts to look like a decimal expansion - the problem is that some of the numerators in the brackets are not digits! To get around this, write

to get

which is the announced formula. The general result can be stated as follows.

Proposition 1. Let be a fixed basis. Then, when everything is written in basis , for any , one has

where each group containing in the expression above has digits and denotes the digit in basis . Proof: We shall start from the RHS of the equation and work our way towards the LHS. Recall that a periodic decimal expansion in base can be written as a fraction as follows:

First, let us focus on the case and treat the general case at the end of the proof. In this particular case, the RHS of the equation in the statement is equal to

where the 1 in front of the sum stands for the fact that is replaced by as the last digit of the period. Using the formulas

we can write

from which the conclusion easily follows. For the general case, note that the following decimal expansion holds for groups of digits:

The proof follows then the same steps as above.


[cgo] A. Cheer and D. Goldston, Explaining the decimal expansion of 1/81 using calculus. Mathematics and Computer Education, 25-3 (1991).