Skip to content

the part that ends up biggest

foundations

the puzzle

A job takes 5n2+200n+15005n^2 + 200n + 1500 steps. Which of its three parts is biggest for 5 items, for 20, and for 80?

a worked example

Work out each part at each size.

  1. At n=5n = 5 the parts are 125, 1000 and 1500. The fixed 1500 is biggest.
  2. At n=20n = 20 they are 2000, 4000 and 1500. Now 200n200n leads.
  3. At n=80n = 80 they are 32000, 16000 and 1500. Now 5n25n^2 leads, 2 times 200n200n.
  4. The two are equal when 5n2=200n5n^2 = 200n. Divide both sides by nn, which is not 0, and 5n=2005n = 200, so n=40n = 40. Past 40 the square part stays ahead.
stepsitems010,00020,00030,00040,000020406080stepsitems010,00020,00030,00040,000020406080
  • 5n25n^2
  • 200n200n
  • the fixed 1500
The fixed 1500 leads only up to n=7n = 7, too near 0 to see here. Then 200n200n leads up to 40, and past 40, 5n25n^2 stays on top.

how it works

Why must the square part win? Divide it by 200n200n: 5×n×n200×n=n40\frac{5 \times n \times n}{200 \times n} = \frac{n}{40}.

nn5n25n^2200n200n5n2÷200n5n^2 \div 200n
40800080001
8032000160002
160128000320004
320512000640008
Each doubling of nn doubles how many times bigger 5n25n^2 is than 200n200n.

That never stops growing: 1 at 40, 10 at 400. So the last column below doubles each time nn does.

in symbols

Each formula in this list ends up bigger than the one before it, that is, bigger from some size on and for good.

11, then log⁡2 n\log_2\, n, then nn, then n log⁡2 nn \,\log_2\, n, then n2n^2, then n3n^3, then 2n2^n.

Here 11 stands for any fixed count, like the 1500.

n log⁡2 nn \,\log_2\, n is nn times log⁡2 n\log_2\, n, past nn but far short of n2n^2. At n=32n = 32 it is 32 times 5, against 32 times 32 for n2n^2.

No fixed power of nn, like n3n^3 or n8n^8, keeps up with 2n2^n. Adding 1 to nn doubles 2n2^n, but n3n^3 grows by less than double once nn is 4 or more: 4 to 5 takes it from 64 to 125. n8n^8 does the same once nn is 12 or more.

The part latest in the list ends up biggest, whatever number stands in front of it, as 5n25n^2 beat 200n200n above. Lesson 7.4 says why the number in front does not matter.

formulaat n=16n = 16at n=32n = 32
1111
log⁡2 n\log_2\, n45
nn1632
n log⁡2 nn \,\log_2\, n64160
n2n^22561024
n3n^3409632768
2n2^n65536about 4.3 billion
Down the list, each formula pulls further ahead of the one above it as nn doubles.

your turn

Work each one out. Where there is a box, type your answer and check it. Each exercise's worked answer opens under it.

exercise 1

A count is 4n+9n3+500n24n + 9n^3 + 500n^2.

The part that ends up biggest:

A number, like 13, 9.5 or 19/2.

A number, like 13, 9.5 or 19/2.

worked answer
  1. The highest power is n3n^3, so 9n39n^3 ends up biggest.
  2. At n=10n = 10, 4n=404n = 40, 9n3=90009n^3 = 9000 and 500n2=50000500n^2 = 50000.
  3. Dividing both sides by the same number above 0 keeps the bigger side bigger: 12 is more than 8, and dividing both by 4, 3 is more than 2.
  4. So divide both sides by n2n^2, which is above 0. 9n39n^3 is more than 500n2500n^2 when 9n9n is more than 500.
  5. Divide both sides by 9. nn is more than 500÷9500 \div 9, about 55.6, so the first whole nn past it is 56.

Check it another way: At 56, 9×56=5049 \times 56 = 504, above 500. At 55, 9×55=4959 \times 55 = 495, below it.

exercise 2

Compare 2n2^n with n4n^4.

Bigger at n=10n = 10:

Bigger at n=20n = 20:

Ends up bigger:

worked answer
  1. At 10, 210=10242^{10} = 1024 and 104=1000010^4 = 10000, so n4n^4 is bigger.
  2. At 20, 220=10485762^{20} = 1048576 and 204=16000020^4 = 160000, so 2n2^n is bigger.
  3. Adding 1 to nn doubles 2n2^n. From 20 to 21, n4n^4 grows only from 160000 to 194481, less than double.
  4. Each later step multiplies n4n^4 by even less: 21 to 22 takes it from 194481 to 234256, about 1.2 times. So 2n2^n stays ahead.

Check it another way: No fixed power of nn keeps up with 2n2^n, n4n^4 included.

exercise 3

A count is 5000 log⁡2 n+n5000 \,\log_2\, n + n.

The part that ends up biggest:

A number, like 13, 9.5 or 19/2.

A number, like 13, 9.5 or 19/2.

worked answer
  1. nn comes after log⁡2 n\log_2\, n in the list, so nn ends up biggest, whatever the 5000.
  2. At 1024, log⁡2 1024=10\log_2\, 1024 = 10, so the log part is 5000×10=500005000 \times 10 = 50000, far more than 1024.
  3. At n=216=65536n = 2^{16} = 65536 the log part is 5000×16=800005000 \times 16 = 80000, still ahead. At n=217=131072n = 2^{17} = 131072 it is 5000×17=850005000 \times 17 = 85000, and nn has passed it.

Check it another way: 217=1310722^{17} = 131072, so log⁡2 131072=17\log_2\, 131072 = 17, and 85000 is less than 131072.

exercise 4

A count is n4+900n2n^4 + 900n^2.

A number, like 13, 9.5 or 19/2.

A number, like 13, 9.5 or 19/2.

For large nn, doubling nn multiplies the count by nearly:

worked answer
  1. At 5, n4=625n^4 = 625 and 900n2=22500900n^2 = 22500, so the count is 23125, mostly the 900n2900n^2 part.
  2. The parts are equal when n4=900n2n^4 = 900n^2. Divide both sides by n2n^2, which is not 0, and n2=900n^2 = 900.
  3. 30×30=90030 \times 30 = 900, so n=30n = 30.
  4. Past 30 the n4n^4 part takes over and soon is nearly all the count. Doubling nn multiplies n4n^4 by 24=162^4 = 16.

Check it another way: At 30 each part is 810000. From 80 to 160 the count goes from about 46.7 million to about 678.4 million, about 14.5 times, nearing 16.