Professional Documents
Culture Documents
Cryptography – CS 507
Erkay Savas
Sabanci University
erkays@sabanciuniv.edu
Basic Notation
• Divisibility (of integers)
– Let a and b be integers with a ≠ 0. We say that a
divides b, if there is an integer k s.t. b = a · k.
– Denoted as a | b.
• Propositions
– For every a≠0, a | 0 and a | a. Also 1 | b for every b.
– If a | b and b | c, then a | c
– If a | b and a | c, then a | (s · b + t · c) for all s and t.
482 = 2 · 216 + 50
216 = 4 · 50 + 16
50 = 3 · 16 + 2
16 = 8 · 2 + 0
The last nonzero remainder is the gcd
1234 = (10011010010)2