HTW Berlin Medieninformatik

HTW Berlin
Fachbereich 4
Internationaler Studiengang
Internationale Medieninformatik (Bachelor)
Aktuelles - Medien: Kryptographie
Winter Term 2010/11

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. Your report is due next Wednesday at 23.00!


Copyright 2010 Dr. Hermann Thiel & Prof. Dr. Debora Weber-Wulff - All rights reserved.
Questions or comments: <weberwu@htw-berlin.de>

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