Introduction

Welcome back to Mastery of Repeating Decimals! In the first lesson, we learned how bar notation works: the overline marks the exact digits that cycle, any digits before the bar form a non-repeating prefix, and even a small shift in bar placement changes the number entirely. With that foundation in place, you are ready for this second lesson.

Here we sharpen one specific skill: looking at a decimal expansion written out with trailing dots and figuring out exactly which digits repeat and which do not. This is trickier than it sounds, especially when several non-repeating digits appear before the cycle kicks in. By the end, you will be able to decompose any mixed repeating decimal into its two parts and write the correct bar notation with confidence.

Why Mixed Expansions Deserve Extra Attention

Some repeating decimals are straightforward. In 0.77770.7777\ldots, the pattern is obvious: the digit 77 repeats right away, and we simply write 0.70.\overline{7}. But many fractions produce decimals where the repeating cycle does not begin immediately. Consider 0.083330.08333\ldots — is the repeating block , or , or just ? The trailing dots alone do not always make the answer obvious at first glance.

The Two-part Structure of a Mixed Expansion

Every repeating decimal can be broken into two pieces:

  • Non-repeating prefix: the digits right after the decimal point that appear only once.
  • Repeating block: the group of digits that cycles endlessly after the prefix.

For a decimal like 0.583330.58333\ldots, the prefix is 58 and the repeating block is 3, giving us 0.5830.58\overline{3} in bar notation. When there is no prefix at all, the repeating block starts immediately — for example, 0.270.\overline{27} represents The challenge we tackle in this lesson is always the same question:

A Reliable Strategy for Finding the Repeating Block

Here is a step-by-step method you can apply to any mixed decimal:

  1. Write out plenty of digits. Make sure you have enough to see the pattern clearly — at least two full cycles of the suspected block.
  2. Read from the right side of the expansion. The cycle is most visible in the trailing digits.
  3. Identify the shortest string that keeps repeating. The repeating block is the smallest group of digits whose repetition accounts for the entire tail.
  4. Mark everything before the first occurrence of that cycle as the prefix.
Four-step flowchart for identifying the repeating block in a mixed decimal expansion

Let's apply this to 0.083330.08333\ldots Working from the right, we see 333\ldots333, so the repeating digit is clearly 33. The first 33 in the cycle appears in the thousandths place. Everything before it — namely — does not participate in the cycle. Therefore the prefix is and the repeating block is , giving us:

Walking Through Common Mixed Decimals

Let's work through a few more examples at a comfortable pace. Each time, we will identify the prefix and the repeating block, then write the bar notation.

Example 1: 0.16660.1666\ldots

The trailing digits are 666\ldots666, so 66 is repeating. The digit 11 in the tenths place appears only once. Prefix: 1, repeating block: 6.

0.160.1\overline{6}
Longer Prefixes and Multi-digit Repeating Blocks

Things get more interesting when the prefix is longer or the repeating block contains more than one digit. The same four-step strategy still applies; you just need to be a bit more patient with the pattern-spotting.

Example 4: 0.2385858580.238585858\ldots

Reading the tail, we see 858585\ldots858585. The two-digit string 85 is cycling. Its first occurrence starts at the third decimal place, so the digits before it are 2323. Prefix: 23, repeating block: 85.

0.23850.23\overline{85}
Pitfalls to Watch For

Below are the two most common mistakes learners make when splitting a mixed expansion. Keeping them in mind will save you time and frustration.

PitfallWhat Goes WrongHow to Avoid It
Bar too wideNon-repeating digits get placed under the overline, e.g., writing 0.23850.2\overline{385} instead of 0.23850.23\overline{85} for 0.2385858580.238585858\ldots
Conclusion and Next Steps

In this lesson, we focused on decomposing mixed repeating decimals into their non-repeating prefix and repeating block. We built a reliable four-step strategy — write enough digits, read from the tail, find the shortest cycling string, and mark everything before it as the prefix — and we saw why expanding your bar notation back into digits is the simplest way to catch errors.

Up next, you will put this skill to work in a set of hands-on practice exercises. You will identify non-repeating and repeating parts in mixed decimals, fill in decomposition statements, and write precise bar notation for increasingly tricky expansions. Let's see how sharp your pattern-spotting eye has become!

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal