📄 numbertheory.tex
字号:
% $Id: numbertheory.tex 1205 2005-07-04 13:58:13Z koy $
% \def\QM {{,\kern -0.9 pt ,}}
\setcounter{theorem}{0}
\setcounter{definition}{0}
% ..........................................................................
% --------------------------------------------------------------------------
% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
% E l e m e n t a r e Z a h l e n t h e o r i e
% /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\newpage
\hypertarget{Chapter_ElementaryNT}{}
\section{Introduction to Elementary Number Theory with Examples}
\label{Chapter_ElementaryNT}
(Bernhard Esslinger, July 2001, Updates: Dec. 2001, June 2002, May 2003, May 2005) \\
This ``introduction'' is for people with a mathematical interest. There is no
more pre-knowledge necessary than what you learn in the secondary school.\par
We intentionally had ``beginners'' in mind; we did not take the approach
of mathematical textbooks, called ``introduction'', which cannot be
understood at the first reading further than page 5 and which have the real
purpose to deliver all information that special monographs can be read.
% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\subsection{Mathematics and cryptography}
A large proportion of modern, asymmetric cryptography\index{Encryption!asymmetric} is based on mathematical knowledge -- on the properties
(``laws'') of whole numbers, which are investigated in elementary \index{Number theory!elementary} number
theory. Here, the word ``elementary'' means that questions raised in number theory are essentially rooted in the set
of natural and whole numbers.
Further mathematical disciplines currently used in cryptography include
(see \cite[p. 2]{Bauer1995}, \cite[p. 3]{Bauer2000}) :
\begin{itemize}
\item Group theory\index{Group}
\item Combination theory
\item Complexity theory
\item Ergodic theory
\item Information theory.
\end{itemize}
Number theory or arithmetic (the emphasis here is more on the aspect of
performing calculations with numbers) was established
by Carl Friedrich Gauss\footnote{%
Carl Friedrich Gauss, German mathematician and astronomer,
Apr 30, 1777$-$Feb 23, 1855.
}
\index{Gauss, Carl Friedrich} as a special mathematical discipline. Its
elementary features include the greatest common divisor\footnote{This
article deals with the gcd (greatest common
divisor)\index{Gcd} in \hyperlink{Appendix_A}{Appendix A of this chapter}.}
(gcd), congruence (remainder classes), factorisation, the Euler-Fermat theorem
and primitive roots. However, the most important
aspect is prime numbers and their multiplicative operation.
For a long time, number theory was considered to be the epitome of pure research, the ideal example of research
in the ivory tower. It delved into ``the mysterious laws of the realm of numbers'', giving rise to philosophical
considerations as to whether it described elements that exist everywhere in nature or whether it artificially
constructed elements (numbers, operators and properties).
We now know that patterns from number theory can be found everywhere in nature.
For example, the ratio of
%laevorotary and dextrorotary
rotating counterclockwise and rotating clockwise
spirals in a sunflower is equal to two consecutive
Fibonacci\index{Fibonacci} numbers\footnote{%
The sequence of Fibonacci numbers $(a_i)_{i \in \mathbb{N}}$ is defined
by the ``recursive'' rule $a_1 := a_2 := 1$ and for all numbers $n=1,2,3,\cdots$
we define $a_{n+2} := a_{n+1}+a_n$.
This historical sequence can be found in many interesting forms in nature
(for example, see \cite[p. 290 ff]{Graham1994}\index{Graham 1994} or the
website of \hyperlink{knott}{Ron Knott}\index{Knott, Ron}, which is devoted
to Fibonacci\index{Fibonacci} numbers). A lot is known about the Fibonacci
sequence and it is used today as an important tool in mathematics.}, for
example $21 : 34$.
Also, at the latest when number theory was applied in modern cryptography, it became clear that a discipline that
had been regarded as purely theoretical for centuries actually had a practical use. Today, experts in this field are
in great demand on the job market.
Applications in (computer) security now use cryptography because this mathematical discipline is simply better
and easier to prove than all other ''creative'' substitution procedures that have been developed over the course of
time and better than all sophisticated physical methods such as those used to print bank notes \cite[p. 4]{Beutelspacher1996}.
This article explains the basics of elementary number theory in a way that you can easily understand. It provides
numerous examples and very rarely goes into any proofs (these can be found in mathematical textbooks).
The goal is not to exhaustively explain the number theory findings, but
to show the essential procedures. The volume of the content is so oriented
that the reader can understand and apply the RSA method\index{RSA}.
For this purpose we will use both theory and examples to explain how
to perform calculations in finite sets and describe how these techniques
are applied in cryptography. Particular attention will be paid to the
traditional Diffie-Hellman\index{Diffie-Hellman} (DH) and RSA public
key procedures.\index{RSA}
Additionally I added some qualified statements about the security of the RSA algorithm.
\vskip +40 pt
\begin{center}
\fbox{\parbox{15cm}{{\em Carl Friedrich Gauss\index{Gauss, Carl Friedrich}:}\\
Mathematics is the queen of sciences and number theory is the queen of mathematics.}}
\end{center}
%\begin{quote}
%{\em Carl Friedrich Gauss:}\\
%Mathematics is the queen of sciences and number theory is the queen of mathematics.
%\end{quote}
% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\subsection{Introduction to number theory} \index{Number theory!introduction}
Number theory arose from interest in positive whole numbers $1, 2, 3, 4, \cdots$, also referred to as the set of natural numbers
\index{Number!natural} {\em natural numbers} $\mathbb{N}$. These are the first mathematical constructs
used by human civilisation. According to Kronecker\footnote{Leopold
Kronecker, German mathematician, Dec 7, 1823 $-$ Dec 29, 1891}\index{Kronecker, Leopold}, they are a creation of God.
In Dedekind's\footnote{Julius Wilhelm Richard Dedekind,
German mathematician, Oct 6, 1831 $-$ Feb 12, 1916.}\index{Dedekind, Julius} opinion, they are a creation of the human intellect. Dependent upon one's ideology,
this is an unsolvable contradiction or one and the same thing.
In ancient times, no distinction was made between number theory and numerology, which attributed a mystical
significance to specific numbers. In the same way as astronomy and chemistry gradually detached themselves
from astrology and alchemy during the Renaissance (from the 14th century), number theory also separated itself
from numerology.
Number theory has always been a source of fascination -- for both amateurs and professional mathematicians. In
contrast to other areas of mathematics, many of the problems and theorems in number theory can be understood
by non-experts. On the other hand, mathematicians often take a long time to find solutions to the problems or
prove the theorems. It is therefore one thing to pose good questions but quite another matter to find the answer. One
example of this is what is known as Fermat's Last (or large) theorem\footnote{One of the things you learn in mathematics at school is Pythagoras theorem, which states the following for a right-angle
triangle: $a^2 + b^2 = c^2$, where $a$ and $b$ are the lengths of the sides containing the right angle and $c$ is the
length of the hypotenuse. Fermat famously proposed that $a^n + b^n \not= c^n$ for whole-number exponents $n
> 2$. Unfortunately, the letter in which Fermat made the claim did not have enough space for him to prove it.
The theorem was not proved until over 300 years later \cite[p. 433-551]{Wiles1994}\index{Wiles, Andrew}. }.
Up until the mid 20th century, number theory was considered to be the purest area of mathematics, an area that
had no practical use in the real world. This changed with the development of computers and digital
communication, as number theory was able to provide several unexpected solutions to real-life tasks. At the same
time, advances in information technology allowed specialists in number theory to make huge progress in
factorising large numbers, finding new prime numbers, testing (old) conjectures and solving numerical problems
that were previously impossible to solve. Modern number theory \index{Number theory!modern} is made up of
areas such as:
\begin{itemize}
\item Elementary number theory
\item Algebraic number theory
\item Analytic number theory
\item Geometric number theory
\item Combinatorial number theory
\item Numeric number theory
\item Probability theory.
\end{itemize}
All of the different areas are concerned with questions regarding whole numbers (both positive and negative
whole numbers plus zero). However, they each have different methods of dealing with them.
This article only deals with the area of elementary number theory.
% --------------------------------------------------------------------------
\newpage
\subsubsection{Convention}
Unless stated otherwise:
\begin{itemize}
\item The letters $a, b, c, d, e, k, n, m, p, q$ are used to present whole numbers.
\item The letters $i$ ~\mbox{and} $j$ represent natural numbers.
\item The letters $p$ always represents a prime number.
\item Te sets $\mathbb{N} = \{ 1, 2, 3, \cdots \}$ and $\mathbb{Z} =\{ \cdots, -3, -2, -1, 0, 1, 2, 3, \cdots \}$
are the {\em natural} and {\em whole} numbers respectively.
\end{itemize}
% \vskip +40 pt
\newpage
\begin{center}
\fbox{\parbox{15cm}{{\em Joanne\index{Rowling,
Joanne} K. Rowling\footnotemark\:}\newline This isn't
magic -- it's logic -- a puzzle. A lot of the greatest
wizards haven't got an ounce of logic.}}
\end{center}
\addtocounter{footnote}{0}\footnotetext{Joanne K. Rowling,~``Harry Potter and the Philosopher's Stone'', Bloomsbury, (c)
1997, chapter ``Through the trapdoor'', p. 307, by Hermine.}
%\begin{quote}
%{\em Joanne K. Rowling\footnote{Joanne K. Rowling,~``Harry Potter and the Philosopher's Stone'', Carlsen, (c)
%1997, chapter ``Through the trapdoor'', p. 310.}:}\newline This isn't magic
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -