How Does Modulo Arithmetic Prove a Combinatorial Identity Involving Primes?

  • MHB
  • Thread starter evinda
  • Start date
In summary, we have proven that for a prime number $p \neq 2$ and an integer $k$ between $0$ and $p-1$, the expression $\binom{p-1}{k}$ is congruent to $(-1)^k$ modulo $p$. This was shown by using Wilson's theorem and simplifying the expression to $\frac{(-1)^k k!}{k!}$, which is always congruent to $(-1)^k$ modulo $p$.
  • #1
evinda
Gold Member
MHB
3,836
0
Hey again! (Blush)

If $p \neq 2$ is a prime and $0 \leq k \leq p-1, \text{ prove that: }$
$$\binom{p-1}{k} \equiv (-1)^k \pmod p$$

I thought that I could calculate $\binom{p-1}{k}k!$ :

$$\binom{p-1}{k}k!=\frac{(p-1)!}{k!(p-(k+1))!}k!=\frac{(p-1)!}{(p-(k+1))!}$$

According to Wilson's theorem, $(p-1)! \equiv -1 \pmod p$..
But...what is equal $\mod p$ to $(p-(k+1))!$ ? (Thinking)
 
Last edited:
Mathematics news on Phys.org
  • #2
evinda said:
Hey again! (Blush)

If $p \neq 2$ is a prime and $0 \leq k \leq p-1, \text{ prove that: }$
$$\binom{p-1}{k} \equiv (-1)^k \pmod p$$

I thought that I could calculate $\binom{p-1}{k}k!$ :

$$\binom{p-1}{k}k!=\frac{(p-1)!}{k!(p-(k+1))!}k!=\frac{(p-1)!}{(p-(k+1))!}$$

According to Wilson's theorem, $(p-1)! \equiv -1 \pmod p$..
But...what is equal $\mod p$ to $(p-(k+1))!$ ? (Thinking)

Could I show it maybe like that?

$$ \binom{p-1}{k}=\frac{(p-1)!}{k!(p-(k+1))!}=\frac{(p-k)(p-k+1) \cdots (p-1)}{k!} \equiv \frac{(p-1) \cdots (p-k+1)(p-k)}{k!} \equiv \frac{(-1) \cdots (-k+1)(-k)}{k!} \equiv \frac{(-1)^k k!}{k!} \equiv (-1)^k \pmod p $$ ?
(Nerd)
 
  • #3
evinda said:
Could I show it maybe like that?

$$ \binom{p-1}{k}=\frac{(p-1)!}{k!(p-(k+1))!}=\frac{(p-k)(p-k+1) \cdots (p-1)}{k!} \equiv \frac{(p-1) \cdots (p-k+1)(p-k)}{k!} \equiv \frac{(-1) \cdots (-k+1)(-k)}{k!} \equiv \frac{(-1)^k k!}{k!} \equiv (-1)^k \pmod p $$ ?
(Nerd)

Looks good! (Nod)
 
  • #4
I like Serena said:
Looks good! (Nod)

Nice,thank you very much! (Happy)
 
  • #5


Hi there! Great job on starting your proof! To find what $(p-(k+1))!$ is congruent to modulo $p$, we can use the fact that $p$ is a prime number. This means that every number from $1$ to $p-1$ has an inverse modulo $p$. In other words, for each number $a$ in this range, there exists a number $a'$ such that $a \cdot a' \equiv 1 \pmod p$.

Now, since $k$ is between $0$ and $p-1$, $p-(k+1)$ must be between $-1$ and $p-2$. But since $p$ is an odd prime, $p-2$ is even and thus has an inverse modulo $p$. This means that $p-(k+1)$ has an inverse modulo $p$ as well. Let's call this inverse $b$.

Now, we can rewrite $(p-(k+1))!$ as:
$$(p-(k+1))! \equiv (p-1)! \cdot b \cdot (b-1) \cdot (b-2) \cdot ... \cdot (b-(k-1)) \pmod p$$

Since $(p-1)! \equiv -1 \pmod p$, we can substitute this into our equation:
$$(p-(k+1))! \equiv -1 \cdot b \cdot (b-1) \cdot (b-2) \cdot ... \cdot (b-(k-1)) \pmod p$$

But since $b$ is the inverse of $p-(k+1)$ modulo $p$, we know that $p-(k+1) \cdot b \equiv 1 \pmod p$. This means that we can further simplify our equation to:
$$(p-(k+1))! \equiv -(b-1) \cdot (b-2) \cdot ... \cdot (b-(k-1)) \pmod p$$

Now, remember that $b$ is the inverse of $p-(k+1)$ modulo $p$, so $b \equiv \frac{1}{p-(k+1)} \pmod p$. This means that $b-1 \equiv \frac{1}{p-(k+1)}-1 \equiv \frac{
 

FAQ: How Does Modulo Arithmetic Prove a Combinatorial Identity Involving Primes?

What is the significance of "Binom(p-1,k)=(-1)^k (mod p)" in mathematics?

The expression "Binom(p-1,k)=(-1)^k (mod p)" is known as Lucas' theorem and it has important implications in number theory and combinatorics. It allows for the calculation of binomial coefficients modulo a prime number, which is useful in solving problems related to counting and probability.

How is "Binom(p-1,k)=(-1)^k (mod p)" related to Fermat's little theorem?

Lucas' theorem is a generalization of Fermat's little theorem, as it provides a way to extend the theorem to non-prime moduli. In fact, for a prime modulus p, the expression "Binom(p-1,k)=(-1)^k (mod p)" simplifies to the familiar form of Fermat's little theorem, "(p-1)! ≡ -1 (mod p)".

What is the proof behind Lucas' theorem?

Lucas' theorem can be proved using induction on the exponent k. The key idea is to use the fact that for a prime number p, (p-1)! ≡ -1 (mod p) and (p-1) ≡ -1 (mod p) to show that the binomial coefficient "Binom(p,k)" can be expressed as a product of binomial coefficients modulo p-1. This then leads to the general expression "Binom(n,k) ≡ (nCk) (mod p)" for any positive integer n and prime modulus p.

How is Lucas' theorem used in cryptography?

Lucas' theorem is used in cryptography to generate large prime numbers that are needed for secure encryption and decryption. It allows for efficient calculation of binomial coefficients modulo a prime number, which is an important step in some encryption algorithms. It is also used in the implementation of the Miller-Rabin primality test, which is used to determine the primality of large numbers.

Are there any other applications of Lucas' theorem?

Aside from its uses in number theory and cryptography, Lucas' theorem has other applications in fields such as coding theory, group theory, and combinatorial designs. It also has connections to other theorems in mathematics, such as the Chinese remainder theorem and Wilson's theorem. Overall, Lucas' theorem is a powerful tool that has many diverse applications in various branches of mathematics.

Similar threads

Replies
1
Views
1K
Replies
1
Views
2K
Replies
1
Views
1K
Replies
4
Views
1K
Replies
1
Views
2K
Replies
8
Views
2K
Replies
7
Views
2K
Back
Top