Here are some more examples of fractions and the repeating-decimal representations of them in Wolfram Alpha:
but
The question is, why are so many decimal places displayed in the first two examples, where the "repetition" bar could just as well have been placed over earlier digits to write these numbers as and ? After all, the second two examples show that Wolfram Alpha will sometimes show a repunit that begins with a zero.
I think a clue may be found in the "plaintext" representation of repeating decimals in the Wolfram language. For example, is represented by {{{6, 0, 0}}, -3}. That is, for a decimal fraction with some leading zeros, a kind of scientific notation is used. The -3 signifies an exponent of , that is, the entire number is shifted three places to the right. That is,
This is much like scientific notation, except that the decimal point is placed to the left of the first non-zero digit instead of to the right of it.
The Wolfram representation of , on the other hand, is {{1, {0, 0, 6}}, -1}, that is,
The pattern seems to be to avoid a leading zero inside the curly brackets of the "plaintext" notation, preferring to use a negative exponent instead. When the only digits are repeating digits, this means the first digit of the repunit (the repeating block of digits) is non-zero. But if there are non-repeating non-zero digits, the number of digits before the repeating block is minimized, even if this means that the repeating block starts with a zero.
But Wolfram Alpha still has some surprises in its representation of repeating decimals. The equations below show some other repeating decimals as displayed by Wolfram Alpha:
Interestingly, the first repeating decimal, , has the "plaintext" representation
{{{6, 0, 0}}, 1}, that is,
People are not accustomed to repunits that span the decimal point, so it makes sense that Wolfram Alpha would not display something like . Instead, the second repunit is displayed under the "repeating" bar. The "plaintext" representation of is {{5, 1, {0, 6, 0}}, 1}, which is exactly what is displayed. But the "plaintext" Wolfram representation of ? I can only speculate about this: perhaps the rule for displaying numbers with repunits is to display the fractional part using the "plaintext" representation of the fractional part alone. For example, Wolfram Alpha tells us that
not , and not despite the fact that the "plaintext" representation of this fraction is {{5, {0, 6, 0}}, 3}. That is, instead of putting the "repeating" bar over any of the repunits from the "plaintext" representation of the entire number, Wolfram Alpha uses the repunit from its "plaintext" representation of the fractional part.