Free CAT library

Classification of Real Numbers & Recurring Decimals

Understand the structure of real numbers, convert pure and mixed recurring decimals to fractions, and quickly identify terminating versus non-terminating decimals.

1. The Story & Mental Model

Imagine you are an archivist categorizing an infinite library of numbers. Some books (numbers) tell complete, finite stories—these are your integers and terminating decimals. Others repeat a single thrilling chapter forever; these are your recurring decimals. And then there are the chaotic, unpredictable books with infinite, non-repeating pages—the irrational numbers, like π\pi or 2\sqrt{2}.

The magic of rational numbers is that any number that can be expressed as a fraction of two integers, p/qp/q, either stops gracefully or loops a specific sequence infinitely. If you know the code, you can freeze an infinitely looping decimal and capture it in a simple fraction.

2. The CAT Question Blueprint

Exam setters love to test your conceptual clarity. They rarely ask you to "classify" a number directly. Instead, they will:

  • Give you a complex expression involving mixed recurring decimals and ask for the fractional equivalent or sum.

  • Ask you to identify how many fractions in a given set will terminate based on their denominators.

  • Test your understanding of irrationals mixed with rationals (e.g., "If xx is rational and yy is irrational, what is x+yx+y?").

3. Core Concepts, Formulae & Derivations

A. Terminating vs. Non-Terminating Decimals

A rational number in its lowest form p/qp/q will terminate if and only if the prime factorization of the denominator qq contains only 22s and/or 55s.

  • If q=2m×5nq = 2^m \times 5^n, the decimal terminates.

  • The number of decimal places before it terminates is max⁡(m,n)\max(m, n).

  • If qq has any prime factor other than 22 or 55 (like 3,7,113, 7, 11), the decimal will be non-terminating and recurring.

B. Converting Pure Recurring Decimals to Fractions

A pure recurring decimal has all its digits after the decimal point repeating: 0.ab‾0.\overline{ab}.

  • Rule: Write the repeating sequence as the numerator, and for the denominator, write as many 99s as there are repeating digits.

  • Example: 0.345‾=3459990.\overline{345} = \frac{345}{999}.

C. Converting Mixed Recurring Decimals to Fractions

A mixed recurring decimal has some non-repeating digits before the repeating part starts: 0.abc‾0.a\overline{bc}.

  • Rule:

    • Numerator: (Entire number formed by non-repeating and repeating digits) - (Number formed by non-repeating digits).

    • Denominator: As many 99s as repeating digits, followed by as many 00s as non-repeating digits.

  • Example: 0.245‾=245−2990=2439900.2\overline{45} = \frac{245 - 2}{990} = \frac{243}{990}.

4. Common Pitfalls & Speed Shortcuts

  • Pitfall: Forgetting to reduce the fraction p/qp/q to its lowest terms before checking the denominator for 22s and 55s. The fraction 615\frac{6}{15} looks non-terminating because 15=3×515 = 3 \times 5, but it reduces to 25\frac{2}{5}, which terminates!

  • Shortcut: To quickly add recurring decimals, don't convert them to fractions if they have the same number of recurring digits and non-recurring digits. Just write them out to a few decimal places, add normally, and observe the repeating pattern in the sum.

Formulas

Terminating Condition

q=2m×5nq = 2^m \times 5^n

Fraction p/q (in lowest terms) terminates if q has only 2 and 5 as prime factors.
Pure Recurring to Fraction

0.x1x2...xk‾=x1x2...xk10k−10.\overline{x_1 x_2 ... x_k} = \frac{x_1 x_2 ... x_k}{10^k - 1}

Denominator consists of k nines.
Mixed Recurring to Fraction

0.abcxy‾=abcxy−abc990000.abc\overline{xy} = \frac{abcxy - abc}{99000}

Nines equal to repeating digits, zeros equal to non-repeating digits.

Traps and tips

  • Always simplify fractions before determining if they terminate.
  • 0.999... is exactly equal to 1. The formula gives 9/9 = 1.
  • Irrational numbers (like root 2 or pi) cannot be written as fractions; they neither terminate nor recur.

Solved examples

The Deceptive Denominator

How many of the following fractions represent terminating decimals? 740\frac{7}{40}, 21150\frac{21}{150}, 13125\frac{13}{125}, 27120\frac{27}{120}

Show solution

Let's test each fraction. First, we must reduce them to their lowest terms.

  1. 740\frac{7}{40}: Already in lowest terms. Denominator 40=23×540 = 2^3 \times 5. Only prime factors are 2 and 5. This terminates.

  2. 21150\frac{21}{150}: Reduce by dividing by 3: 750\frac{7}{50}. Denominator 50=2×5250 = 2 \times 5^2. This terminates.

  3. 13125\frac{13}{125}: Lowest terms. Denominator 125=53125 = 5^3. This terminates.

  4. 27120\frac{27}{120}: Reduce by dividing by 3: 940\frac{9}{40}. Denominator 40=23×540 = 2^3 \times 5. This terminates.

Surprisingly, all four fractions represent terminating decimals.

Takeaway: Always reduce fractions to their simplest form before checking the prime factorization of the denominator.

Mixed Recurring Conversion

Express 2.345‾2.3\overline{45} as a fraction in its simplest form p/qp/q. What is the value of p+qp+q?

Show solution

First, separate the integer part: 2.345‾=2+0.345‾2.3\overline{45} = 2 + 0.3\overline{45}.

Now, convert 0.345‾0.3\overline{45} to a fraction:

  • The entire part after decimal is 345.

  • The non-repeating part is 3.

  • Number of repeating digits = 2 (so two 9s).

  • Number of non-repeating digits = 1 (so one 0).

0.345‾=345−3990=3429900.3\overline{45} = \frac{345 - 3}{990} = \frac{342}{990}.

Reduce 342990\frac{342}{990}:

Divide by 18: 342/18=19342 / 18 = 19, and 990/18=55990 / 18 = 55.

So, 0.345‾=19550.3\overline{45} = \frac{19}{55}.

The full number is 2+1955=110+1955=129552 + \frac{19}{55} = \frac{110 + 19}{55} = \frac{129}{55}.

Here, p=129p = 129 and q=55q = 55. Both are co-prime.

The sum p+q=129+55=184p + q = 129 + 55 = 184.

Takeaway: For mixed recurring decimals 0.abc xy , use (Entire - Non-repeating) / (9s for repeating, 0s for non-repeating).

Summing the Infinite Loops

Find the exact sum of 0.37‾+0.83‾0.\overline{37} + 0.8\overline{3}.

Show solution

Let's convert both to fractions to find the exact sum.

First number: 0.37‾=37990.\overline{37} = \frac{37}{99}.

Second number: 0.83‾=83−890=75900.8\overline{3} = \frac{83 - 8}{90} = \frac{75}{90}.

Simplify 7590\frac{75}{90}: divide by 15 to get 56\frac{5}{6}.

Now, add them: 3799+56\frac{37}{99} + \frac{5}{6}.

The LCM of 99 and 6 is 198.

37×2198+5×33198=74+165198=239198\frac{37 \times 2}{198} + \frac{5 \times 33}{198} = \frac{74 + 165}{198} = \frac{239}{198}.

Let's write this as a mixed fraction or decimal if needed. 239/198=141198239 / 198 = 1 \frac{41}{198}.

Takeaway: When adding recurring decimals of different structures, converting them to fractions ensures absolute precision without misalignment.

Decimal Termination Depth

After how many decimal places will the rational number 4324×53\frac{43}{2^4 \times 5^3} terminate?

Show solution

A rational number of the form p2m×5n\frac{p}{2^m \times 5^n} terminates after exactly max⁡(m,n)\max(m, n) decimal places (assuming pp is not a multiple of 2 or 5 that could reduce the powers).

Here, the denominator is 24×532^4 \times 5^3.

The powers are m=4m = 4 and n=3n = 3.

The maximum of these is 44.

To see why mechanically: multiply numerator and denominator by 515^1 to balance the powers of 10.

43×524×54=215104=21510000=0.0215\frac{43 \times 5}{2^4 \times 5^4} = \frac{215}{10^4} = \frac{215}{10000} = 0.0215.

It terminates after exactly 4 decimal places.

Takeaway: The number of decimal places a terminating fraction will have is determined by the highest power of 2 or 5 in its simplified denominator.

Subtracting the Chaos

If x=0.1234‾x = 0.12\overline{34} and y=0.0123‾y = 0.01\overline{23}, calculate the value of 9900(x−y)9900(x - y).

Show solution

Convert both to fractions over 9900.

For x=0.1234‾x = 0.12\overline{34}:

Numerator = 1234−12=12221234 - 12 = 1222.

Denominator = 9900.

x=12229900x = \frac{1222}{9900}.

For y=0.0123‾y = 0.01\overline{23}:

Numerator = 0123−01=1220123 - 01 = 122.

Denominator = 9900.

y=1229900y = \frac{122}{9900}.

Now, calculate x−y=12229900−1229900=11009900x - y = \frac{1222}{9900} - \frac{122}{9900} = \frac{1100}{9900}.

The question asks for 9900(x−y)9900(x - y):

9900×11009900=11009900 \times \frac{1100}{9900} = 1100.

Takeaway: When the denominator pattern (number of 9s and 0s) matches for two mixed recurring decimals, you can directly subtract their adjusted numerators.

The Irrational Squeeze

Let SS be the set of all numbers of the form n60\frac{n}{60}, where nn is an integer from 1 to 59. How many elements in SS represent non-terminating recurring decimals?

Show solution

The elements of SS are 160,260,…,5960\frac{1}{60}, \frac{2}{60}, \dots, \frac{59}{60}.

A fraction n60\frac{n}{60} will be a non-terminating decimal if its denominator, in lowest form, has prime factors other than 2 or 5.

Let's factor 60: 60=22×3×560 = 2^2 \times 3 \times 5.

The troublesome factor is 33. If the 33 is not canceled out by the numerator nn, the decimal will be non-terminating.

For the fraction to terminate, the 33 must cancel out. This happens if and only if nn is a multiple of 33.

How many multiples of 33 are there between 1 and 59?

59÷3=19.6659 \div 3 = 19.66, so there are 1919 multiples of 33.

These 19 fractions will terminate.

The remaining fractions will not terminate.

Total fractions = 59.

Non-terminating fractions = 59−19=4059 - 19 = 40.

Takeaway: To find non-terminating decimals in a sequence, identify the 'rogue' prime factors in the denominator and count how many numerators fail to cancel them out.

Practice questions

Question 1 · CAT Level

For how many positive integers n≤100n \le 100 is the rational number

R(n)=n2−1n3−n2+n−1R(n) = \frac{n^2 - 1}{n^3 - n^2 + n - 1}

a terminating decimal?

  1. A

    2

  2. B

    3

  3. C

    4

  4. D

    5

Show answer and explanation

Answer: (B) 3

Factoring the numerator and denominator gives R(n)=(n−1)(n+1)(n−1)(n2+1)=n+1n2+1R(n) = \frac{(n-1)(n+1)}{(n-1)(n^2+1)} = \frac{n+1}{n^2+1} for all integers n≥2n \ge 2 (n=1n=1 is undefined).

The greatest common divisor is gcd⁡(n+1,n2+1)=gcd⁡(n+1,(n+1)(n−1)+2)=gcd⁡(n+1,2)∈{1,2}\gcd(n+1, n^2+1) = \gcd(n+1, (n+1)(n-1)+2) = \gcd(n+1, 2) \in \{1, 2\}.

If nn is even, gcd⁡(n+1,2)=1\gcd(n+1, 2) = 1, so n2+1n^2+1 must have prime factors only from {2,5}\{2, 5\}; since n2+1n^2+1 is odd, n2+1=5kn^2+1 = 5^k, yielding only n=2n = 2 (22+1=52^2+1=5).

If nn is odd, gcd⁡(n+1,2)=2\gcd(n+1, 2) = 2, so the reduced denominator is n2+12\frac{n^2+1}{2}, which must equal 5k5^k (since n2+1≡2(mod4)n^2+1 \equiv 2 \pmod 4).

This requires n2+1=2×5kn^2 + 1 = 2 \times 5^k, giving n=3n = 3 (k=1,32+1=10k=1, 3^2+1=10) and n=7n = 7 (k=2,72+1=50k=2, 7^2+1=50), with no further integer solutions for n≤100n \le 100.

Hence, exactly 33 integers (n∈{2,3,7}n \in \{2, 3, 7\}) yield terminating decimals.

Question 2 · CAT Level

How many irreducible fractions pq∈(0,1)\frac{p}{q} \in (0, 1) with denominator q≤100q \le 100 have a decimal representation that is a mixed recurring decimal with exactly 22 non-repeating digits and a repetend (repeating block) of length 11?

  1. A

    56

  2. B

    64

  3. C

    72

  4. D

    80

Show answer and explanation

Answer: (C) 72

A fraction pq\frac{p}{q} in lowest terms has aa non-repeating digits and period length bb if q=2α5β×kq = 2^\alpha 5^\beta \times k where gcd⁡(k,10)=1\gcd(k, 10) = 1, max⁡(α,β)=a\max(\alpha, \beta) = a, and ordk(10)=b\text{ord}_k(10) = b.

Here a=2a = 2, so max⁡(α,β)=2\max(\alpha, \beta) = 2, meaning 2α5β∈{4,20,25,50,100}2^\alpha 5^\beta \in \{4, 20, 25, 50, 100\}.

The repetend length is b=1b = 1, which requires k>1k > 1 and k∣(101−1)=9k \mid (10^1 - 1) = 9, hence k∈{3,9}k \in \{3, 9\}.

Subject to q=2α5β×k≤100q = 2^\alpha 5^\beta \times k \le 100, the valid denominators are: for k=3k=3, q∈{12,60,75}q \in \{12, 60, 75\}; for k=9k=9, q∈{36}q \in \{36\}.

For each valid qq, the number of irreducible fractions pq∈(0,1)\frac{p}{q} \in (0, 1) equals Euler’s totient ϕ(q)\phi(q).

Summing the counts: ϕ(12)=4\phi(12) = 4, ϕ(36)=12\phi(36) = 12, ϕ(60)=16\phi(60) = 16, and ϕ(75)=40\phi(75) = 40, giving a total of 4+12+16+40=724 + 12 + 16 + 40 = 72.

Question 3 · CAT Level

Let x=0.abc‾x = 0.a\overline{bc} be a mixed recurring decimal, where a,b,ca, b, c are decimal digits with a≥1a \ge 1. When xx is expressed as an irreducible fraction pq\frac{p}{q} in lowest terms, it is found that p+q=245p + q = 245. What is the value of the three-digit number 100a+10b+c100a + 10b + c?

  1. A

    237

  2. B

    248

  3. C

    273

  4. D

    327

Show answer and explanation

Answer: (A) 237

Converting the mixed recurring decimal gives x=100a+10b+c−a990=99a+10b+c990=pqx = \frac{100a + 10b + c - a}{990} = \frac{99a + 10b + c}{990} = \frac{p}{q}.

Let g=gcd⁡(99a+10b+c,990)g = \gcd(99a + 10b + c, 990); then p=99a+10b+cgp = \frac{99a + 10b + c}{g} and q=990gq = \frac{990}{g}, so p+q=99a+10b+c+990g=245p + q = \frac{99a + 10b + c + 990}{g} = 245.

This implies 99a+10b+c+990=245g99a + 10b + c + 990 = 245g. Since 99≤99a+10b+c≤98199 \le 99a + 10b + c \le 981, we have 1089≤245g≤19711089 \le 245g \le 1971, giving g∈[5,8]g \in [5, 8].

Since gg must divide 990990, the possible divisors in range are g=5g = 5 or g=6g = 6.

If g=6g = 6, 99a+10b+c=245(6)−990=48099a + 10b + c = 245(6) - 990 = 480, but gcd⁡(480,990)=30≠6\gcd(480, 990) = 30 \ne 6, which is invalid.

If g=5g = 5, 99a+10b+c=245(5)−990=23599a + 10b + c = 245(5) - 990 = 235, which uniquely gives a=2a = 2 and 10b+c=235−198=3710b + c = 235 - 198 = 37 (b=3,c=7b = 3, c = 7).

Thus, gcd⁡(235,990)=5\gcd(235, 990) = 5, giving pq=47198\frac{p}{q} = \frac{47}{198} with 47+198=24547 + 198 = 245, and the three-digit number is 237237.

Question 4 · CAT Level

For how many positive integers n≤500n \le 500 is the decimal expansion of

nn+120\frac{n}{n + 120}

a terminating decimal?

  1. A

    14

  2. B

    16

  3. C

    18

  4. D

    20

Show answer and explanation

Answer: (C) 18

Rewrite the fraction as nn+120=1−120n+120\frac{n}{n+120} = 1 - \frac{120}{n+120}. It terminates if and only if 120d\frac{120}{d} terminates, where d=n+120∈[121,620]d = n+120 \in [121, 620].

Let g=gcd⁡(120,d)g = \gcd(120, d). The reduced denominator dg\frac{d}{g} must have prime factors restricted to {2,5}\{2, 5\}.

Since 120=23×3×5120 = 2^3 \times 3 \times 5, any prime factor of dd other than 2,3,52, 3, 5 cannot be cancelled, and 33 can have an exponent of at most 11.

Therefore, dd must be of the form 2a⋅5b⋅3c2^a \cdot 5^b \cdot 3^c with c∈{0,1}c \in \{0, 1\}.

For c=0c = 0, d=2a⋅5b∈[121,620]d = 2^a \cdot 5^b \in [121, 620] yields 1010 values: {125,128,160,200,250,256,320,400,500,512}\{125, 128, 160, 200, 250, 256, 320, 400, 500, 512\}.

For c=1c = 1, d3=2a⋅5b∈[41,206]\frac{d}{3} = 2^a \cdot 5^b \in [41, 206] yields 88 values: d∈{150,192,240,300,375,384,480,600}d \in \{150, 192, 240, 300, 375, 384, 480, 600\}.

Combining both disjoint cases gives 10+8=1810 + 8 = 18 valid integers nn.

Question 5 · CAT Level

Let xx and yy be positive integers such that the fraction xy\frac{x}{y} lies strictly between two recurring decimals:

0.218‾<xy<0.219‾0.2\overline{18} < \frac{x}{y} < 0.2\overline{19}

What is the minimum possible value of the denominator yy?

  1. A

    28

  2. B

    32

  3. C

    37

  4. D

    45

Show answer and explanation

Answer: (B) 32

Convert both bounds: 0.218‾=218−2990=216990=12550.2\overline{18} = \frac{218 - 2}{990} = \frac{216}{990} = \frac{12}{55}, and 0.219‾=219−2990=2179900.2\overline{19} = \frac{219 - 2}{990} = \frac{217}{990}.

We require 1255<xy<217990\frac{12}{55} < \frac{x}{y} < \frac{217}{990}, or taking reciprocals, 990217<yx<5512\frac{990}{217} < \frac{y}{x} < \frac{55}{12}.

Writing as mixed fractions: 4+122217<yx<4+7124 + \frac{122}{217} < \frac{y}{x} < 4 + \frac{7}{12}, so 122217<y−4xx<712\frac{122}{217} < \frac{y - 4x}{x} < \frac{7}{12}.

Inverting with k=y−4x>0k = y - 4x > 0: 127<xk<217122  ⟹  1+57<xk<1+95122\frac{12}{7} < \frac{x}{k} < \frac{217}{122} \implies 1 + \frac{5}{7} < \frac{x}{k} < 1 + \frac{95}{122}, giving 57<x−kk<95122\frac{5}{7} < \frac{x-k}{k} < \frac{95}{122}.

Inverting once more: 12295<kx−k<75  ⟹  1.284<kx−k<1.400\frac{122}{95} < \frac{k}{x - k} < \frac{7}{5} \implies 1.284 < \frac{k}{x - k} < 1.400.

For the minimal positive integer x−kx - k, trying x−k=1,2x - k = 1, 2 yields no integer kk, while x−k=3x - k = 3 gives k=4k = 4, hence x=7x = 7.

Finally, y=4x+k=4(7)+4=32y = 4x + k = 4(7) + 4 = 32, which yields 732=0.21875\frac{7}{32} = 0.21875, cleanly between 0.218‾≈0.218180.2\overline{18} \approx 0.21818 and 0.219‾≈0.219190.2\overline{19} \approx 0.21919.

Study this concept with interactive practice in PrepSoc.

Open the concept library