Evaluate the fermat''s method algorithm, Engineering Mathematics

Assignment Help:

1. (i) How many digits does the number 101000 have when written to base 7 ?

(ii) Use the prime number theorem to estimate the proportion of prime numbers among the positive integers up to and including those with 1000 decimal digits.

(iii) Show that arbitrarily long sequences of consecutive composite numbers exist. (Hint: Consider the sequence of integers starting at n! + 2)

2. Use Fermat's method to factorise the number n = 11111 using a speed-up based on two moduli, as follows. First, develop a speed-up scheme for the modulus m1 = 3, then develop a similar scheme independently for the modulus m2 = 8, then combine the two schemes into a single scheme. Finally, execute the algorithm using the combined scheme.

3. Make four applications of the Miller{Rabin test to the number n = 137.

For a proper application of the test, the four bases a used should be chosen independently, but for ease of calculation, use any four distinct 1-digit numbers, excluding 0 and 1, chosen from the digits in your student ID. (If your ID doesn't have enough digits to do this, pick the remaining digits arbitrarily.)

Present the results of all the modular exponentiations implied by the test, and state precisely why each base used is or is not a Miller{Rabin witness for n.

Draw whatever conclusion about the primality or compositeness of n the test permits (making the invalid assumption, however, that your bases were chosen independently).

4. Consider the quadratic congruence ax2 +bx+c ≡ 0 (mod p), where p is a prime and a, b and c are integers with p/a.

(i) Determine which quadratic congruences have solutions when p = 2. Note that in this case a = 1 and b and c have to be 0 or 1.

(ii) For the case where p is an odd prime let d = b2 - 4ac and show that the given congruence is equivalent to solving y2 ≡ d (mod p), where y = 2ax + b. Hence show that for d ≡ 0 (mod p) there is exactly one least residue solution for x, for d a quadratic residue there are two least residue solutions for x and for d a quadratic nonresidue there are no solutions for x.

(iii) Illustrate these results by considering x2 + x + 1 ≡0 (mod 7), x2 + 5x + 1 ≡ 0 (mod 7) and x2 + 3x + 1 ≡ 0 (mod 7).

5. Use the ElGamal Cryptosystem with prime p = 2591, primitive root a = 7 and c = 591.

(i) Verify that the private key is b = 99.

(ii) Choose a 3-digit number k by selecting any 3 consecutive digits from your student ID, provided that the first digit is not 0. Then use k to encode the message

x = 457.

(iii) Decode the result from (ii) to give back x.

You will probably need to use a computer to do the calculations and you should attach a copy of the output.


Related Discussions:- Evaluate the fermat''s method algorithm

Find the sum of the three coefficient polynomials, Find the quadratic that ...

Find the quadratic that interpolates f(x) = 2x 3 - x + 1 at the nodes x 0 = 0, x 1 = 2, x 2 = 3, a) by solving a set of three equations for the coefficients of p 2 (x) = a 2

Mechanics, elongation of conical bar under its own weight is what fraction ...

elongation of conical bar under its own weight is what fraction of rectangular bar

Partial differentiation, In estimating the cost of a pile of bricks measure...

In estimating the cost of a pile of bricks measured as 2m*15m*1.2m,tape is stretched 1% beyond the standard length if the count is 450 bricks to 1m^3 and bricks cost $530 per 1000,

Divison, What is the characteristics of divison

What is the characteristics of divison

Hypothesis of this statement , A) For a given integer n, if n   2 is divisi...

A) For a given integer n, if n   2 is divisible by 4, then n2   4 is divisible by 16. State the hypothesis of this sentence and the conclusion. Give a direct proof of the statement

Chemistry, advantages of langmuir adsorption theory

advantages of langmuir adsorption theory

Some children are afraid of snakes, change each of the following propositio...

change each of the following propositions into symbolic form. De ne the universe of discourse and the predicates you use. (i) Some children are afraid of snakes. (ii) All com

PHOENICS, EXPERT EPERIENCE PHOENICS SOFTWARE

EXPERT EPERIENCE PHOENICS SOFTWARE

Income tax return, Below are items that affected the 2011 accounting record...

Below are items that affected the 2011 accounting records for Darwin Adaptions Inc. The annual accounting period ended December 31, 2011. No adjusting entries were made during the

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd