<?xml version="1.0" encoding="UTF-8"?>

<record version="7" id="3914">
 <title>Anton's congruence</title>
 <name>AntonsCongruence</name>
 <created>2003-01-23 06:46:26</created>
 <modified>2004-04-01 12:37:27</modified>
 <type>Theorem</type>
 <creator id="1234" name="Thomas Heye"/>
 <author id="1234" name="Thomas Heye"/>
 <classification>
	<category scheme="msc" code="11A07"/>
 </classification>
 <related>
	<object name="Factorial"/>
 </related>
 <keywords>
	<term>relative prime</term>
 </keywords>
 <preamble>% this is the default PlanetMath preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here
\newcommand{\pfac}[1]{\left(#1\underline{!}\right)_p}</preamble>
 <content>For every $n \in \mathbb{N}$ $\pfac{n}$ stands for the product of numbers
between $1$ and $n$ which are not divisible by a given prime $p$. And we set
$\pfac{0} =1$.

The corollary below generalizes a result first found by Anton, Stickelberger,
and Hensel:

Let $N_0$ be the least non-negative residue of $n \pmod{p^s}$ where $p$ is a
prime number and $n \in \mathbb{N}$. Then
\begin{displaymath}
\pfac{n} \equiv \left(\pm 1\right)^{\left\lfloor n/p^s
\right\rfloor}\cdot \pfac{N_0} \pmod{p^s}.
\end{displaymath}

\begin{proof}
We write each $r$ in the product below as $ip^s +j$ to get
\begin{eqnarray*}
\pfac{n} &amp;=&amp; \prod\limits_{\substack{1 \le r \le n\\ p^s \not\div r}} r \\ &amp;=&amp;\left( 
\prod\limits_{\substack{0 \le i \le \left\lfloor n/p^s\right\rfloor -1 \\ 1 \le j &lt; p^s \\ p^s
\not\div j}} ip^s +j\right)\left( \prod\limits_{\substack{i=\left\lfloor
n/p^s\right\rfloor \\ 1\le j \le N_0 \\ p^s \not\div j}} ip^s +j\right) \\
 &amp;\equiv&amp; \prod\limits_{i=0}^{\left\lfloor n/p^s \right\rfloor -1}
\prod\limits_{\substack{1 \le j &lt; p^s \\ p^s \not\div j }} j\cdot
	\prod\limits_{\substack{j=1 \\ p^s \not\div j}}^{N_0} j) \\
 &amp;\equiv&amp;
\pfac{p^s}^{\left\lfloor n/p^s\right\rfloor}\cdot \pfac{N_0} \pmod{p^s}.
\end{eqnarray*}
From Wilson's theorem for prime powers it follows that
\begin{displaymath}
\pfac{n} \equiv
\begin{cases} 
\pfac{N_0} \text{if} &amp; p=2, s \ge 3 \\
(-1)^{\left\lfloor n/p^s\right\rfloor}\cdot\pfac{N_0} &amp; \text{otherwise.}
\end{cases} \pmod{p^s}.
\end{displaymath}
\end{proof}</content>
</record>
