Advanced Number Theory Algorithms and Applications
Number Theory
1.1 Chinese Remainder Theorem
Problem Statement
Given a system of congruences:
\[ \begin{cases} x \equiv a_1 \pmod{b_1} \\ x \equiv a_2 \pmod{b_2} \\ \vdots \\ x \equiv a_n \pmod{b_n} \end{cases} \]
Find the smallest positive integer solution for \(x\), where \(b_i\) (for \(i \in [1,n]\)) are pairwise coprime.
Theoretical Analy ...
Posted on Sun, 17 May 2026 04:39:00 +0000 by xymbo
Lucas Theorem and Its Extended Application
Lucas Theorem
Mathematical Statement
Given prime $p$, the following congruence holds:
$$\binom{n}{m} \equiv \binom{\lfloor n/p \rfloor}{\lfloor m/p \rfloor} \cdot \binom{n \bmod p}{m \bmod p} \pmod{p}$$
Proof Foundation
Lemma 1
For prime $p$:
$$\binom{p}{k} \equiv 0 \pmod{p} \text{ when } 0 < k < p$$
The numerator contains factor $p$, mak ...
Posted on Tue, 12 May 2026 18:23:17 +0000 by Moneypenny