CMPE552 Problem Session
... 1. Select two distinct prime numbers, p, and q. Let p=7, q=17. 2. Calculate N=pq=7x17=119. 3. Calculate ( N ) ( p 1)( q 1) 96 - the number of relatively prime to N numbers, less than N 4. Select e such that e is relatively prime to (N ) . For example, e=7. Actually, gcd(96,7)=gcd(7,5)=gc ...
... 1. Select two distinct prime numbers, p, and q. Let p=7, q=17. 2. Calculate N=pq=7x17=119. 3. Calculate ( N ) ( p 1)( q 1) 96 - the number of relatively prime to N numbers, less than N 4. Select e such that e is relatively prime to (N ) . For example, e=7. Actually, gcd(96,7)=gcd(7,5)=gc ...
2123 The Quadratic formula (Mod p) - ACM
... Your task is to write a program that reads quadratic equations from a text file, and determines whether or not each of the equations in the input has roots (Mod p). Each quadratic equation is on a separate line. The coefficients a, b, c of each quadratic equation and a modulus p are given on each li ...
... Your task is to write a program that reads quadratic equations from a text file, and determines whether or not each of the equations in the input has roots (Mod p). Each quadratic equation is on a separate line. The coefficients a, b, c of each quadratic equation and a modulus p are given on each li ...
Totient Theorem
... Lemma 1: Each number in the first set must be congruent to one and only one number in the second and each number in the second set must be congruent to one and only one number in the first. This may not be obvious at first but can be proved through three logical steps. (1) Each number in the first s ...
... Lemma 1: Each number in the first set must be congruent to one and only one number in the second and each number in the second set must be congruent to one and only one number in the first. This may not be obvious at first but can be proved through three logical steps. (1) Each number in the first s ...