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

Compute the linear arc distance, Question Assume the earth is a sphere ...

Question Assume the earth is a sphere with a radius of 6,371,000.000 meters. Three points are defined by their latitude and longitude. Point Latitude (N) Longitude (W) A

Harmonic function, Let z 0 = a + ic, z 1 = b + id, z 2 = -id, and z =...

Let z 0 = a + ic, z 1 = b + id, z 2 = -id, and z = [z 0 + z 1 ]. Let z 0 be the apex of the wedge with one ray passing through z 1 and the other passing through z 2 , and

Calculus, Ask questioA mass on a spring vibrates. Its position at time t fr...

Ask questioA mass on a spring vibrates. Its position at time t from its starting point is x(t) = 2 cos(t) e t Find the velocity and acceleration at time t. What is the behavior of

Delaunay triangulation algorithm, I need to write a program which employs d...

I need to write a program which employs delaunay triangulation method

Compute the real and imaginary parts, The data in this exam are a set of 6 ...

The data in this exam are a set of 6 integers a through f, based on your social security number. Write the LAST 6 digits of your social security or ID number in the spaces below, t

Fourier series, b) State by inspection (i.e. without performing any formal ...

b) State by inspection (i.e. without performing any formal analysis) all you can about each of the periodic waveforms shown in FIGURE 1 in terms of their Fourier series when analys

Estimate the time constant and maximum vertical acceleration, The vertical ...

The vertical motion of a general aviation airplane subjected to a sharp-edged wind gust is described by the equation Δw(t) = A g (1-e -t/τ ) assume A g = 30 where Δ w is in

11, y''(x)=2*10^-6*y(x)(100000-y(x))

y''(x)=2*10^-6*y(x)(100000-y(x))

Beta gamma functions, integral dx/root of sinx using beta and gamma functio...

integral dx/root of sinx using beta and gamma functions

Find the variance and covariance, The following are 8 data points that show...

The following are 8 data points that shows the relationship between the number of fishermen and the amount of fish they can catch a day. (Let the number of fishermen be X and the a

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