Courses / Computer Science I
Discrete Mathematics

Mathematical Induction

Computer Science I 206 words Free to read

The Domino Principle

Mathematical induction proves statements for infinitely many natural numbers all at once, like 1+2++n=n(n+1)21 + 2 + \dots + n = \frac{n(n+1)}{2}. Think of a line of dominoes: if the first falls, and each falling domino knocks the next, all fall.

Induction requires two strictly enforced parts:

PartRoleAction
Base caseStarts the chainProve the statement for n=1n = 1 (or 00)
Inductive stepSpreads the chainProve n=k+1n = k+1 assuming n=kn = k

Neither part alone works: base without step proves only one value; step without base proves nothing.

A chain that actually falls, paired with the sum it proves as it goes

Variants and Pitfalls

Strong induction lets the inductive step assume the statement for all values up to kk, not just kk. This mirrors recursion in programming, where a base case and smaller step ensure termination.

PitfallWhy it fails
Missing base caseNever starts the chain of dominoes
Ignoring inductive hypothesisRe-proves k+1k+1 from scratch instead of assuming kk

The inductive hypothesis is your bridge. You must use the assumption for kk to establish k+1k+1.

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

10practice questions
2interactive scenes

Discrete Mathematics