Arithmetic and NumbersMathematics · Book 1
0 / 0

Shelves / Arithmetic and Numbers

AN·06

Fractions

What a fraction is (a part, a point, a division, a scale factor) and why those are the same thing; equivalent fractions and lowest terms; comparing; adding with a common denominator and why you can't add the bottoms; multiplying as area; dividing by flipping, and why it works; and Egyptian unit fractions, computed exactly.

35 topics · ~26 min read · 15-question quiz
Updated Suggest a correction

Start here

What this chapter answers

What does 34 actually mean, and why is it the same as 3÷4? Why are 68 and 34 equal? Why is 12+13 not 25, and when does 25 turn out to be the right answer to a different question? Why does "of" mean multiply? Why do you flip and multiply to divide, and why does dividing by a half double things? And why does a computer get 110×3 slightly wrong when Python's Fraction gets it exactly right?

A fraction in one picture

Cut a chocolate bar into 4 equal pieces and take 3. You have 34 of the bar. The bottom number, the denominator, names the size of the pieces (quarters); the top number, the numerator, counts how many you have. Equal is essential: three of four unequal pieces isn't three quarters of anything.

Now share 3 bars equally among 4 people. Cut each bar into quarters, and give each person one quarter of each bar: everyone gets 3 quarters, 34 of a bar. So 34 is also 3 divided by 4. That coincidence isn't one, and it's what makes fractions numbers you can calculate with.

What a fraction is

Four readings of one number

34 can be read four ways, and fluent use of fractions means moving between them:

  • A part of a whole: 3 of 4 equal parts.
  • A division: 3÷4, the share each of 4 people gets from 3 wholes.
  • A point on the number line: split the stretch from 0 to 1 into 4 equal steps and take 3 of them.
  • A scale factor (an operator): 34 of 20 is 15: shrink to three quarters. Chapter 8 calls this a ratio.

This definition is chapter 1's definition of division, so ab and a÷b are the same number by definition, and it explains the others: b pieces of size 1b make one whole, so a such pieces are ab. Fractions are the numbers that make every division of whole numbers (except by zero) possible.

Proper, improper and mixed

A proper fraction has numerator less than denominator, so it's less than 1. An improper fraction has numerator at least the denominator: 114 is eleven quarters, more than two wholes. Writing it as a whole number and a proper fraction gives a mixed number: 114 =234, because 11=2×4+3. That's the division algorithm: the quotient is the whole part, the remainder the numerator. Going back: 234 =2×4+34 =114.

Improper fractions are usually easier to calculate with; mixed numbers are easier to picture ("two and three-quarter cups").

Equivalent fractions

Same amount, different pieces

Cut each quarter of the bar in half. The 3 quarters you had are now 6 eighths, and you have exactly as much chocolate: 34=68. In general, multiplying the numerator and denominator by the same number gives an equal fraction: the pieces become k times smaller and there are k times as many.

Lowest terms

Going the other way, dividing numerator and denominator by a common factor, is simplifying. Dividing by their greatest common divisor (chapter 5) does it in one step and leaves a fraction in lowest terms, whose numerator and denominator are coprime: 84120 =84÷12120÷12 =710.

Every fraction has exactly one lowest-terms form. If ab=cd with both in lowest terms, then ad=bc; a divides bc and shares no prime with b, so every prime of a is in c (unique factorisation): a∣c. By the same argument c∣a, so a=c and then b=d. That's why "simplify" has a single right answer.

Comparing fractions

Same denominator, or same numerator

With the same denominator, the pieces are the same size: compare numerators (58>38). With the same numerator, you have the same number of pieces: the one with smaller pieces, the bigger denominator, is smaller (38<35).

Anything else: a common denominator

Rewrite both fractions with a common denominator and compare numerators. 58 or 35? With 40ths: 2540 against 2440, so 58 is larger, by 140. The shortcut is cross-multiplying: ab<cd exactly when ad<bc (for positive denominators), because ad and bc are the numerators over the common denominator bd.

Quick checks help too: compare with 12 (is the numerator more or less than half the denominator?) or with 1 (how far short of a whole?). 78 and 89 are each one piece short of 1, and ninths are smaller pieces, so 89 is closer to 1 and larger.

Between any two fractions

Between two different fractions there's always another, for example their average. So there's no "next" fraction after 12: fractions are dense on the number line. Chapter 12 shows that even so, they don't fill it.

Adding and subtracting

Same denominator: add the pieces

38+28 =58. Three eighths and two eighths are five eighths, exactly as three apples and two apples are five apples. The denominator names the kind of piece, so it stays.

Different denominators: make the pieces the same

You can't add thirds to quarters until they're the same size of piece. Rewrite both over a common denominator, ideally the least common multiple (chapter 5):

23+14=812+312=1112,56−34=1012−912=112.

Any common denominator works (the product bd always does), and the answer is the same after simplifying; the lcm keeps the numbers small. The general formula is

ab+cd=ad+bcbd.

Why not add the tops and the bottoms?

12+13 is not 25: half a bar plus a third of a bar is more than half a bar, and 25 is less. The correct answer is 56.

But 25, the mediant, is the right answer to a different question. If a batter scores 1 run off 2 balls in one match and 1 off 3 in the next, the combined record is 2 runs off 5 balls: 1+12+3. Combining two ratios of counts adds tops and bottoms; adding two amounts doesn't. The mediant always lies between the two fractions, closer to the one with more behind it, which is why an overall average can surprise you; chapter 8 shows how it can even reverse a comparison.

Mixed numbers

Add whole parts and fraction parts separately, then tidy: 234+112 =3+34+24 =3+54 =414. For subtraction, borrow a whole when the fraction part is short, exactly as in chapter 3: 314−134 =254−134 =124 =112.

Multiplying

"Of" means times

34 of 20 is 15: split 20 into 4 equal parts (5 each) and take 3. That's 20÷4×3, and it's what 34×20 means: scaling by 34. So "a fraction of" a quantity is multiplication, which is why the word "of" in problems so often signals ×.

Multiplying two fractions: area

Chapter 1 promised to show why multiplication of fractions still commutes, when "half a row" isn't a row. The picture that survives is area. Take a square of side 1. Mark 23 of the way across and 45 of the way up. The rectangle 23 wide and 45 tall has area 23×45.

Interactive diagram: Multiplying fractions as area: 2/3 × 4/5. It needs JavaScript; the text around it says the same.

The marks cut the square into 3×5=15 equal small rectangles, each of area 115. The shaded rectangle covers 2×4=8 of them. So

23×45=2×43×5=815.

In general ab×cd =acbd: multiply the tops, multiply the bottoms. Turning the square on its side swaps the two lengths and leaves the area alone, so ab×cd =cd×ab: the rule survives, because the area picture works where the rows-and-columns picture didn't.

Multiplying makes smaller, sometimes

Multiplying by a fraction less than 1 shrinks: 12×8=4. Chapter 1's warning ("multiplication always makes bigger") fails exactly here. Multiplying by an improper fraction greater than 1 enlarges, and by 1 (in any form, like 55) leaves the number alone, which is the equivalent-fractions rule again.

Dividing

How many halves in 3?

Chapter 1's grouping story asks: 3÷12 means "how many halves fit into 3?" Each whole holds two halves, so 3 holds 6. Dividing by 12 doubles. In general, dividing by a fraction less than 1 gives a bigger answer, because small pieces fit in more times.

34÷38: how many three-eighths fit into three-quarters? 34=68, which is two lots of 38: the answer is 2. With a common denominator, dividing fractions is dividing numerators: 68÷38 =6÷3.

Why "flip and multiply" works

The usual rule: ab÷cd =ab×dc. Two ways to see it:

  1. From the definition of division. ab÷cd is the number that multiplied by cd gives ab. Try ab×dc: multiplying it by cd gives ab×dc×cd =ab×dccd =ab. It works, and division has only one answer, so that's the answer.
  2. From a common denominator. Over the denominator bd, ab =adbd and cd =bcbd, so the quotient is adbc, which is ab×dc.

dc is the reciprocal of cd: the number that multiplies it to give 1. Dividing by a number is multiplying by its reciprocal. Zero has no reciprocal (nothing times 0 is 1), which is chapter 1's division by zero again.

Sharing by a fraction

The sharing story needs rewording but still works: "34 of a tank holds 12 litres; how much does the whole tank hold?" is 12÷34 =12×43 =16 litres. Dividing by 34 answers "if this is three quarters, what is the whole?"

Lab: exact fractions in code

Experiment 1: exact versus approximate

Python's fractions.Fraction stores a numerator and denominator as whole numbers and keeps them in lowest terms, so its arithmetic is exact. Ordinary decimals (float) are approximations in binary.

Python
from fractions import Fraction as F
third = F(1, 3)
print(third + third + third, third + third + third == 1)
print(1/3 + 1/3 + 1/3 == 1, 0.1 * 3 == 0.3, F(1, 10) * 3 == F(3, 10))
print(F(6, 8), F(84, 120), F(3, 4) / F(1, 2), F(2, 3) * F(4, 5))
print(F(1, 2) + F(1, 3), F(1, 2) - F(1, 3), F(3, 4) / F(3, 8))
print(F("0.125"), F(0.1))
Text
1 True
True False True
3/4 7/10 3/2 8/15
5/6 1/6 2
1/8 3602879701896397/36028797018963968

Every fraction comes out in lowest terms automatically (F(84, 120) is 7/10: the gcd at work). The second line is instructive: in floating point, 13+13+13 happens to round back to exactly 1, but 0.1×3 does not round to 0.3. Neither result can be trusted without knowing how the rounding falls; the Fraction results are exact every time. The last line shows what the float written 0.1 really is: the fraction with denominator 255 nearest to 110. (Chapter 7 explains why no binary fraction equals it.)

Experiment 2: Egyptian fractions

Fibonacci's method for writing a fraction as different unit fractions: take the largest unit fraction that fits, and repeat with what's left. What's left always has a smaller numerator, so the process ends.

Python
from fractions import Fraction as F
import math

def egyptian(q):
    """Fibonacci's greedy method: take the largest unit fraction that fits, repeat on what's left."""
    out = []
    while q > 0:
        n = math.ceil(1 / q)          # smallest n with 1/n <= q
        out.append(n)
        q -= F(1, n)
    return out

for q in (F(4, 5), F(2, 3), F(7, 15), F(5, 121)):
    parts = egyptian(q)
    print(f"{str(q):>6} = " + " + ".join(f"1/{n}" for n in parts))
Text
   4/5 = 1/2 + 1/4 + 1/20
   2/3 = 1/2 + 1/6
  7/15 = 1/3 + 1/8 + 1/120
 5/121 = 1/25 + 1/757 + 1/763309 + 1/873960180913 + 1/1527612795642093418846225

It always works, but not always well: 5121 produces a denominator with 25 digits, while 5121 =133+1121+1363 also works. Egyptian scribes chose their decompositions by skill and tables, not by this rule. The greedy method is a reminder that "an algorithm that always finishes" and "a good answer" are different things.

Experiment 3: exact answers can get big

Python
from fractions import Fraction as F
h = F(0)
for n in range(1, 101):
    h += F(1, n)
    if n in (5, 10, 20, 50, 100):
        print(f"H_{n:<3} = {float(h):.6f}   denominator has {len(str(h.denominator)):>2} digits")
print(F(1, 1) + F(1, 2) + F(1, 3) + F(1, 4) + F(1, 5))
Text
H_5   = 2.283333   denominator has  2 digits
H_10  = 2.928968   denominator has  4 digits
H_20  = 3.597740   denominator has  8 digits
H_50  = 4.499205   denominator has 22 digits
H_100 = 5.187378   denominator has 40 digits
137/60

The sum 1+12+13+⋯+1n (the harmonic number Hn) grows very slowly, past 5 only at n=83, but its exact denominator grows fast: 40 digits by n=100, because the common denominator must include every prime up to n. That's the price of exactness. It's why fractions are perfect for money, recipes and anything with a few steps, and why long numerical computations use floating point and manage the rounding instead.

Experiment 4: two ways to combine fractions

Python
from fractions import Fraction as F
# Two matches: 45 runs off 30 balls, then 20 runs off 25 balls. Strike rates per ball:
a, b = F(45, 30), F(20, 25)
combined = F(45 + 20, 30 + 25)
print("rates", a, b, " combined", combined, "=", round(float(combined), 4), " average of rates", (a + b) / 2)
print("1/2 + 1/3 =", F(1, 2) + F(1, 3), "  the mediant (1+1)/(2+3) =", F(2, 5))
Text
rates 3/2 4/5  combined 13/11 = 1.1818  average of rates 23/20
1/2 + 1/3 = 5/6   the mediant (1+1)/(2+3) = 2/5

The batter's overall rate, 65 runs off 55 balls, is the mediant 45+2030+25 =1311, not the average of the two rates (2320), because the first match had more balls behind it. Adding the fractions themselves, 12+13, is a third, different operation. Which one is right depends entirely on what the fractions stand for.

Worked examples

A recipe, scaled

Adding with the lcm

Dividing, and checking it makes sense

Exercises

Practice

  1. Write each as a mixed number or an improper fraction: (a) 175; (b) 1007; (c) 329; (d) 1013.
  2. Simplify to lowest terms: (a) 4560; (b) 126294; (c) 10011430.
  3. Which is larger? (a) 57 or 710; (b) 1112 or 1213; (c) 37 or 49.
  4. Calculate: (a) 35+14; (b) 78−23; (c) 123+256; (d) 415−234.
  5. Calculate: (a) 56×910; (b) 38 of 56; (c) 212×115.
  6. Calculate: (a) 4÷23; (b) 56÷512; (c) 910÷3.
  7. Find a fraction between 35 and 23 in two different ways.
Answers
  1. (a) 325; (b) 1427; (c) 299; (d) 313.
  2. (a) 34 (gcd 15); (b) 37 (gcd 42); (c) 710 (gcd 143).
  3. (a) 57: 5×10 =50>49 =7×7. (b) 1213: each is one piece short of 1, and thirteenths are smaller. (c) 49: 3×9 =27<28 =7×4.
  4. (a) 1720; (b) 524; (c) 412; (d) 1920.
  5. (a) 34; (b) 21; (c) 52×65 =3.
  6. (a) 6; (b) 2; (c) 310.
  7. The average: 12(915+1015) =1930. The mediant: 3+25+3 =58. Check with 120ths: 35 =72120, 58 =75120, 1930 =76120, 23 =80120.

Harder

  1. Prove that if ab<cd (all positive), the mediant a+cb+d lies strictly between them.
  2. A tank is 13 full. After 20 litres are added it is 34 full. How much does it hold?
  3. Explain with a picture or the grouping story why 12÷14 =2 and 14÷12 =12.
  4. Someone simplifies a+ba+c to bc. Find values for which this is wrong, and values for which it happens to be right. When exactly is it right?
  5. Show that 1n−1n+1 =1n(n+1), and use it to find 11×2+12×3+⋯+199×100 without adding 99 fractions.
Answers
  1. ab<cd means ad<bc. Then a(b+d) =ab+ad<ab+bc =b(a+c), so ab<a+cb+d. Similarly (a+c)d =ad+cd<bc+cd =c(b+d), so a+cb+d<cd.
  2. The 20 litres fill 34−13 =512 of the tank, so the tank holds 20÷512=48 litres.
  3. A half contains two quarters, so two quarters fit into a half: 2. A half doesn't fit into a quarter even once; half of it does, so the answer is 12.
  4. 1+21+3 =34, not 23. It's right when a+ba+c =bc, that is c(a+b)=b(a+c), ca=ba: when a=0 or b=c. Any other "cancellation" of added terms is an error.
  5. 1n−1n+1 =(n+1)−nn(n+1) =1n(n+1). So the sum is (1−12)+(12−13)+⋯+(199−1100); everything cancels except 1−1100 =99100.

Challenge

  1. Every fraction between 0 and 1 can be written as a sum of different unit fractions (the lab's method proves it). Prove that the greedy method always stops: if ab is not a unit fraction and 1n is the largest unit fraction below it, show that ab−1n has a numerator smaller than a (before simplifying).
Discussion

n is the smallest whole number with 1n≤ab, so 1n−1>ab, that is b>a(n−1)=an−a, so an−b<a. Now ab−1n =an−bbn, whose numerator an−b is less than a (and positive, since 1n<ab when ab isn't itself a unit fraction). Numerators are whole numbers that strictly decrease, so after at most a steps the numerator reaches 1 and the process ends with a unit fraction. The unit fractions are all different because each remainder is smaller than the unit fraction just taken, so the next one taken is smaller still.

In real life

Misconceptions and limits

The model to keep

Common misconceptions

Misconception What's actually true Where it's shown
"12+13 =25." Unlike pieces must be made alike first: 56. 25 is the mediant, which combines records, not amounts. Why not add the tops and the bottoms?
"A bigger denominator means a bigger fraction." A bigger denominator means smaller pieces: 18<15. Same denominator, or same numerator
"Multiplying always makes bigger; dividing always makes smaller." By a fraction less than 1, multiplying shrinks and dividing enlarges: 3÷12=6. How many halves in 3?
"You can cancel any matching digits or terms." Only common factors of the whole numerator and denominator cancel; 2+32+5≠35. Lowest terms
"Flip and multiply is just a rule to memorise." It follows from the definition of division, or from a common denominator. Why "flip and multiply" works
"The average of two rates is the overall rate." Combining records gives the mediant, weighted by how much is behind each rate. Experiment 4: two ways to combine fractions
"A fraction is part of a pizza, so it can't be bigger than 1." Improper fractions are bigger than 1, and fractions are also divisions, points and scale factors. Four readings of one number

Limits and trade-offs

  • Fractions don't cover the number line. Between any two fractions lies another, yet some lengths, such as the diagonal of a unit square, are no fraction at all (chapter 12).
  • Exact fractions grow. Long chains of fraction arithmetic produce huge numerators and denominators (Experiment 3); numerical work uses decimals and controls the rounding instead.
  • Fractions here are positive. Negative fractions follow the same rules with the sign rules of chapter 9.

Revision sheet

Key ideas

  • ab = a÷b: the number that times b gives a. Part, division, point, scale factor.
  • Mixed ↔ improper is the division algorithm: 114 =234.
  • Equivalent: ab =kakb; ab =cd⟺ad =bc. Lowest terms: divide by the gcd; unique.
  • Compare by common denominator or cross-multiplying; benchmarks 12 and 1.
  • Add/subtract: common denominator (lcm best): ab+cd =ad+bcbd. Never add the bottoms.
  • Mediant a+cb+d combines records; lies between the two.
  • Multiply: tops × tops, bottoms × bottoms (area). "Of" means ×. Cancel common factors first.
  • Divide: multiply by the reciprocal. Dividing by a fraction below 1 enlarges.
  • Fractions are dense: always another between two.

Glossary

  • Fraction: a number ab (b≠0), the number that multiplied by b gives a.
  • Numerator: the top number of a fraction; how many pieces.
  • Denominator: the bottom number; what size of piece (into how many equal parts the whole is split).
  • Unit fraction: a fraction with numerator 1.
  • Proper fraction: numerator less than denominator; less than 1.
  • Improper fraction: numerator at least the denominator; 1 or more.
  • Mixed number: a whole number and a proper fraction written together, such as 234.
  • Equivalent fractions: fractions that name the same number, like 34 and 68.
  • Lowest terms: a fraction whose numerator and denominator are coprime.
  • Common denominator: a denominator shared by two or more fractions after rewriting; the lcm of their denominators is the least.
  • Reciprocal: the number that multiplies a given non-zero number to give 1; for cd it is dc.
  • Mediant: a+cb+d for fractions ab and cd; it lies between them.
  • Egyptian fraction: a sum of different unit fractions.