Tutorials Week 7
Tutorials Week 7
1
Lecturer: Dr Nguyen Hieu Thao
Email: [email protected]
11. Consider the base 6 number system using the six symbols A, B, C, D, E and F , which
represent the values 0, 1, 2, 3, 4 and 5, respectively.
1 Most of the content of this document is taken from the book [1].
2
12. Let S be the set of all nonempty strings on the alphabet {0, 1}, each of which represents a
binary number. Consider the function f : S → S given by
(a) Compute the string value f (0101010). What is the decimal value of the binary number
represented by f (0101010)?
(b) Is f an injective and/or a surjective? Justify your answers.
replaced correspondingly by
16. Assume that for an RSA public-key crptosystem, we choose primes p = 17, q = 23 and
e = 31. Refer to the notation system in Notes Week 7.
(a) Compute n.
(b) Compute φ(n).
(c) Compute d.
(d) Encrypt 101 using the public key (e, n).
(e) Decrypt 250 using the private key (d, n).
17. Prove the correctness of RSA public-key cryptosystem - the theorem in Notes Week 7.
References
1. Johnsonbaugh, R.: Discrete Mathematics - Eighth Edition. Pearson Education, New York
(2018).