A SHORT NOTE ON INTEGER COMPLEXITY STEFAN STEINERBERGER Abstract Let f(n) be the minimum number of 1's needed in con- junction with arbitrarily many +*
Subtracting Integers “Same/Change/Change (SCC)” Rule: The sign of the first number stays the same change subtraction to addition
View the video lesson take notes and complete the problems below Definition: The integers are all positive whole numbers and their opposites and
The numbers that include natural numbers Integer A counting number zero or the negative of a counting number To make as short as possible
A prime number (or prime for short) is an integer p > 1 whose only divisors are ±1 and ±p; the set of primes is denoted P: p ? P ?? p > 1
These are lecture notes for the Number Theory course taught at CMU Divisibility in the ring of integers primes the fundamental theorem of arith-
– 1 is multiplicative identity for integers i e a × 1 = 1 × a = a for any integer a – Integers show distributive property of multiplication over addition
13 fév 2017 · INTEGERS 17 (2017) A SHORT NOTE ON REDUCED RESIDUES Pascal Stumpf Department of Mathematics University of Würzburg Germany
Note that when writing numbers in words if there is zero between numbers we use word 'and' Example 1 BODMAS is the short form of the following:
950_6ma257.pdf
MA257: INTRODUCTION TO NUMBER THEORY
LECTURE NOTES 2018
J. E. CREMONA
Contents
0. Introduction: What is Number Theory? 2
Basic Notation 3
1. Factorization 4
1.1. Divisibility inZ4
1.2. Greatest Common Divisors inZ5
1.3. The Euclidean Algorithm inZ6
1.4. Primes and unique factorization 7
1.5. Unique Factorization Domains 9
2. Congruences and modular arithmetic 14
2.1. Denition and Basic Properties 14
2.2. The structure ofZ=mZ15
2.3. Euler's, Fermat's and Wilson's Theorems 16
2.4. Some Applications 18
2.5. The Chinese Remainder Theorem or CRT 19
2.6. The structure ofUm21
3. Quadratic Reciprocity 23
3.1. Quadratic Residues and Nonresidues 23
3.2. Legendre Symbols and Euler's Criterion 23
3.3. The Law of Quadratic Reciprocity 24
4. Diophantine Equations 28
4.1. Geometry of Numbers and Minkowski's Theorem 28
4.2. Sums of squares 28
4.3. Legendre's Equation 30
4.4. Pythagorean Triples 32
4.5. Fermat's Last Theorem 33
4.6. Proof of Minkowski's Theorem 35
5.p-adic Numbers 37
5.1. Motivating examples 37
5.2. Denition ofZp38
5.3. The ringZp39
5.4. The eldQp42
5.5. Squares inZp45
5.6. Hensel lifting 47c
2018 Creative Commons Attribution-ShareAlike (CC BY-SA)
1
2 J. E. CREMONA
0.Introduction: What is Number Theory?
Number Theory is (of course) primarily the Theory of Numbers: ordinary whole numbers (integers). It is, arguably, the oldest branch of mathematics. Integer solutions to Pythagoras's equation a
2+b2=c2
have been found, systematically listed with all the arithmetic carried out in base60, on ancient Babylonian clay tablets. There are several dierent avours of Number Theory, distinguished more by the methods used than by the problems whose solutions are sought. These are ElementaryNumber Theory: using elementary methods only; AnalyticNumber Theory: using analysis (real and complex), notably to study the distribution of primes; AlgebraicNumber Theory: using more advanced algebra, and also studyingalgebraic numberssuch as1 +3p2 +
17p17;
GeometricNumber Theory: using geometric, algebraic and analytic methods; also known asarithmetic algebraic geometry. Andrew Wiles used a vast array of new techniques and previously known results in arithmetic algebraic geometry to solve Fermat's Last Theorem, whose statement is entirely elementary (see below). This is typical of progress in Number Theory, where there have been many cases of entirely new mathematical theories being created to solve specic, and often quite elementary-seeming problems. This module is mostly elementary with some analytic and algebraic parts. The algebraic ap- proach is pursued further in the module MA3A6 (Algebraic Number Theory). The geometric approach is pursued further in the module MA426 (Elliptic Curves). Number Theory starts out with simple questions about integers: simple to state, if not to answer. Here are three types of question: Diophantine Equationsare equations to which one seeks integers solutions (or some- times rational solutions). For example, (1)x2+y2=z2has innitely many integral solutions (so-called Pythagorean triples); later, we will see how to nd them all. (2)xn+yn=znhasnononzero integer solutions whenn3. This is Fermat's Last Theorem, which we will certainly not be proving in these lectures, though we will prove the casen= 4. (3)y2=x3+ 17has exactly8integer solutions(x;y),x= 2; 1;2;4;8;43;52 and one further value which you can nd for yourselves. Proving that there are
no more solutions is harder; usingSageyou can solve this as follows:sage : EllipticCurve ([0 ,17]). integralpoints ()
(4) Every p ositiveinteger ncan be written as a sum of four squares (including0), for example
47 = 1 + 1 + 9 + 36 = 1
2+ 12+ 32+ 62;
but not all may be written as a sum of 2 or 3 squares. Which?sage : sumofksquares (4 ,47) We will answer the two- and four-square problems later, with a partial answer for three squares. Questions about primes, for example (1) There a reinnitely many p rimes(an ancient result p rovedi nEuclid.) MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES 2018 3 (2) Is every even numb er(greater than 2) expressible as the sum of two primes? This was conjectured by Goldbach in 1746 and still not proved, though it has been veried for numbers up to41018; the \weak form" of the conjecture, that every odd number greater than5is a sum of three primes, was proved in
2013 by the Peruvian Harald Helfgott.
(3) Are all the F ermatnumb ersFn= 22n+1prime (as Fermat also claimed)? Cer- tainly not: the rst four are (F1= 5,F2= 17,F3= 257,F4= 65537) but then F
5= 6416700417,F6= 27417767280421310721,F7= 59649589127497217
5704689200685129054721, and no more prime values have been discovered in
the sequence.sage : [(2^2^n+1). factor ()fornin range(9)](4)Ho wmany p rimesend in the di git7? Innitely many? Of the 664579 primes less
than 10 million, the number which end in the digits1,3,7and9respectively are166104,166230,166211, and166032(that is,24:99%,25:01%,25:01%and
24:98%). What does this suggest?sage : pc=dict([( d ,0)fordin range(10)])sage :forpinprimerange (10^7): pc [p%10]+=1
sage : [(d , pc [d] ,100.0pc [d]/sum(pc . values ()))fordin[1 ,3 ,7 ,9]](5)Are there innitely many so-called prime pairs: primes which dier by only2,
such as(3;5),(71;73)or(1000000007;1000000009)? Ecient algorithms for basic arithmetic: many modern applications of Number Theory are in the eld of cryptography (secure communication of secrets, such as transmitting condential information over the Internet). These application rely on the fact that the following two questions, which seem trivial from the theoretical points of view, are not at all trivial when asked about very large numbers with dozens or hundreds of digits: (1) Primalit yT esting:given a p ositiveinteger n, determine whethernis prime; (2) F actorization:given a p ositiveinteger n, determine the prime factors ofn. In this module, we will study a variety of such problems, mainly of the rst two types, while also laying the theoretical foundations to further study. Basic Notation.Z,Q,R,Cwill denote, as usual, the sets of integers, rational numbers, real numbers and complex numbers. The integers form a ring, the others sets are elds. N=fn2Zjn1gis the set ofnatural numbers(positive integers). N
0=fn2Zjn0gis the set of non-negative integers.
Pwill denote the set of (positive) prime numbers: integersp >1which have no factor- izationp=abwitha;b >1. Divisibility: fora;b2Zwe writeajb, and sayadividesb, whenbis a multiple ofa: ajb() 9c2Z:b=ac: Ifadoes not dividebwe writea6 jb. The divisibility relation gives a partial order onNwith
1as the \least" element and no \greatest element".
Congruence: fora;b;c2Zwithc6= 0we writeab(modc)and say thatais congruent tobmodulocifcj(a b): ab(modc)()cj(a b): Divisibility and congruence will be studied in detail later.
4 J. E. CREMONA
1.Factorization
1.1.Divisibility inZ.
Denition 1.1.1.Leta;b2Z. Then we say thatadividesband writeajbifb=acfor somec2Z: ajb() 9c2Z:b=ac: Alternatively, we may say that \bis a multiple ofa". Ifa6= 0this is equivalent to the statement that the rational numberb=ais an integerc. Ifadoes not dividebwe writea6 jb. Lemma 1.1.2.[Easy facts about divisibility] For alla,b,:::2Z: (1)ajb=)ajkb(8k2Z); (2)ajb1,ajb2=)ajb1b2; hence ifb1andb2are multiples ofa, then so are all integers of the formk1b1+k2b2. (3)ajb,bjc=)ajc; (4)ajb,bja()a=b; (5)ajb,b6= 0 =) jaj jbj; so nonzero integers have only a nite number of divisors; (6)Ifk6= 0thenajb()kajkb; (7)Special properties of1:1ja(8a2Z), andaj 1()a=1; (8)Special properties of0:aj0 (8a2Z), and0ja()a= 0. Proposition 1.1.3(Division Algorithm inZ).Leta;b2Zwitha6= 0. There exist unique integersq;rsuch that b=aq+rwith0r