HTW Berlin Medieninformatik

HTW Berlin
Fachbereich 4
Internationaler Studiengang
Internationale Medieninformatik (Bachelor)
Aktuelle Themen: Cryptography
Winter Term 2013/14

Lab 3: Chinese Remainder Theorem


The exercises this week have to do with applications of the Chinese Remainder Theorem.

  1. Six professors begin courses of lectures on Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, and announce their intentions of lecturing at intervals of two, three, four, one, six, and five days respectively. The regulations of the university forbids Sunday lectures (so that a Sunday lecture must be omitted). When first will all six professors find themselves compelled to omit a lecture together?
  2. Program a method to use the extended Euclidean algorithm for calculating the GCD of two numbers a and b. The result will be the gcd, and two values u and v such that ua + vb = gcd.
  3. Given are a, b, p, and q with p and q different prime numbers, a and b any two integers. Write a small program that calulates the following values:
    1. Determine a solution z for qz ≡ 1 mod p
    2. Compute y ≡ (a - b)z mod p
    3. Determine x = yq + b (changed from ≡ 30.10.2009 dww)

You may work in groups of two and submit the same report for both persons. The report is due the evening before your next lecture at 23.00!


Copyright 2013 Dr. Hermann Thiel & Prof. Dr. Debora Weber-Wulff – CC-BY-NC-SA

This material is jointly prepared by Dr. Hermann Thiel and Prof. Dr. Debora Weber-Wulff. Some of the material may come from other sources and is denoted by the copyright notices on the individual pages.