Repetends
The prime factorization of 999999 is interesting. It is:
999999=3×3×3×7×11×13×37.(1)
We can use this to find the repeating decimal representation of some common
fractions. To see this, first note that we can write the reciprocal of 999999 as
99999991=9999990.999999=0.000001.(2)
Using this fact, here is the decimal representation of 1/7:
71=9999993×3×3×11×13×37=999999142857=0.142857.(3)
Clearly, this idea works for any factor of 999999. In the case of the prime
factors above, we have:
3171111131371=999999333333=0.333333,=999999142857=0.142857,=99999990909=0.090909,=99999962937=0.062937,=99999927027=0.027027.(4)
And of course, this idea works for non-prime factors. For example:
271=9999997×11×13×37=99999937037=0.037037.(5)
The repeated number in the decimal, e.g. 142857, is called the repetend or
reptend. In the case of 1/7, the repetend is actually a cyclic
number, and
therefore we can easily compute other fractions such as 3/7 by simply rotating
the digits in the repetend appropriately, e.g.,
73=0.428571.(6)
Furthermore, this gives us a nice trick to compute repeating decimals when the
denominator is a multiple of seven, such as
141=70.5=7501001=0.07142857.(7)
Basically, you have to do some long-division in your head, but the moment you
get a remainder you recognize, you’re essentially done.
For 1/11, note that we can use our nines times table to easily compute other
fractions repetends, such as
114=0.363636.(8)
Of course, we are only scratching the mathematical surface here. A proper
generalization for why this works lies in number theory. But I just wanted to
document for myself this simple case, since it justifies some common rules used
when computing fractions.
Prime factorization
One might ask: how could we compute the prime factorization of 999999 “by
hand”? The way I was taught was to observe that
999999=1001×999,(9)
and to then brute-force 1001, which isn’t too hard since we only have to check
odd numbers up to roughly 32. But a more elegant way in my mind is to
use the difference of two
squares
and the sum of two
cubes:
999999=(106−1)=(103−1)(103+1)=(103−1)(10+1)(102−10+1)=999×11×91.(10)
Using times tables and basic divisibility rules, e.g. 999 and 111 are
clearly divisible by three, we can easily factorize the remaining terms. I took
this idea from here.