Set up your courses
Pick the courses you're taking and this page shows only those. About 30 seconds.
Math, one idea at a time.
Calculus, linear algebra and proofs in four-minute lessons. Predict first, then see why. Every answer gets an explanation.
Start the first lessonNo sign-up. Your progress saves on this device, and you can keep it later with an email.
How do you want to learn math?
Same core lessons either way. The plan adds its own extra lessons. Change it any time.
Know some discrete math already?
Answer about 10 questions and skip the units you know. New to it? Start with the first lesson below.
Counting: sum and product rules
Count lists with and without repetition, add disjoint cases, count "at least one" by complement, count subsets and bit strings as 2ⁿ, and size address spaces with reserved blocks removed.
Formulas: Counting: sum and product rulesPermutations, combinations, binomial theorem
Count arrangements and divide out symmetries, choose subsets with C(n, k), expand (a + b)ⁿ, count multisets with stars and bars, and tell which of the four formulas a problem needs.
Pigeonhole, inclusion–exclusion
Show that some box must be shared or crowded with the pigeonhole principle and ⌈n/k⌉, count unions of overlapping sets by inclusion–exclusion, count derangements, and see why no lossless compressor shrinks every file.
Recurrences and generating functions
Set up a recurrence by splitting on the first choice, solve two-term and non-homogeneous recurrences in closed form, read counts off generating functions, prove closed forms by strong induction, and size how fast a one-line digital filter settles.
Graphs: degree, paths, connectivity
Read degrees and use the handshake lemma, decide connectivity with the n − 1 edge bound, find Euler paths and circuits from the odd-degree count, count Hamilton tours as (n − 1)!/2, count walks with powers of the adjacency matrix, and prove that an odd cycle blocks a 2-coloring.
Trees and graph algorithms
Count the edges and leaves of trees, run breadth-first and depth-first search, find minimum spanning trees with Kruskal and Prim, find shortest weighted paths with Dijkstra, size binary searches as ⌈log₂(n + 1)⌉, and prove by removing a leaf that a tree on n vertices has n − 1 edges.
Discrete probability
Count equally likely outcomes to find probabilities, use complements for "at least one" and the birthday problem, condition on an event, test independence and tell it from exclusivity, reverse a conditional with Bayes and base rates, find expected values by linearity, and size bit errors and packet loss with (1 − p)ⁿ.
Boolean algebra and logic circuits
Simplify Boolean expressions with laws that differ from number algebra, apply De Morgan's laws and build any gate from NAND, turn a truth table into a sum of products and shrink it with a Karnaugh map, build half, full and ripple-carry adders, and read bit tricks in C as Boolean algebra.
Asymptotics and big-O
Count the steps of loops and nested loops, show f = O(g) with a witness C and n₀ and tell O, Ω and Θ apart, rank growth rates and find where a cheaper-looking algorithm stops winning, solve divide-and-conquer recurrences by unrolling, turn a step count into time on an MCU's clock, and prove that a bound fails by negating the definition.