Skip to main content
Till KTH:s startsida Till KTH:s startsida

SF1662 Discrete Mathematics 7.5 credits

Choose semester and course offering

Choose semester and course offering to see current information and more about the course, such as course syllabus, study period, and application information.


For course offering

Autumn 2024 Start 28 Oct 2024 programme students

Application code


Headings with content from the Course syllabus SF1662 (Autumn 2019–) are denoted with an asterisk ( )

Content and learning outcomes

Course contents

  • The Euclidian algorithm and Diophantine equations. The Euclidean algorithm for polynomials and Gaussian integers. The Fundamental theorem of arithmetic. Modular arithmetic. Fermat's theorem and RSA.
  • Recursion and proof by induction. Sets, functions, infinite sets and cardinal numbers. Elementary boolean algebra.
  • Combinatorics and probabilities. The addition and multiplication principles, the pigeonhole principle, binomial and multinomial numbers, Stirling numbers, the sieve principle.
  • Elementary group theory, cyclic groups, subgroups and cosets, the theorem of Lagrange. Permutations, the symmetric group.
  • Elementary graph theory, Eulerian and Hamiltonian graphs, trees, planar graphs, vertex colorings, matchings in bipartite graphs.

Intended learning outcomes

Efter the course the student is expected to be able

  • Apply definitions, theorems and methods, to solve, och present solutions to, problems within areas of Discrete Mathematics that are part of the course content.
  • To read and understand mathematical texts.

Literature and preparations

Specific prerequisites

Basic requirements. 

Recommended prerequisites

No information inserted


No information inserted


Announced no later than 4 weeks before the start of the course on the course web page.

Examination and completion

If the course is discontinued, students may request to be examined during the following two academic years.

Grading scale

A, B, C, D, E, FX, F


  • TEN1 - Examination, 7.5 credits, grading scale: A, B, C, D, E, FX, F

Based on recommendation from KTH’s coordinator for disabilities, the examiner will decide how to adapt an examination for students with documented disability.

The examiner may apply another examination format when re-examining individual students.

The examiner decides, in consultation with KTHs Coordinator of students with disabilities (Funka), about any customized examination for students with documented, lasting disability. The examiner may allow another form of examination for re-examination of individual students.

Opportunity to complete the requirements via supplementary examination

No information inserted

Opportunity to raise an approved grade via renewed examination

No information inserted


Ethical approach

  • All members of a group are responsible for the group's work.
  • In any assessment, every student shall honestly disclose any help received and sources used.
  • In an oral assessment, every student shall be able to present and answer questions about the entire assignment and solution.

Further information

Course room in Canvas

Registered students find further information about the implementation of the course in the course room in Canvas. A link to the course room can be found under the tab Studies in the Personal menu at the start of the course.

Offered by

Main field of study


Education cycle

First cycle

Add-on studies

No information inserted