Question

Prove that for n ≥ 5, (n−1)! ≡ 0 mod n if and only if n...

  1. Prove that for n ≥ 5, (n−1)! ≡ 0 mod n if and only if n is composite. (Take care to consider why your argument would not work for n ≤ 4. . . )

Homework Answers

Answer #1

If n is not composite then n is prime , so by Wilson theorem

(n-1)!=-1mod n.Thus (n-1)! Not equal to 0 mod n .

Therefore by contraposition , if (n-1)!=0 mod n then n is not prime i.e n is composite .

Conversly , suppose n>=5 is composite ,then n=ab where a,b are natural numbers.Let if a>b

Now (ab-1)! = (ab-1)(ab-2)....(ab-a)(ab-a-1)(ab-a-2)...(ab-a-(a-b)).....3.2.1= (ab-1)(ab-2)....(a)(b-1)(ab-a-1)(ab-a-2)...(b)(a-1)....3.2.1 = (ab)(ab-1)(ab-2)........3.2.1=n.(ab-1)(ab-2).....3.2.1

Thus n divides (ab-1)!=(n-1)! Hence (n-1)!=0 mod n

For n=1 ,(1-1)!=0!=1 =0 mod 1

For n=2 , (2-1)!=1 not equal to 0 mod 2

For n=3 ,(3-1)!=2 not equal to 0 mod 3

For n=4 ,(4-1)!=6 not equal to 0 mod 4

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Prove the Basic Principal of Difference of squares: If x2 ≡ y2 (mod n) and x...
Prove the Basic Principal of Difference of squares: If x2 ≡ y2 (mod n) and x is not ± y, where x and y lie in the range {0, … , n-1}, then n is composite and has gcd(x-y, n) as a non-trivial factor.
Prove the Basic Principal of Difference of squares: If x2 ≡ y2 (mod n) and x...
Prove the Basic Principal of Difference of squares: If x2 ≡ y2 (mod n) and x is not ± y, where x and y lie in the range {0, … , n-1}, then n is composite and has gcd(x-y, n) as a non-trivial factor.
(§2.1) Let a,b,p,n ∈Z with n > 1. (a) Prove or disprove: If ab ≡ 0...
(§2.1) Let a,b,p,n ∈Z with n > 1. (a) Prove or disprove: If ab ≡ 0 (mod n), then a ≡ 0 (mod n) or b ≡ 0 (mod n). (b) Prove or disprove: Suppose p is a positive prime. If ab ≡ 0 (mod p), then a ≡ 0 (mod p) or b ≡ 0 (mod p).
prove that n> 1 and (n-1)!congruence -1(mod n) then n is prime
prove that n> 1 and (n-1)!congruence -1(mod n) then n is prime
Prove that n is prime iff every linear equation ax ≡ b mod n, with a...
Prove that n is prime iff every linear equation ax ≡ b mod n, with a ≠ 0 mod n, has a unique solution x mod n.
a) Prove: If n is the square of some integer, then n /≡ 3 (mod 4)....
a) Prove: If n is the square of some integer, then n /≡ 3 (mod 4). (/≡ means not congruent to) b) Prove: No integer in the sequence 11, 111, 1111, 11111, 111111, . . . is the square of an integer.
Consider the following algorithm. i ← 2 while (N mod i) ≠ 0 do i ←...
Consider the following algorithm. i ← 2 while (N mod i) ≠ 0 do i ← i + 1 Suppose instead that N is in {2, 3, 4, 5, 6, 7, 8, 9}, and all these values are equally likely. Find the average-case number of "N mod i" operations made by this algorithm.
Prove: Let n ∈ N, a ∈ Z, and gcd(a,n) = 1. For i,j ∈ N,...
Prove: Let n ∈ N, a ∈ Z, and gcd(a,n) = 1. For i,j ∈ N, aj ≡ ai (mod n) if and only if j ≡ i (mod ordn(a)). Where ordn(a) represents the order of a modulo n. Be sure to prove both the forward and backward direction.
Let gcd(m1,m2) = 1. Prove that a ≡ b (mod m1) and a ≡ b (mod...
Let gcd(m1,m2) = 1. Prove that a ≡ b (mod m1) and a ≡ b (mod m2) if and only if (meaning prove both ways) a ≡ b (mod m1m2). Hint: If a | bc and a is relatively prime to to b then a | c.
Let Zn = {0, 1, 2, . . . , n − 1}, let · represent...
Let Zn = {0, 1, 2, . . . , n − 1}, let · represent multiplication (mod n), and let a ∈ Zn. Prove that there exists b ∈ Zn such that a · b = 1 if and only if gcd(a, n) = 1.