Course Test · University: first two years
Discrete mathematics: test
Propositional logic and equivalences, inclusion–exclusion, permutations and combinations with repetition, derangements, linear recurrences, sums proved by induction, modular arithmetic, the Euclidean algorithm and Bézout, the Chinese remainder theorem, Euler circuits, shortest paths, spanning trees, Cayley's formula, equivalence relations, number bases and the pigeonhole principle.
Twenty exercises of the kind this course sets. Answers are on the independent answers page; the same exercises done with RatMath are on the RatMath answers page.
- 1.TautologyIs a tautology?
- 2.De MorganShow that .
- 3.Inclusion–exclusionHow many integers from 1 to 1000 are divisible by 3, 5 or 7?
- 4.Counting handsHow many five-card poker hands contain exactly two pairs?
- 5.Arrangements with repetitionHow many arrangements of the letters of MISSISSIPPI are there?
- 6.Stars and barsHow many solutions in non-negative integers has ?
- 7.DerangementsIn how many ways can 6 letters go into 6 envelopes with none in its own envelope?
- 8.Linear recurrenceSolve , , .
- 9.A sum proved by inductionFind a closed form for .
- 10.Modular exponentFind .
- 11.Euclid and BézoutFind and integers with .
- 12.Modular inverseFind the inverse of 17 modulo 43.
- 13.Chinese remainder theoremSolve , , .
- 14.Euler circuitsDoes have an Euler circuit? Does ?
- 15.Shortest pathEdges with weights: AB 4, AC 2, BC 1, BD 5, CD 8, CE 10, DE 2. Find the shortest path from A to E.
- 16.Minimum spanning treeFind the weight of a minimum spanning tree of the same graph.
- 17.Counting treesHow many labelled trees are there on 5 vertices?
- 18.Equivalence relationsIs an equivalence relation on ? If so, give its classes.
- 19.Number basesWrite 2026 in binary.
- 20.Pigeonhole principleHow many people must be in a room to be sure that three share a birth month?