Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Wilson's theorem says that a numberis prime if and only if
(N-1)!=-1(modN).

(a) If is prime, then we know every number1โ‰คx<p is invertible modulo . Which of thesenumbers is their own inverse?
(b) By pairing up multiplicative inverses, show thatrole="math" localid="1658725109805" (p-1)!=-1(modp) for prime p.
(c) Show that if N is not prime, then(N-1)!โ‰ข(modN) .(Hint: Considerd=gcd(N,(N-1)!.)
(d) Unlike Fermat's Little Theorem, Wilson's theorem is an if-and-only-if condition for primality. Why can't we immediately base a primality test on this rule?

Short Answer

Expert verified
  • p - 1 and 1 are their own modulo inverses.
  • (p - 1) ! โ‰ก(p - 1) . 1p - 3/2.1 โ‰ก-1 (mod p) is showed.
  • It has been shown that if is not a prime then (N - 1)! โ‰ (mod N).
  • This method would require roughly modular multiplications, rendering it impractical; nevertheless, considerations about modular residues and primes set the groundwork for more practical processes. The primality test could not be immediately based on this rule.

Step by step solution

01

Step 1: Introduction to the Concept

In number theory, Wilson's theorem states that any prime p divides (p - 1) ! + 1 , with n! being the factorial notation for 1ร—2ร—3ร—4ร—...ร—n.

02

Step 2: Solution Explanation for numbers of their own inverse

a)

When p is prime, xโ‰ขยฑ1(modp), where 1โ‰คx<p, has solutions, is required for a number 1โ‰คn<pto be x2โ‰ก1(modp)its own inverse modulo p. As a result, p - 1 and 1 are their own modulo p inverses.

Example:

For p=5,n={1,2,3,4};

2 and 3 are multiplicative inverses, so their value is

2*3 mod 5 = 6 mod 5

= 1

In the same way that 4 is a self-multiplicative inverse, their value is

4*4 mod 5 = 16 mod 5

= 1

03

Step 3: Solution Explanation for depicting prime p

b)

If p = 2, we're divided into 1 = p - 1 and 1 !โ‰ก-1(mod 2). The other factors in ( p - 1 )! for pโ‰ฅ3could p-32inverse pairs and ( p - 1 )! โ‰ก( p - 1 ) . 1 ( p - 1) . 1( p - 3) / 2.1โ‰ก-1(mod p)

Example:

Assume p = 5 and n = {1,2,3,4} .

There is only one pair of inverses here, namely 2 and 3. As a result, for p = 5,p-32=1

04

Step 4: Solution Explanation for Prime Test

c)

If N is composite, then there exists k|N and k<N .

So, k | (N-1) and kโ‰ก1 (mod N).

This means k needs to divide 1.

So, N must be prime or 1.

But, N isn't a prime.

Hence, if N isn't prime then (N-1)! โ‰ 1(modN).

05

Step 5: Solution Explanation for Wilson's theorem's primality test

d)

N is prime if and only if (N - 1)! = -1 (mod N), according to Wilson's theorem.

This approach would require around N modular multiplications, making it unworkable; nonetheless, theories regarding modular residues and primes lay the foundation of more practical procedures.

As a result, this rule could not be used to perform a primality test right away.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Starting from the definition of xโ‰กymodN(namely, that Ndivides x-y), justify the substitution rule xโ‰กx'modN,yโ‰กy'modNx+yโ‰กx'+y'modN,and also the corresponding rule for multiplication.

If p is prime, how many elements of{0,1,...pn-1} have an inverse modulopn ?

1.37. The Chinese remainder theorem.
(a) Make a table with three columns. The first column is all numbers from 0 to 14. The second is the residues of these numbers modulo 3; the third column is the residues modulo 5. What do we observe?
(b) Prove that if p and q are distinct primes, then for every pair (j, k) with 0โ‰คj<qand 0โ‰คk<q, there is a unique integer 0โ‰คi<pqsuch thatiโ‰กjmodp andiโ‰กkmodq. (Hint:
Prove that no two different i's in this range can have the same (j, k), and then count.)
(c) In this one-to-one correspondence between integers and pairs, it is easy to go from i to (j, k). Prove that the following formula takes we the other way:
i={j.qq-1modp+kpp-1modq}modpq
(d) Can we generalize parts (b) and (c) to more than two primes?

Find the inverse of:.20mod79,3mod62,21mod91,5mod23

Unlike a decreasing geometric series, the sum of the1,12,13,14,15,..... diverges; that is,โˆ‘i=1n1i=โˆž

It turns out that, for large n , the sum of the first n terms of this series can be well approximated as

โˆ‘i=1n1iโ‰ˆInn+y

where is natural logarithm (log base e=2.718...) and y is a particular constant 0.57721...... Show that

โˆ‘i=1n1i=ฮธ(logn)

(Hint: To show an upper bound, decrease each denominator to the next power of two. For a lower bound, increase each denominator to the next power of 2 .)

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free