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

Prepare the journal entries to adjust for shrinkage, I. The inventory of  r...

I. The inventory of  records of BeBop Distributing reflected the following for October 2012: Date                      Transaction                              Units

Numerical analysis, The system has a solution near (-0.5,-0.7). Set...

The system has a solution near (-0.5,-0.7). Set up the matrix equation Jδ = -f for Newton's method and then carry out one iteration, starting with x 0 = -0.5, y 0 = -0.7.

Linear programming, A paper mill produces two grades of paper viz., X and Y...

A paper mill produces two grades of paper viz., X and Y. Because of raw material restrictions, it cannot produce more than 400 tons of grade X paper and 300 tons of grade Y paper i

Evaluate the fermat''s method algorithm, 1. (i) How many digits does the nu...

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 inte

You are required to design an air-conditioner controller for, Below are the...

Below are the conditions specified by the institution: a) If the temperature sensor shows 30 degree Celsius or higher, the air-conditioner will be turned ON regardless of the othe

Linear programming applications to industry, I need a research paper. The c...

I need a research paper. The concept is to develop a new linear programming was not introduced in the art literature before then apply the LP to spcific industry

Calculate principal value of the root, Compute the (real and imaginary part...

Compute the (real and imaginary parts of the) principal value of the eighth root of (a + ib) to 3 decimal places (accurate to 10 -3 ). Call the real part "m 7 ", and the imagina

Modelling, . The Government of Uganda wants to locate a refinery plant that...

. The Government of Uganda wants to locate a refinery plant that will annually receive crude oil from two wells in Bunyoro region, F1 and F2. The refinery plant will process the cr

Time, Two boys A and B are at two diametrically opposite points on a circle...

Two boys A and B are at two diametrically opposite points on a circle. At one instant the two start running on the circle; A anticlockwise with constant speed v and B clockwise wit

Control theory., Hi I have just received a math assignment and was wonder...

Hi I have just received a math assignment and was wondering if you can take a look at it and tell me if you can be finished before the 12th of february and what the cost will be.

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