Skip to content

Commit

Permalink
Moved binomialmodprime to description (kth-competitive-programming#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chillee authored Apr 21, 2020
1 parent 809c86e commit 91b3145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
24 changes: 0 additions & 24 deletions content/combinatorial/binomialModPrime.h

This file was deleted.

4 changes: 3 additions & 1 deletion content/combinatorial/chapter.tex
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ \section{Partitions and subsets}
\end{tabular}
\end{center}

\subsection{Lucas' Theorem}
Let $n,m$ be non-negative integers and $p$ a prime. Write $n=n_kp^k+...+n_1p+n_0$ and $m=m_kp^k+...+m_1p+m_0$. Then $\binom{n}{m} \equiv \prod_{i=0}^k\binom{n_i}{m_i} \pmod{p}$.

\subsection{Binomials}
\kactlimport{binomialModPrime.h}
\kactlimport{multinomial.h}

\section{General purpose numbers}
Expand Down

0 comments on commit 91b3145

Please sign in to comment.