Download as pdf or txt
Download as pdf or txt
You are on page 1of 61

NUMBERTHEORY

ELEMENTARY
ANDMETHODSOFPROOF

The underlying content of this chapter is likely to be familiar to you. It consistsof


propertiesof integers(whole numbers),rational numbers (integer fractions), and real
numbers. The underlying theme of this chapter is the question of how to determine the
truth or falsity of a mathematicalstatement.
Here is an exampleinvolving a conceptusedfrequentlyin computerscience.Given
any real numberr, the floor of ;r, or greatestintegerin x, denotedixl , is the largestinteger
that is lessthan or equal to x. On the numberline, lxl is the integerimmediatelyto the
left of .rr(or equal to x if ;r is, itself, an integer). Thus 12.31-- 2, 112.99999
) : 12, un6
L- I 5l : -2. Consider the following two questions:

1 . F o ra n y re al numberx,i s l x - l l : [x] - 1?
2. For any real numbersx and y, is lx - .vl : lxl - Lll?
Take a few minutes to try to answer thesequestionsfor yourself.

It turns out that the answerto (1) is yes,whereasthe answerto (2) is no. Are thesethe
answersyou got? lf not, don't worry. In Section3.5 you will learnthe techniquesyou need
to answerthesequestionsand more. If you did get the coffect answers,congratulations!
You have excellent mathematical intuition. Now ask yourself, "How sure am I of my
answers? Were they plausible guessesor absolutecertainties? Was there any difference
in certaintybetweenmy answersto (1) and (2)? Would I havebeenwilling to bet a large
sum of money on the correctnessof my answers?"
One of the best ways to think of a mathematicalproof is as a carefully reasoned
argumentto convincea skepticallistener(often yourself) that a given statementis true.
Imaginethe listenerchallengingyour reasoningevery stepof the way, constantlyasking,
"Why is that so?" If you can countereverypossiblechallenge,thenyour proof as a whole
will be correct.
As an example, imagine proving to someonenot very familiar with mathematical
notationthat if ;r is a numberwith 5r * 3 : 33, thenx : 6. You could argueas follows:
If 5r * 3 : 33, then 5"r * 3 minus 3 will equal 33 - 3 since subtractingthe same
numberfrom two equal quantitiesgives equal results.But 5x * 3 minus 3 equals5-r
becauseadding 3 to 5x and then subtracting3 just leaves5x. Also, 33 - 3 : 30.
Hence 5x : 30. This meansthat x is a number which when multiplied by 5 equals
30. But the only numberwith this propertyis 6. Therefore,x : 6.

t25
no',{ 'spJo'^ Jeqlo uI lnoq€ sl luetuelels
lnJJO l€q1 sIUJal llB .]OSSulueetueql '^dou{ lsnlu
.{llsluJ ro qlnrl eql alunlc'\e o1 JepJo uI
eql leq,^ApuglsJepun lsnu no{ 'luetualuls e Jo
suo!1!ulpo
'sJequnuslls0dtuof,puu oIuIJdpue
flueurrrd uollses slql .+o1u31uoJlllJuEtueqlEru eqJ
sreSalurppo puE UeAsSUJeJuoc
'JequnuE ue^a lou sI 0 = [ pue 're8elut
.Z ,eldluexeJod .SJe8eluI lou eJeSJsSeluI .+os}uollonb
ue lou SI ,ZlE SlenbeqJIqA E
- puu 'seJuoJeJJlp 'srunsleql sueotuslt{J
rsotu.esinocJO 'sraSelulore sre3elulJo sl3npord
.uorlsBJlqns 'uoltlppsrepunpesolr sI sJeSelul.Io les 3ql ]eql otunsse?'!\
uorleclldrllnu pue
'uor tlpppul ' J:y ueql') :gpueg- yJI (E )pue' y-gueql g:vJ\\o' v:v
.J pueig-'y streiqo nn ,og ,fitrnnbe;o sergedordeerql oql asnosle eAA'V xlpueddv
t)
€ elunsse31Y\ lxo}
ur pelsll eJeqclq,^d'erqe31uclseqJo s'ltel eql qlI^A'{luellruuJ :;:1JLr""
eq];o pue eql ol pe^reseJlou
lo Ued tuegodrurue sI'Jeqler'1nqssecord3ur,t1os-ruelqord
sr;oord pue ,{re,tocsrpuoe,{\leq,{e1fue1ur eql 'sluelqord xeldruoc roc 'esleJsI luauelBls
elntuu oq} olul lqSrsur no'{ e"rr8
aql leql ,{relocsrp eql o1 peel ,(uru pue ruelqord eql Jo
ue^g 'eulnueSst ,{re,r.ocstp rnof leql 'ra'ou1ru'tr no'(
11* aurrrr 1o ssecordeql lleJ no{ JI
:fr"r"n. no.{ lno ern8u ol-'fu1'enr sI luouleluls ulEuor e lBql pere^orslp
31 'enr1sr 1r,(q,Lr. qlog
are;oord pue '{re'nocstp
a ruq no.{>lurqfnof ueq16 '8urn1o,ruelqord3o sgud IErBeluI
per.tlv -'sBwqt tolncr l'tod alru{ap
Lt6 I-l 98 I'peeqalrqlA quoN
yoqrt suotlrsodotd
[o uotwt{natts ]noqllti sButql ,,attros,, lnoqD 10 siuttll ,,'iun,,
pa tottl' 4a a tgn Qqoq o ttl ' auo autos^1u{uatl npa)uatuLuo) 'aJLt al JS D S D 's) I l D Luaql D W
uorpnpoqul
:l epuexetewnoJpuepou lra4o I't
.3
'surelqordleJlleruaql€urol suollnloslno'{ ur eJuepguoJ
eql e^elqcuol IelluessesI
aloldruoce^eqol er€no,{JI pepoeusI leql .(luIeUeJIEJIlPuoql€tu
.u?eu nof leq,r ol .,{Jessereu1l pug [r,^Ano,{ 'uo{e]
a3en3ue1 pue lqSnoqr1o uoirrr"r4
^es 'JeldeqJslql uI '^es
lo^o eABqno.{ esrnoJ sJllutueql; reqlo ,{uu uI ueql erou sdeqred
plnoqseqslBq,ry\ sI tBql ueql '8urqt e suee{ueqs;1 :a3un8ue1 Jo asnreq uI eslJerd
^llrexe '(Z'I
eq plnoqs eqs 'spJo,^A reqlo uI ,.'ueeu no{ lu{a ,(es,,ol ecIIV sllel eJeHI{rreIAIeql
uorttes uI 8Z eslcJexeeas) w artlv s.IIorrI?JsLde'I uI lurod utugeoe 1y
' puDuapuo\
8ur11nser oqt uI oplr ol lue^\ lou '(lqeqord plno'Lr'no'{
"geicriu
'srs,(puesIq Jo sseulseJJoc eql .Io 'ellllsod lou lnq 'erns '(Fre4'{1uose'tl u€IJllerueqletu
.elunbepusr sed.&eulSue snoIJeA,{q pere,ttlep lsruql eq} Jeqleq'4l
aql iw ,treu1nof ;1
Surururrelep;o qof eql uo^Ifl st uerctlerueqleru eql l€ql esoddnspuu 'eulSueeuelfuru;oed'(1
qll^dpe8J€qc'tueele ro; 'asoddnS
\\auu Suru8rsep Jo Uedst uetrtlutueqleu? luql 'elduexe
q] eepJoaJI IJ oJ eilB tuuequus lueunS Jel eJl ]eul eql P ul eJo S se u tce xo JS e tu l l e u l o s
'apetue^eq e,u suorldrunsstsnolJsuocuneql uI puEsluelunSJe Jno
Jr sesseu{Be1\ Jo ere,^Ag eruoJeqol sn seJJOJ lOord e Surlt:,tlleql sI sclluuleqteurur;oord
'asp; ,(1pn1ceere sllelep esoql leql
iuurnber JoJ uoseerluugodur lsoru eql flqeqo:4
lo^ocsrp.(eqt'stueun8rerreql uI ..SIIelep.. Otuosoultrlexof11n;erecsuulJlletuel{lelulsoq
,,{ltuanber;ool ,{ueruoo13ur'(1ddnsJo epts
.q u"n" ueq,rt ilv ',\\oJool ueql leqlel suoseer
nof ueq6 'ueq1 '{Iddns
:ql uo JJeol Jeleq s1f1're.te.tloq's;oord altJ\\ ol iuru.rtel ls-lqOJu
uIEueJJoJsuosEeJ
ilsea uuc Jepeal3ql lBql luepuuocare ,(oqtuaq\\ ttterttni-ItueJo sdels
oq] Jo uolleJltsrqdosluollurue
tr1goueuo suer3rluueqleu 'ecrlcurduI Jepre-lpapu.lul
s eraql osJnof,Jo
-ql8tuJo le^el eql uo Surpuedep';oord srqt esr:qd c)1 ie \\ req]o ere
,{re1uaua13
loord]o spotllanpuetuoaqlroqLunN t la}deqC 9Zl
3.1 Direct
Proof
andCounterexample
l: Introductjon
I27

iel of math- in the statement.Mathematicians define terms very carefully and precisely and consider
i often orru: it important to learn definitions virtually word for word.
:r caneasilx
to err on thi
len eventhi
e) disco\e: An integer z is even if, and only if, n equalstwice someinteger. An integer n is odd
lr requirins if, and only if, n equalstwice some integer plus l
:aknesses ir- Symbolically, if n is an integer, then

t-eor death n is even <+ 3 an integer /<such thatn :2k.


rning a neu z is odd e 3 an integer ft such thatn : Zk + l.
leterminin-s
e$' that the
Lisanalysis. It follows from the definition that if you are doing a problem in which you happen
to know that a certain integer is even, you can deduce that it has the form 2 . (some
J in Section integer). Conversely, if you know in some situation that a particular integer equals
e shouldbe 2 . (some integer), then you can deducethat the integer is even.
sheshould Know a particular n has the form
deduce
r haveever ------->
integer n is even. 2 . (some integer).
rd language
'e complete Know n has the form deduce
2 . lsomeinreger).

Example 3.1.1 Even and Odd Integers

Use the definitions of even andodd to justify your answersto the following questions.

a. Is 0 even?

b. Is -301 odd?

c. If a and b are integers, is 6azb even?


k you have d. If a andb areintegers,is lOa * gb * 1 odd?
ru succeed.
trying will e. Is every integer either even or odd?
ry that the Solution
rd proof is
:antpart of a . Ye s ,0 : 2.0.

b . Y e s ,-301 :2(-151) + l.
re listed in
a n dC , (l ) c . Y e s ,6 a2b:2(3a2b),andsi nce aandbarei ntegers,soi s3azb(bei n gapr oduct of
n addition. integers).
:iplication. d. Yes, lUa -f 8b * | : 2(5a + 4b) 1 l, and since a andb are integers,so is 5a 4b
urse,most I
(being a sum ofproducts ofintegers).
. is not an
e. The answer is yes, although the proof is not obvious. (Try giving a reasonyourself.)
ld integers We will show in Section 3.4 that this fact results from another fact known as the
quotient-remaindertheorem. I

The integer 6, which equals 2 . 3, is a product of two smaller positive integers. on


the other hand, 7 cannot be written as a product of two smaller posiiive integers; its only
t what the positive factors are I and 7. Apositive integer,such as T,thatcannotbe written
as a
that occur product of two smaller positive integers is calledprime.
I 'erqeSp
Jo e^rlnqrrlsrpor{tfq rgt + t77s1unbaqcrq,r .(s6 + IIDZ - yZ ,uortqllsqns,{q
pue^\eI
isre8elur;oslcnpordgorunsE sr lr esneJeqra3aturue sr I ueqJ ..e6+ r ll : I teT .q
's requnueruudl leer€l pue'g'€pue ueq J.0 [ : u te T .e
L1_g: S * g:0I
uorlnlos
' 1 2: s B I+ rZ Z
tuql qrns I re8elur ue E :Sur,LrolloJ
oql o^otd .sre8elurere s pue ; 1eq1esoddng .q
'sloqunu erur.rdo,m1
Jo runs e se sfe,r,ro,4l ur ueJJrJ,{\ eql e^oJd .e
eq uEc leql u reSelurue^e ue E :3ur.tro11t-4
aJualslxg Jo sJooJd aarlJnrlsuoJ €.I.[ aldruexg
.aJuolsrxa
Jo syoo.rd
Jo
a^rlJnJlsuoJpellec eru spoqleu oseql r{log 'n u3 qcns SurpugroJ suorlJeJrp les e
Jo
e,rr8ol sr ,(e,Lrreqtouv 'enrl (r)fl se>1eru
leql Cr ul r us pug ol sr srql e,rord o1 ,{u,ueu6
'e uI x euolseelte roJenrtsl (r)A
Jr fluo pueJr erulsr
(r)Orcr+qcnsOI rE
IUJoJ
aql ur luotuel€ls eql o] Burproccy
e t I'Z uortcosur ue,rr8uorlrugep
slueweJels lequelsul 3utrrot4
I u , 0r, 6. 8 . 9, , . p
t t ' r|L' 9' t ' z ' r
'rer{10qcee suorleSeueJesuorlrugopolu oql 'I ueql releerSreSelur,{ue
Jo rog .se^ .q
'I ueql releer8eq o1perrnbersr roqunu erurrdy .oNI .e
uorlnlos
'sJeqtunuelrsodurocxrs lsJg erp olu711.p
'srequnu eurrd xrs lsJg eqt olrrd\ .c
ielrsoduoc ro erurrd reqlro sr 1 ueql releer8 ra8elur ,{re,re1eqlerul lr sI .q
.e
ieugd 1 s1
sraqrunN allsodruo3 pue erurJd 9.1.9 elduexg
'I lsp uu I+ rpue
s . "1: u tuql qcns.rpue I sreSelur st U
e,trlrsodE <+ elrsodruoc
s.r: urr.spu'
l#l:r:;i'#T srr.,
<+ eruud
uor{l 'I ueql -telear8sr 1uq1re8elur uB sr 1/Jr ,(gucqoqru,(g
'1 I spue 1l tr4rz l..rpuel s.re8el ure,trl rsode ru o sro s.r:1
J r
pu€ I < zzJr,(popue Jr alrsoduroJsr ure8elur uV .I : s Jo - I ueql 6s. r : r.t
I
Jr 's pue -r s;e8elur e,rrlrsodIIu roJ pue | < u'JI,(1uo pue 'yr aurl.rd sr zzre8elur uy
loordlo sporllan pus Alooqf.loqulnNfieluoLualf g taqdeq3 gzl
Proof
3.1 Direct andCounterexample I29
l: lntroduction

Anonconstructive proofofexistence involves showing either (a) that the existence


of a value of ,x that makes Q(x) true is guaranteedby an axiom or a previously proved
theorem or (b) that the assumptionthat there is no such x leads to a contradiction. The
disadvantageof a nonconstructiveproof is that it may give virtually no clue about where
or how r may be found. The widespreaduse of digital computersin recentyearshasled to
some dissatisfactionwith this aspectof nonconstructiveproofs and to increasedefforts to
produce constructiveproofs containing directions for computer calculation of the quantity
in question.

DisprovinglJniversalStatementsby Counterexample
To disprove a statementmeansto show that it is false. Considerthe questionof disproving
a statementof the form
Y x i n D ,i f P (x)then Q@ ).

Showing that this statementis false is equivalent to showing that its negation is true. The
negation of the statementis existential:
lx in D such that P (.r) and not QQ) .

But to show that an existential statementis true, we generallygive an example,andbecause


the exampleis usedto show that the original statementis false, we call it a counterexample.
Thus the method of disproof by counterexamplecanbe written as follows:

Disproof by Counterexample

To disprove a statementof the form'oVx e D, if P (x) then Q @)," find a value of r in


D for which P (x) is true and Q (x) is false. Such an x is called a counterexample.

Example3.1.4 Disproof by Counterexample


Disprove the following statementby finding a counterexample:
Vreal numbersaandb,ifaz : b2 thena: b.

Solution To disprovethis statement,you needto find real numbersa andb suchthataz : b2


and a I b. The fact that both positive and negative integers have positive squareshelps
in the search. If you flip through some possibilities in your mind, you will quickly see
that 1 and -1 will work (or 2 and -2, or 0.5 and -0.5, and so forth).
rqe

Statement: V real numbers a and b, if az : bz, then a : b.


Counterexample:Let a: l arrdb: -1. Thenaz : 17 : I andbz : (-l)z : l,
and so a2 : b2. But a f b since| + -L

It is a sign of intelligence to make generalizations. Frequently, after observing a


property to hold in a large number of cases,you may guessthat it holds in all cases.You
may, however, run into difficulty when you try to prove your guess. Perhapsyou just
have not figured out the key to the proof. But perhapsyour guessis false. Consequently,
dLt:
when you are having serious difficulty proving a generalstatement,you should intemrpt
" -i your efforts to look for a counterexample. Analyzing the kinds of problems you are
T encountering in your proof efforts may help in the search. It may even happen that if
',(uedord
eql segsll€sr leql ,troqspue'ulutuopoqlJolueurale uasoqr[1uw]tqtn lnq "topctynd
u sr r esoddns',(gedorduleuecE 53USIIES ululuopu Jo lua1llels,{rea.e oJ
1uql,^AoI{s
JBInrgJBd J.IJeuoc eql luoJJ Sulzqurauag Jo poqlatr{
:poqletu
eql 8ul(lrepun eepr aql sI ereH 'nlnnLtod n.taua? ary wo.( ?ur:4otauat lo poq|aw erqt
re^.ouleuop eql Jo ezISeql;o sselpruSer
pelluc sr t1 'pegrluunbsI lueuelels eql qclq,^A
lsoru oqJ
s{Jo,lAlgql euo sr Juetuelelsl€sJelrun u 3ur,'rordJoJ enbruqsel 1n;re,L1od
'1ectlcerdrut,,(lsnot,tqo
sr uorlsneqxeJo poqleu eql fq ssoulceuocSurlceqc '(sre,r,rsue oql Jo eql {ceqJ
strnpoJd elqrssod
ol e{€l plno^\ 1r eurl eql uorlueu o1 lou) eSue: slr ur sreqrunullp Jo^ourncou
'e8uer
IIB elndruoJ ol lsnf sree,(;o spuesnoqlerlnber p1no,r,rrelndruoc 1ecrd.ftE aculs
s.JelnduoJeql uI sJequnu;o rrud ,{re,rero3 llnseJlcoxoc eql s3^I3 ralndtuooJelncIUBd
? Jo uorlesrldrllnu eqt leql uorlsneqxe,(q >1ceqc ot 8ur,{rl'eldruexaro; 'aur3uru1
'uorlsneqxe
^IrncJrc
Jo poqleu eql osn ol eIqISEaJUI eq ,{erulI 'elluq sI urcluopeql ueq,,!\ue^g
.1su1 elqrssodrurue sI slql 'srequnu qcns ,{ueu ,(1elrugurere ereql esnureqpug 'reflelul
ue1e fro^e {ceqr 01 eABqplno,^dnof luql op oJ 'oN isJeqlunu eluud o,4d.1 Jo tuns E se
ueUrJ,lA equu) Zueql JelBeJS JeSalutue,nefuaAalvql uollsneqxa,{q e,tord no,{ uec 'ecuulsut
JOd 'pasneq louuet uollsneqxeJo poqleru eql 'Je^e,/\d,oq 'sJllelueqlelu uI ses€Jlsolu uI
I 6I+ Il :0€ l l + II:8 2
6I + L:92 6l+ 9:V Z Ll + S :ZZ tI+ L :0 7
I I+ t: 8I II+ S: 9I t+ tI:?I L + 9 :Z I
9* S :0I S+ €:8 t+ E :9 7 l Z :t uollnlos
'srequnu eLuudo,4Al
Jo
runs€ s€ uelur,4A
equec,l ueql'0€ = u = rpue ue^esr u !'z > uA
:lueuelels 3ur,uo11o;
eql a^ord ol uollsneqxeJo poqleu oql esn
uollsnBqxgJo poqlal l aqJ s'I't aldtuBxg
'(r);r uoqpuoc
oql ,{Jsrles13t11 pesn
slueuele Jo raqlunu elluu e ,{1uoere ereql ueq,^A eq osle uer poqleu
srqJ 'uorlsnBgYeJo poqleu eql ,{q pe^ord eq u€r luoluelels B qrns 'eltug sI cr u3q,^Aleql
puB ruJoJslql uI uelllJ,^d
eq u€c lueluelulsIBSJe^Iun,(ue lBql pa,\\oqsoAAI'z uollJes uI
'( x)A ueqt (r )al ' C I ) xA ,
qcns e,tord o1,lroq
:uuoJ pJepuulse uI ueql eur8etuto11n;d1eqsI lI 'sJuelueJuls
Surssncsrp
uI 'IesJe1runeJepe1oJdoq 01 slueruelelsIucllerueqtuluJo ,{lrrolerulSuAeqJ
sluewepls psnAlun Ewaot4
'pnbe eJe sJequrnu eql ueql '1enbe eru slequnu atqtsod ol.tl11o serenbs
er{l JI lEql erul sI 1I 'Je^a^\oH 'lBnbe ere sJeqlunu eql ueql '1enbe ere sJequnu o,t\} Jo
seJBnbseql Jr leql eru1 s,(um1elou sI ll lBql s^\oqs 7'1'g eldruuxa 'ecuelsul roC 'luetueluls
eql Jo uorsre^ eru] lnq pelFrll eJolu e el€lnluroJ uuJ no{ leql peguelJ ,{lluercg;ns eq .{utu
Surpuelsrepun rno,( 'osluJ lueruelels eq] e,tord ero;ereqt pue elduexerelunor e pug no,{
]oord]o spoqlonpueiloaql raqLUnN
,{re1uauel3t ra}dPqc 0sI
l: Introduction131
3.1 DirectProofand Counterexample

derstanding Example3.L.6 Generalizing from the Generic Particular


rsion of the
At some time you may have been shown a "mathematical trick" like the following. You
the squares
ask a personto pick any number, add 5, multiply by 4, subtract6, divide by 2, atd subtract
: that if the
twice the original number. Then you astoundthe person by announcing that their final
result was 7. How does this "trick" work? Let x stand for the number the person picks.
Here is what happenswhen the person follows your directions:

r discussing Step Result


n: Pick a number. x

Add 5. xl-5

is form and Multiply by 4. (x+ 5).4:4xI20


rstion. This Subtract 6. (4x * 20)- 6:4x -l 14
t satisfy the 4x+ 14
Divide by 2.
2
Subtracttwice the original number. (2x I7) - 2x :7

Thus no matter what number the person startswith, the result will always be 7. Note that
the r in the analysis above is particular (becauseit representsa single quantity), but it
is also arbitrarily chosen or generic (becauseit can representany number whatsoever).
This illustrates the processof drawing a generalconclusion from a particular but generic
object. I

The point of having r be arbitrarily chosen(or generic) is to make a proof that can be
generalizedto all elementsof the domain. By choosing x arbitrarily, you are making no
I specialassumptionsabout x that are not also true of all other elementsof the domain. The
word generic means "sharing all the common characteristicsof a group or class." Thus
re used. For everything you deduce about a generic element x of the domain is equally true of any
n be written otjrerelementof the domain.
every even When the method of generalizing from the generic particular is applied to a property
sibletask. of the form "If P (x) then Q@) ," the result is the method of direct proof . Recall that the
exhaustion. only way "If P(x) then Q@)" can be false is for P(r) to be true and Q@) to be false.
ircuitry of a Thus to show that "If P(x) then Q@)" is true, supposeP(x) is true and show that Q(x)
computer's must also be true. It follows by the method of generalizing from the generic particular
compute all that to prove a statementof the form "Yx e D, if P(x) then Q@)," you supposex is a
ruld take to particular but arbitrarily chosenelement of D that satisfiesP(x), and then you show that
xhaustionis
-r satisfies0(x).

that works
It is called Method of Direct Proof
derlying the
1. Express the statementto be proved in the form "Yx e D, if P(r) then 0(x)."
(This step is often done mentally.)

2. Start the proofby supposingx is a particular but arbitrarily chosenelement of D


for which the hypothesis P(x) is true. (This step is often abbreviated"Suppose
ose _{ ls a x € D andP (x);' )
nisfiesthe 3. Show that the conclusion Q@) is true by using definitions, previously established
results, and the rules for logical inference.
's Z+ tZ: Lt+ w
:u p u e
raJo oceldur suorluluoseJdeJ esaqlelnlrlsqnsol olqeuosuersrueeslr '(s7 su) u pue Q7 se)
ra roJ suorlulueserdereleruellu puno; lsnf SurAeH 'u + ut uorsseJdxeeql lnoqe Surqleuos
.1[oqsot nof 'spJo,^d,
luezrr Jeqlo uI 'ue^e sr u + M lr.-rltsr ,\\oqsol lu8,\\ nof 1eq,| .tr,o51
('esuceqt eq tou peeuqrrq,r 'u pnbe ppo,r w veqt'tZ : u
pve rz : ru Jespeq nof JI 'Je^eosl€qmsreSelurue^e Jo rred .(ue eq pFoc .(eql-uesoqc
.(lrrerlrqruem u pue ?l/leql sr s pue l sJellel lueJeJJrpo,\\l esn ol eluq no,( uoseer eq1;
's reSeluretuos JoJ'sZ : u puu .r .te8e1utetuos JoJ'rZ : *
'ue^e eJBu puB M ecurslBrll uorlruuep eql
tuoq s,r\olloJ 'uele eq o1reSelurue roJ suuetu
lI tl lpq,,vr lsnu no,t snql pue-uuel
^\oDI
srr{lJo uorlruuep eql esn lsnu no,( 1a3a1utua^a ltrueleql e^Io^ur qloq ecws ..iuorsnlcuoJ
oql ol lurod Suruels eqt tuoq 1e3 1 op ,lroH,, JlesJnof >1suot peeu no,{ lurod sqt tV
'ue^e sr u + Lu:$roqs oI
.,6;oordeql elelduroc ol repJour ,{oqs ol peeu I op uorsnlcuocl€ql11,,Jlesrno,( >lseueql
'sre8elurue,re,(ue em u pua ar esoddn5
:rruoJpelst^eJqqeur 'Jo
'ueAe
are l€ql sre8elur uasoqc fyrrerlqru 1nq repcrged eJe u pue az esoddng :7uro4 3ut1tn7g
';oord eql Jo 'ecuelueslsrg ro 'lurod Suruuls eql no,{ se.,rr8uorlsenbe qcns ol re,usuu
aq; ..l8ursoddns 1 rue t€q./y\,,ro ..auroq Suruels I tuu erogi11,,';lesrnof {sB lxeN
'ue^e eq osle IIr,r\ I.unsrreql ueql ue^e ere
rueql qloq 'ue,tr8 eq
Jo JI tq8rru nof sreSeluro,^Al lBq,4Arelleru ou leql ,4aoqsol peeu no,{
'preue8ur 1re,Lordol snqJ 'ur?uop elruguru€ JeAopegrluenb,,(llesJeArun srluetuelelssrqJ
'uele sr u + u.tueql uele eJeu pve M lr'u pue w sre8elurA^:Uazua$rlsaypurJotr
eJoorde e^rrep ol esn plnoc no^ poqleu luoluelels eql
sr leqi& 'sql u€ql pelecrlduoc ororu qcnu ere,l pe,tord eq ol lueueluls eq1esoddng
'1ureue8ur enrl sr luaruelulseql snqJ 'uele sr qclq,tr.(s + r)Z: sZ + rZ
'erqe81eJo e^rlnqulsrp eqt ,(q puy '^r puu -1sre8elur etuos roJ sZ pue .12sB ueql
^\eI
lueserdelo1elqrssodsr 1r 'sre8elurue^e o^Al,{uuue,rr8lng 'ue^o sr tuns Jreql,ue,lr8ere
sre8elurueneleqa ralluru ou leql ,ry\oqs ol peeuno,( 'preue8 ur lueruelulssrql e,rordo1
'l€Jeued
ut erul eq o11rc;te.( pue seldruuxeJo reqrunu e8rel e roJ ploq serpedord,(uuy41.secuulsur
relncrlredeseql ur qlrul slr Suqceqc ,(q praue8 ur enJl sr lueruelelsaql lEql ernsroJ 1r\ou{
louuBJno,{ 'sreqrunuue^o Jo srred1p >1ceqc ,{lqrssodlouuec nof ecurs.JOAolr\oH .ue^e
aresrunsrreql teqt{reqc ,{lpluetu puu 'tg + gZ'Zl + Z,I 'U + g,V + 7 ,(es.sreSelurue,te
;o srred euos eur8erugtq8rur no,( esucsrql uI 'erul eq 01tI e^erleq no.( reqleq.trg1esrno,,(
ISUol eeprpoo8 e sr 1r'pe,,rordoq ol lueruelelsB qtra pelueserdere no,{ ra,leueqrq uoqnlos
etueseqt eq tq8nu ,(eqt tnq '!lcurtsrpeq o1f1e41 ,{,re,r,
ere sre8eluraq1 fperlrqru epetu sr sre8elurJo ecroqce;1 .sre8elurlcurlsrp
o,&\lol reJer ,{luesseceulou seop lueruelels srql ur o^\t proa eqJ iuolne7
'uole sr sre8eluruele o,\\l ,(ue;o uns eql leql eloJd
ruoroaql B Jo Joord lrarlq V ,.I.€ olduruxg
pue,&oeqlroqL.unN
]oordl0 spor..llan g teldeq3 ZtT
^ieluoLuall
andCounterexample
Proof
3 1 Direct 133
l: Introduction

this meansthat m I n can


Your goal is to show that ru * n is even. By definition of even,
be written in the form
2 ' (someinteger).
what is to be shown to
This analysis narrows the gap between the starting point and
to I\\'11
showing that
Iers are
2r * 2s : 2' (someinteger).
which saysthat
why is this true? First, becauseof the distributive law from algebra'
.deato asr 2r l 2s: 2(r + s).
re pairs .': which implies that r * s
J SUmS ar3
and, second,becausethe sum of any two integers is an integer,
'OU Canlta: is an integer.
and giving a
'particulr This discussionis summarizedby rewriting the statementas a theorem
theorem refers to a statement that is known
r be true ir formal proof of it. (In mathematics,the word
formal proof, as well as many others in this
to be true becauseit has been proved.) The
logical flow apparent. Such comments are
en lnteseri text, includes explanatory notes to make its
be omitted entirely. For this reason they
) represen: purely a.onu.ni"n." foithe reader and could
of algebr.:- are italicized and enclosedin squarebrackets: [ ]'
has compared con-
Donald Knuth, one of the pioneers of the scienceof computing,
to writing a mathematical proof
is. What i. structing a computer program from a set of specifications
this analogy, the bracketed comments can
based on a set of axioms.* In keeping with
documentation provided by a good program-
be thought of as similar to the explanatory
:\'en. a human reader
mer. Documentation is not necessaryfor a program to run, but it helps
t in generai. understandwhat is going on.
rth of thern

;ing?" The Theorem3.1.1


: proof.
The sumof anytwo evenintegersis even
:ersthat are
Proof:
mustshow
Supposezr andnareltarticular but arbitrarily chosen)evenintegers. lwe
By definition of even, m : 2r andn :2s for some integersr
thil m + n is even.f
and s' Then
the proof?"
m * n :2r * 2s by substitution
:2(r I s) outa 2.
byfactoring
point to the
nition of thrs Hence
Let k : r * s. Note that k is an integerbecauseit is a sum of integers'
bllows from
m I n :2k where k is an integer.
show'll
It follows by definitionof eventhat m * n is even. lThis is what we neededto
I
re arbitrarill
.n t: 2r a n d
you realize that
Most theorems. like the one above, can be analyzed to a point where
rvantto shou' as soon as a certain thing is shown, the theorem will be proved. When that thing has been
ltationsfor ttl
in placeof nr

*Donald E. Knuth, The Art of computer Programming,2nd ed., vol' I (Reading'MA: Addison-
Weslel. 1973),P. ix.
r see page l l 3 for a discussionof the role of universalmodusponensin this proof.

-
''' uaroaqt Kq pue ' ... ,stsaqtod.iq,(q
to ttorltu{ap {q se qcns
saserqdSursngoordrnof;o dels qceeroJ uoseareql etecrpq .pa{unsseee ol peer8e
sr
ro peqsrlq8lseueeq flsnorlerd seqtuql llnser Iecrleuaqleru 3 eq ro Joord eql ur rerlr€e
peuElqo unser B eq Jo 'ueJoaql eql ul suuel er{lJo euo uorlruuep eql uro4 ,4aolloJ
Jo ro
Iueroeql er{l srseqlod,(qeqt ruorg,(11cerrp
Jo ouor plnoqsJoo,rdu ur uoruesseqceg
'yoord.rno,{ur a{Bru no.i uollrasse qJBaJoJ uosear B aAIC .S
.,'spnbeqcg,!\,, se u8rsspnbe
ruanbesqns
qcBepue,.spnbe,,su u8rs slenbelsrg eqr pBOr,ecueluese sBsrr{rpBeroJ
'(s+ t)z -
sZ+ rZ- u+1//.veqJ-
eJueluaseql surBluoc I.l.g ueroeqJ
'secueluesotur {ueql elerofuocurplnor{snof
-10;oordeql 'elduexe Joc luq] lsnf .suor1
-Br^eJqqepueqgoqs puu sloqtufs Bursnpro,repFoqs no.{ leql ueoru
lou seop srqJ
.seJueluasalaldruor
u; goo.rdrnof a1rrr11.y
roJsz- u'ue^esr .alu^\
u ecurs,, plno^{ .s
no,( .,(es
teSelur
snq; ;oord 1r "u,,r-":jji:""#tr:Tl;
eql ur relsl ,,(lelercuoc rllr^\ >lro,r uuc no.{ lsql os otueu u reSelur ,1qt
ol luelueAuoc,(1ensnsr 're8elur eluos Serurl
11 spnbe u leql ,&oII>Inof ueql .*n""n,d
7 ,,
u re8elur rupcqred e ruqr A\ou{ nof .rsrxe01 u1r\our
;r 'elduuxe roc sr reql ,{lrruenb
e lueserde.rol elqeue^ lrreu B ecnporlur .,(eu no,( rnof ur
Joord lurod -re1u1 u
Jrvr"ro
ralndruoc e;o Suruur8eqeqr re sed,e elup rreql pue serqeuu^ Bur.ru1cep
or relrurs sr
llqJ .,'Z uuql releerSsr luql reqrunu Ieer e eq r le-L, ro er? u pue rz
..sre3e1ur esoddns,,
a1q Surqleuos eq plnol'' Joord rno,(;o ecuoluesrsru eqLere ,(eql .1r"iqo go puDI
rBq.4A
3ut1e1s pue serqerJ'^ Iertrur eqr Burcnporlur.{q sgoordu,3eq 1p,nnor snql
loord eqr
_1o,{poqeql ur goordrno, ur pesn eIqBLmA qcee,(;queprplnogs no,( leql sueet.,srqJ
'paursluoJ-Jlasgoord rno,{ e1etrX .g
.;oo.rJ proan .7
eqf qll,u yoord rno,{ go Buruur8aq aql
{rer.u {1.rea13
.leded .rno,{ uo pa,Lo.rd
aq ol ruaroaql aql Jo luoualels eq1,{do3 .1
:s;oordgo suorsJelIBuUeql
SurluzrrJoJpr'puuls ,(Fre; eruoceq e,req e1.(1s
Jo selru Bu,^ro11tJeql .sree.{ ,"ng
'll puqeq slq8noqt pessa:dxeun ,(ue "ql
.u,4aop
lou alF,r\
.i1pn1cenof 1eq,tr,{1uoees IIr,{ ele.'ss'lc tno,{ leqt puro, ur dee;q .e1e1duoc
pul rn"1"
aq o1,ft1 'esJnocrnof 30 01*\1
ro {ee,r\ rsel eql ssnu ol pBr{suq oq,r erBusselcelqedece
o11rSurpueseq ilI^\ nof luql eurSetur
Joord e allur no,,(ueq^\ .lueuolBrs leJrleuer{lBru
P Jo Iilrul eql JoJ luarun8re 3urcur,,r.uoc € elecrunuluoc o1 .{e,n e se ;oord e
Jo {ur.IJ
srueweBJspslaAlunp sloold 3u111t114
tol suo\reilo
'ue^e sB1(u + Luleql ecnpopol
pssn s,'r uorlruuep eq1;o ged (+)
{l eql 'uorlelndru'ru pue uorrnrrrsqnscrerqeSleetuos
raue'uaqJ 'tu_ro.; preue8 u*uec Epe\upue ..teql eJnpepol pesn s',r\ uorlrugep
eql
-Ioued (+) tt quo eqt 'ue^e eq ol u,ry\o'Iere^\ ?.1pue u eours .l.I.E ueroeq;go;oord
eql ur pesn eJe,{\uele Jo uortruuep eq1 sped {.1uoeql pue y' eql
;o ! 4oq l€ql eloN
ropro 'uoqs
ursroord ror.a.a.oro,utnpuois:)W:::;t#;;:#rili:;'r'Jl:I"Ji:;
aqJ 66'^{oqs
ol pepesue^\ leq'ry\sr srql,,spro,4a
eqt qtln;oord eql pue or Iernleu sr 1r.ulroqs
loordlo spoqlaf! puefuoeql jequrnNIleiueutolf g reldeq3
1ltI
3.i Direct
Proof l: Introduction
andCounterexample 135

66littlewords" that make the logic of your arguments clear.


,s hos. * th 6. Include the
rcfs in a]fu When writing a mathematical argument, especially a proof, indicate how each
sentenceis related to the previous one. Does it follow from the previous sentenceor
: used i: "' from a combination of the previous sentenceand earlier ones? If so, start the sentence
r-r pr:n d" by stating the reason why it follows or by writing Then, or Thus, ot So, or Hence, or
Then- irim Therefore, or Itfollows that, and include the reason at the end of the sentence. For
on $'a-;-lrdd instance,in the proofofTheorem 3.1.1,onceyou know that ru is even,you can write:
"By definition of even, m : 2k for some integer k," or you can write, "Then m : 2k
for some integer ft by definition of even."
If a sentenceexpressesa new thought or fact that does not follow as an immedi-
ate consequenceof the preceding statementbut is neededfor a later part of a proof,
le mrttrn'il's, introduce it by writing Observethat, or Note that, or BuL ot Now.
sendinst mr Sometimesin a proof it is desirableto define a new variable in terms of previous
e. Tr1 n irc variables. In such a case,introduce the new variable with the word Let. For instance,
1.ou acn-:u@l in the proof of Theorem3.1.1,onceit is known thatm * n :2(r * s), where r and s
are integers, a new variable ft is introduced to representr * s. The proof goes on to
I lbr ul-liqgr say,"Let k : r * s. Then ft is an integerbecauseit is a sum of two integers."

VariationsamongProofs
It is rare that two proofs of a given statement,written by two different people,are identical.
Even when the basic mathematical stepsare the same,the two people may use different
r the bo{ d notation or may give differing amounts of explanation for their steps, or may choose
5 31d 5r*nrqg different words to link the steps together into paragraph form. An important question
mething hllm is how detailed to make the explanationsfor the steps of a proof. This must ultimately
han 1." Thrs be worked out between the writer of a proof and the intended reader, whether they be
a compro studentand teacher,teacherand student,studentand fellow student,or mathematicianand
colleague. Your teachermay provide explicit guidelines for you to use in your course. Or
, represem& you may follow the exampleof the proofs in this book (which aregenerallyexplainedrather
lar integer n fully in order to be understoodby studentsat various stagesof mathematicaldevelopment).
onveniemm, Rememberthat the phraseswritten inside brackets [ ] are intendedto elucidatethe logical
proof. Thu; flow or underlying assumptionsof the proof and need not be written down at all. It is
t. n: 1'- f 'm- entirely your decision whether to include such phrasesin your own proofs.

CommonMistakes
nd abbrer:,r-
the procrfd' The following are some of the most common mistakespeople make when writing math-
ematical proofs.
1. Arguing from examples.
Looking at examples is one of the most helpful practices a problem solver can
engage in and is encouragedby all good mathematics teachers. However, it is a
r subsequem mistake to think that a general statementcan be proved by showing it to be true for
somespecialcases.A universal statementmay be true in many instanceswithout being
true in general.
Here is an exampleof this mistake. It is an incorrect"proof" of the fact that the
the theorem-
sum ofany two evenintegersis even. (Theorem3.1.1).
;ult obtainod
stablishedcr This is true becauseif m : 14 and n : 6, which are both even,
sing phra-rcr thenm I n :20, which is also even.
Somepeoplefind this kind of argumentconvincing becauseit does,after all, consist
of evidencein supportof a true conclusion. But rememberthat when we discussed
:lueruSBJJJoord
3ur,t\o1103
eql reprsuoJ 'luEeur,{11eer sr asnDra.lpro.\\eql ueq.ry\
- pro^\ eql Sursnse,\Io^urJorra srqJ '300rde ur rolul suelqord ol spEalseurloruos
lou sr JorrououluoJ Jeqlouv
-:qt Suqurql esrcerdurslcegeJ1llnq Jleslr ur snorJOS
fi pro.s aql Jo esnsrHi .S
'uorlsenbeqt s8eq .,;oo:d..eqtJo roqlne erp
'1qJ'(l -l ttz otlunbe (1 + Sd . G + od Sur1es,{q)en4 eq ot ll serunssg 1snfre1e1
:ue (7 re8elureruosroJ I + 77 su pesserdxeeq ueJ u.:LawLll) arut aq ot uorsnlJuoc
:{l roJ su€etull lBq,r selels lsJUroglne oql leqt sr..Joord.. srqt qtr,tr urelqord eq;
u,{\oqseq ot sB,4a
teqa sl slqJ .ppoJo uortrugop,(q ppo sr
qrll{^\'l I lZ : G + qO(L + DZ) : uru u?ql.q puu,D sre8etureruos
roJ I + qZ : upue I + DZ: tu'ppoJo uorlrugep,{qosly .7re8alureruos
roJ I + IZ - uM ueqt 'ppo sr.uM lI 'sre8elurppo ere u pue M esoddng
'e{Elsru eues eql go aldruexeollqns eroru.roqlouesr oreH
'ppo sl uw erveH'ppo sI lrnpord rreql .per1d41ntu
ere sre8elurppo ,(ue ueq7y1.sre8elurppo ,{uu arz upue a,resoddng
:ppo sr s.re8elurppo o^\1,{uego lcnpord eqt teql
-r€Jar{l;o .;oord,, 3ur,ro1103
er{l reprsuoc'eldurexeue sv .uorsnlJuose ol Surdrunf
--r uorlBuu^e sr 1r :pe^oJdeq o1 sr leqa orunsse01 sueeruuorlsenbeqt 8eq o1
.uo11sanb aq1BurEBag.7
'uorsnlcuocu o1,{lernleruerdpedtunfseq .3urss[usr
.;oord,, eql Jo ror{lneaq;
(s + t )7, - sZ+ rZ
sql qlr.tt uelqord eq1
uorl€lncler lurcruc eqt leql sr ,.goo-rd,,
'uenosr u + tu oS)'sZ + rZ : u M ueqJ .,epue ; sra8elur
+ ourosJoJsZ : u
pue .tZ : Lu'Lre/\eJo uorlrugep ,,(g 'sre8elurue,re,{ue eJv,u pue ilr esoddng
'ue,\osI
ue^eo,4dl
'-re3e1ur .(ue;o runseql leql ..;oord,,3umo1103eql reprsuoJ .uoseerelunbepe
-u Sur,rr8rnoqu,r SurqleruosJo qrrul eql e8elp oJ supetuuorsnlcuoce o1durnf o1
'uorsnlJuoJe o1 Surdunf .g
.ue^asr pue
s EJo
'rns aql luql aoqs 10uplno,r;oord eqt 'ecuulsurrog 'sre3e1ur ppo uesoqJ.{luerlrqre
=-rBr/ puB Luleql uorlrsoddnseqt qlr.^ luelsrsuocursr srqJ .JeqloqrBe
lunbe ]eq1a pue
:,1sJeSoJur o1 fpo sertdde ;oord eql tser eql tBql s,^olloJ .u _ _
Jo tI I + ,tZ w rcW
.rrldurr upuv wqtoqroJ suorsserdxe eql ur'7'10qur,{sotueseql Sursn .lce.r.rocur sr srqr
'7 reSeluretuos roJ +
I lZ : u pue | * 77 : w
'ppoJo uorlruuop,{q ueql .sre8elurppo ore upue ut esoddng
:luaur8urg ..;oord,,Sur,rolyogeql reprsuoJ .elq?rre^pecnpoJlur,{lsnor,rerde se
:luBu Jeneletuesegl ,{1r1uenb elquuE^ ,rou e e,tr8sre^ord ue;oeql Suruurseqeuro5
's8u;q1luaraJJrpo,$l u€aru ol ranal atues aql Bu;sn .7
.u pve w sre8elur ue,re,{ue JoJerul sr uorsnlJuoceql l€ql ,roqs o}
iueurn8reue ea,t8lsnu no1 '9 : u pue ?I * M tolen$sr..ue4o sr u w,,uorsnlcuoc
+
rql leql ,t\oqs 01 luercgJns lou sr ,e,toqe elduexo
l[ eql uI .lueuelu]s en:1
e ,.e,r.o.rd,,
-r1pesn ,(pe>1u1srur eq ,(eu selduexe uor; lueurnS;eue .,(e,^A elups eql ul .uorsnlcuoc
arul u eABq1e,(puu prle^ur eq feur lueurnSruue l€ql 1nopelurod e,tr .slueunSru prlB^
loordl0 spoqlanpueiloeql roqLllnN
,&eluaua;3 g roldeq3 gsI
3.1 Direct andCounterexample
Proof 137
l: Introduction

)t have a true Supposep is a prime number. If p is prime, then p cannot be


(enly used to written as a product of two smaller positive integers.
how that the The use of the word fin the second sentenceis inappropriate. It suggeststhat the
an argument primenessof p is in doubt. But p is known to be prime by the first sentence.It cannot
be written as a product of two smaller positive integers becauseit is prime. Here is a
correct version of the fragment:
reletter narne Supposep is a prime number. Becausep is prime, p cannot be
ment: written as a product of two smaller positive integers.
t.
GettingProofsStarted
andn implie:
Believe it or not, once you understandthe idea ofgeneralizing from the genericparticular
to integers rn
and the method of direct proof, you can write the beginnings of proofs even for theorems
tm andn are
you do not understand.The reasonis that the starting point and what is to be shown in a
that the sum
proof dependonly on the linguistic form of the statementto be proved, not on the content
of the statement.

out giving an
Bxample 3.1.8 Identifying the "starting Point" and the "Conclusion to Be Shown"
even integers
Write the first sentenceof a proof of the following statement(the "starting point") and the
last sentenceof a proof (the "conclusion to be shown"):
2r and
r is even. Every complete, bipartite graph is connected. Youarenotexpected
to
understandthis statement.

Solution It is helpful to rewrite the statementformally using a quantifier and a variable:


domain hypothesis conclusion
uslon.
Formal Restatement:V graphs G, it G is complete and bipartite, then G is connected.

r variation of The first sentence,or starting point, of a proof supposesthe existenceof an object (in
f' of the facr this case G) in the domain (in this casethe set of all graphs)that satisfiesthe hypothesis
of the if-then part of the statement(in this case that G is complete and bipatite). The
conclusion to be shown is just the conclusion of the if-then part of the statement(in this
are casethat G is connected).
Starting Point: Stppose G is a fparticular but arbitrarily chosenl graph such that G
is complete and bipartite.
for Conclusion to Be Shown' G is connected.
*lfor Thus the proof has the following first and last sentences:
rich First sentenceof proof: SupposeG is a fttarticular but arbitrarily chosenl graph such
that G is completeand bipartite.
neansfor the lASt sentenceofproof: Therefore G is connected.
ntegerk) and
Of course,to reach the last sentenceof the proof, the definitions of the terms will have to
,t * l). Thu-t T
be used.

ShowingThatan ExistentialStatementIs False


rthinking thar
g the word ii Recall that the negation of an existential statementis universal. It follows that to prove an
agment: existential statementis false, you must prove a universal statement(its negation) is true.
'(1661'sser4eUoruIeCI:ryo1 ,rep) Iezrv C .rrury,(q Malqord
IDrltDwaqlDW tuanuv uD
lb ptcag aql SuDpopn :waroaqJ$D-I s,tourai :(g661.sloog ru?tu?g :ryoa me51)qoui(1uqol
puuq?urguours,(q 'xualqord lz)lmuaqpl I tsaloargs,puoy aqlaqos ot $anfi udg at11:otu7tug
s,lmtual lruelsfg Surlsecpeorg
Jrlqndeql uo o^oNserreseql rcl ,L66I ur pecnpord.,Joor4eq1,,*
(9961 utoq)
sall[^ Marpuv
*'f:e,rocsrp s.selr7y\Jo lueruelrcxepuu Buerp eql [e^uoc luql pecnpord ueeq e^eg
.r\oqsuorsrlelel frelueurncop luellecxe ue pue s{ooq Iero^es .966I ur scr1owaq7o747 lo {a
spuuv eqt ur peqsqqnd se,t\ 'pleu eql ur suedxe ,{q =
u lre1ep f;e,re ur tcerros pecunouoJd
pue pe{ceqJ ,(p8noroqt ueeq peq Joord pesr^et eqt ,V661Jo pue oql fg .,(lyncggrp eqt -
punorB,,(e,Lr e pepr,rordpeuopueqepue rarlJBesree,(uo pe>Iro1(peq eq qceorddeue leql
lnq Jorre eumueSB sp^\ JooJd eql ur dB8 eql ]Bql Surzrlvet,(leug 'ruelqord eql e^losor
01ree{ Jeqlouero; .{lSurseecunpe>lro,r\e11 .3uorm eq ,{gunlce lq8rur dels tBr{l leql pue
dels euo ,lpsnl tou plnoc eq leql punoJ selr 11'uortucrlqndpuroJ JoJeredeJdol pe{ceqc
.i1p;erecSureqsezrr;oordeqtJo Ued .fta^e elrq,ryr
te.r,e,troq.866I Joruurns
Jo eql BurJnC
'lurelrce epraplJo,{\ o1 ;oord e
peluese:deq 'uo#e pel€JtuacuocJo sreef L tqJe ,E66IJo eunf u1 .ernlcefuoceq1e.,r,ord o1
volvr'o11esflelerperutur selr/ll'llnser s,leqrdJo preeqeq se uoos sy 'pe3uo1eqernlcefuoc
prnrurgs-u(uefruu; eql qcrq,ry\ ol scrlelueqleruJoqrueJq eql ur Iro.{\ ol etuoc peq .llnpB ue
se 6puBplFlr E Ilrls elq,{{ Iur€Ir s.lBuueg ,(q penSulur euoceq peq .,$rsre,rrull uolesuud
lB reqrueu ,{11nce;pue uBrcrlB{ueqluur qsqSug uB ,selr l\erpuv .,r\olloJplno^\ (s99t-t09r)
(\ rueJoeql
loural ap alrald
s.lsulred ueql 'pelord eq plnoc 'ernlcefuocernurqs-euuf rue; eql 'lueruelels Jer.llo urgyec
Jr
e leqt pe,{\oqsfele4reg tB BrruoJrIBJgo ,grsre,,lruneql Jo teqrd r{leuue)
9g6I uI
'rueroegl lsBI s,leuued se uaou{ eq ol eruecluq,t\ roJ .elduruxerelunoc
e ro ;oord B Je^ocsrp01 pellBJprre porrl spuru IBcrlelueqlBtulselBerSeqt go eruos sree,(
oql re^o pue 'sreded srq SuoruepunoJ se,!\ te,retroq Joord o5 ,.'urBluor 01 llelus ool sr
ut3;eru srql qJrq^\ lueroaq] srql;o;oord elqu>lJur.uer ,{1ru1e perenorsrpe^eq L, lueruuoc
eqt qlr^\ Suop tooq e go ur8reru eql ur turBlc srq etor,{\ leuueC ( :
: ":l 7€,1 * 7g pue
: .g
,(: u rog) 7ZI
:9 zV* ,€ su qcns 'suorlnlosre8elur,{ueruseq uorlunbeer1c lseel 18sr
reql reSeluruB sr a lI uZ: ,{ I ux rilr/r\z puB'{'r sre8elure.trlrsodpug ol elqrssodurr
:' sr lr leql pelllrelc leuuec ep eJrerdu€rcrlBlueqleluqcueJd er{] 'o8e srue,(ggg ueql erotrAl
/aEtr lootdsry pue
tpotd 'anlcafuog
.I
I 'eruud 1ousr Z + uE *
,u os pue u€ql releer8qceesre8elurozq;o lcnpord
esr Z+ ut* z u s nqJ' (I q aesneceq)I < Z+ upue I < I+ uqtoql u q l p u e (sre 8 e l u r
Jo sr.unsere ,(eql esneceq)sJe8etur Z + upue l + uleqtelou oslBel(\ .(Z + u)(I + u)
: Z + uE + "re
zu ulelgo ol Z + uE + zu JolJeJuBc o/V\ l'au.ntdrcu st Z + ut + zu Wql
.rol4s lf,$ a 4] :e8elur e,rrlrsod fuasoqc tlttrultqn tnq rDlnnuodl f,ue sr z aioddng
:Joord
sr ..eurud sr.Z + ut * ,]rlljJ
,u Nr4qcns u Je8elure,trlrsodB sr eJeqJ,,luerualels
"r,
mlncqrud cueue8 aql tuo4 Surzrlereues,(q pe,tord sr lr 'IesJelrun sr uorlu8eueql osng3eg
'eruFd1ousr + uE l
Z ru, u sre8elurelrlrsod IIBrod
sr uorle8eueqJ .erul
sr uorle8eu slr 3ur,\ord o1 luep,rrnbe sr eslBJsr luetuolels ue^r8 eql lBr{l Bur^ord uorlnlos
'euud sr Z + uE +
zu leql gcns u re8elur e.r,rlrsodu sr ereql
:esleJsr lueuelels Sururrollo;oql lerll
^\oqs
luauralBfs l€lluolslxg uB Suraordsl( 6.I.€ aldruBxfl
joordjo spoqlowpue fuoaq1ioqLrrnNfue1ueue13g raldeq3 gtI
andCounterexample
Proof L39
l: lntroduction
3.1 Direct

o n e o fth e o l d e s tprobl emsi nmathemati csthatremai nunsol vedi stheGol d bach


be
In Example 3'1'5 it was shown that every even integerfrom 4 to 30 can
conjecture.
representedasasumoftwop.i-"numbers..Morethan250yearsago,ChristianGoldbach
can be so represented'
(16gC-|1764)conjectured that every even integer greaterthan 2
Explicitcomputer-aidedcalculationshaveshowntheconjecturetobetrueuptoatleast Gleick
1016and infinity. As pointed out by James
1016.But rhereis a trugec'liai;l;;""
oftheNewYorkTimes,manyotherplausibleconjecturesinnumbertheoryhaveproved that
Leonhard Euler rtii'-tlg3l,io. e*ample, proposedin the eighteenthcentury
false.
';;; words, no three
In other
r^-;-;;: io nui no nonrrivial whole number iolutions.
perfect fourth power' For small numbers' Euler's
perfect fourth powen uJJup to another
c o n j e c tu re l o o k e d good' B uti nl g87aH arvardmathemati ci an' N oamE l ki es' provedit
Corporation in
of Thinkincyltlil"t
wrons.onecountere;;;, ro""9Uv11's-"grye : 422'4814 '*
+ 414'5604
a longcomput.,,"ur.nll,'si"80ot +"217'\91
InMay2000,.tocelebratemathematicsinthenewmillennium,''theCtayMathematics
InstituteofCambridge,Massachusetts,announcedthatitwouldawardprizesof$lmillion
classical mathematical questions' one of
each for the solutions to seven longstanding, on a
belonging to a certain classcan be solved
them, "P vs. NP," urk, *h"th"t pto;l"-' that are presently
than ttt" i"ry inefficient methods
computerusing more efficient methods
knowntoworkro,ti'"-.ThisquestionisdiscussedbrieflyattheendofChapter9,

Sef3.Ir
Exercise
prime' and composite
h 1-3. use the definitions of even, odd'
:: iustify eachof Your answers'

1. Assume that ft is a particular integer' written as a sum ot two


b' Is 0 an even integer? 9. There is a perfect squarethat can be
a. Is -17 an odd rnteger? squares.
other Perfect
c. Is 2ft - 1 odd?
- 2 is prime'
e integers' 10. There is an rntegern suchthat 2n2 5n *
2. Assume that m andn are particular
a. ls 6m * 8n even? b' Is 10nn * 7 odd? Disprovethe statementsrn l1-13 by giving
a counterexample'
c. lf m > n > 0, is m2 - n2 comPosite? < b then a2 < b2'
& 1.1. For all real numbers a and b, if a
S i. Assume that r and s are parlicular integers' n-l
b' Is 6r + 4s2 + 3 odd?- rs ood'
a. Is 4r.s even? I 2. For all integersn. if n is odd then -
]I
c. If r and s are both positive,is 12 + 2r s + s2 composite?
-t n is odd then n and n are
Li 13. For all integersm andn,if2m
Frove the statementsin 4-10' both odd.
t J. There are integers m andn such that
m > | andn > 1 and true forall integers'
,-{ In 14-16, determinewhether the property is
1 1. and false for other
- + - rs an lnteger. ffue for no integers' or true for some integers
mn l integers. JustifY Your answers'
l.
lJ, such that - +- l s a n
5. There are distinct integers m and n n 14.@ + b12:a2+ b2 15. 3n2- 4n'l I is Prime.
-t
integer. odd'
I 6. The averageof any two odd integers is
tLi

that
ut 6. There are real numbers a andb such of exhaustion'
nd Prove the statementsin l7 and 18 by the method
,l GT n :u 6 +rt. 26 canbe expressed
nd 17. Every positive even lnteger less than
- 1 is prime' (For instance'
:J,i 7. There is an integer n > 5 such that2" as a sum of three or fewer perfect squares'
l\r > I and 2: > rto t0: 12-F32and 1 6 - 4 2 . 1
8. There is a real number x such that:r

dr -{ 17April 1988.
-JamesGleick,..Fermat,sLastTheoremstillHasZeroSolutions,',NewYorkTimes,
that only a hint or partialsolutionis
are given in Appendix B' The'symbol fl indicates
anc
. ^:
lI For exerciseswith blue numbers, solutions than usual'
si""".'iit;tvrntot * ,ig"uit ittat an exerciseis more challenging
{'spuelu .gr_rg
-trmspe[lEJeJ?g pup
D'e + n rr^rcc^rr.,^ ul u.troqs.,sJoo.rd,,
uotss:rdx: rql
- uI) ue.\e eql ur se{plsru eql
pulC
:pupruuns eqlJo ouo "
rql .uJ^J sr
sr s.ro8elur
'ua.ra ":.':,: ofll Jo runsnJl .f,
sr le8elur ,,(uupue re8elur z + rs - Jz pue, < I lp.qrqcns
uo,re,{uego lcnpord
aql .ZV
7 :e'alur ur,*tl?jrl
.ppo 'euud sl "n ,,
sr sre8elurppo o^u,(ue3o LZ * ,ug luql qrns , rrartu,
acuere3;lperIJ .L ,n ,ry
.ppo
'ourndsr
| - r,pt4qJns,
sr re8elur ppo .{uego
o.trte8eueqJ .0,
<;il;;;il: .::
.ppo .3SJBJ
sr sre8elurppo o/hl.{ueJo aJ?E€_I€ ul slueurelEls
tcnpordoqJ .6, eq1lurJte^ord
aluudorddu se ,eJduexc .I_ :
. e ro ;oord e rllla renosw ,(f _) uoql te8alurppo.{ue
sl ,,JI .0€
'r rrsnf'esleJ ro .-r r
r rur)."llloc rno,{ .l
tuelulseql roqtaq^\
eururrolepgg_6t uI :
"(l_) uaql ire8elurue,re.{uesI u
'ppo sr JI ,62
eq ol sE^'\1eq'4'\
sl slqJ zl1ueql ppo sr u Jr,us:e8elur
lf : rz + lz : u * ,--llu^oqs tJEJoC .gZ
:o!4z- u pue a '7 :aSelur
euos .uele
1r"a.,u, illltpsqns"(g sl sre8elurppo o,rl
,{ueJo uns erII .LZ
-r.prg 'rr.b"ruiffffir'y-:i rolrz : ut'ue^rJouorrlur
AuueJeu puv rzrasoddn5
:JooJd,, (ttt lods no,{ upr
uu sur?ruoJg€ asJrJexe .roJ,e
u,
ro-J7t spnbe
sreaelur
ue^e sr
reaelur -. ;n'ol6'ppo
o^rl,(ueJo
urns,ii.lfl:6; ""i;;;;;;ilI.lj.l,1,':.r"'jd "qa
redrlurppo {ue3o
oruereglpJqJ .92
,,
.ue^eJo
.r u. tu,ueql sr reSelurppo,{ue .ppo
snuur ra6otur
r8olur ue,te.{uu.;ro
""rr,"oro,,#"r]l:ffi:tl:r";:: ^^_
u:rr .f,,- .^ ecue.re3;lp
er{J .SZ
't Z : (I + b Z ) . (d d: u . t t l .uele
sr re8alur ua,re,{uu
Jo e,rrle8eu aql .tZ
'slueuJlUls
ereqr lusJJ/
,, )l*",J i:1*:":'.::.": :',T,,ui unsrsrxo ppo uruen
13,
w :?:ui:;;11Ti:",',#:""7 ";;il u ;";iilly_.,?i::iHl
.r .
j,?JTiil:T
":ii::r e,urc;,,"-
slsrxeeJeqlue^eJo
uorlr ueqr'ue^esru ' ut
zx ueql I > r > 0 JI ,r sraqunu
lBerIJEroc .rz
-rrurppo; ;J;;";:|.Y:l rytal
)lur uole
^o u?
', sr zlzesoddng :JooJd,,
ro I: : t! = ul
u - 111 ue\r I: uw ,u pue
ra'alur Jt r, ,r.l-ielul
ppo ue puere'erur Ip toc .ZZ
ua,teue3rolcnpord
aua, _":i:ru:, . 'f =
r, zf ueql I < f Jr ,x srequnu
JEerJJeroC .lZ
aq ol s?l\ su elrsodtuoc 'u.'t{oqs 'l >- ul >
s * ' 0 uoql I < tu Jr.w s:a8elur
I-
e:ue11'"ur,rdrou
\t I + )tz* ueql.,
,1 * i-',* 1' '7 .SOSIJJEXA IJeJoC .02
\ pue ./ r.lloq jz,+^.:l I urr.tleq ,(lr.ri.rls
o.re E!
Dup r . / - .p'n pu'rsrrpuno,
ol Jlqerg ol rrpro
t
' s > [pu uit+ lZ-+ ,) ,- ,", ] 11.. ""15
tt + 17+ ztl o.rr r,tu'op
-ureuosro, ,'. , -', leqlqJns'r'pue
rrr.3rl -uoc-eq1;yooi.,;r',i1,:,:1i,,,'j,",;,"il,
jf,l:iH,;ffi
i '.' I
-tl!
- zfrr.o. 7rnq,,:;,tr;.ll;#l;';,::jil,'rl*l: JoordpJorruelues ;
rsrgaqi,,gr^lqyiuil__l"u
AuroJrqln^1.1rc"rc^r.."fqn,rnn
eqreru.,hrr
(p) .qr'r roc ."no #,:.Xr*;#
!t I + ?z* ,, "
,r_oa ,i, ,;;;ro^ eqlJo qrea
,7 ueql0 < l JI ,7sra'alur
u, ,o, ,,,iillilr"j .n,
iuu pue JeSelulppo
,(ue ue "'ppo sl -loSelutue.ra il,".",l'l,titii$:: fun't* (ro'elur
.*",, ,
pposr r r"s :1'Ir1l-;iit::."t""'eJJlp eqr'eroJoreqJ eru.rpue7 aru[S sl os'tr.a"ru,"lli
ure
e sr - u't
M-- lt
a uJ
uaql fel ul
Ur' loio8elur , * irl*'#iJq] woq
ereu^{
sI ? eJ x7
eq.r rl Z : ,,, ,.,^::1O: :.
up sr I rrrq/h - i.u' '' 'ro '
uollluutprq pui ,.;r;;i
'ppo
I * 17:€^eJo uorlruuep 'ffi*'l;XHf*11:y'fi H J!,:;77;
uana,{ue,, ', Jo ,{g ra3rrul : ;
orn ;ilr" r ppo,{uusr eresoddnl
,Joor;,: ^r # -l;;;,,fl,r,il",-J^"j
;n,i,,', " uorrtusap
iuepueraaelur
ppo.,(ue
"rfl
uae^{raq re'alurppo,(ue
pue;e'elur
""""r;:f"lj1}t#"# .r, ue,r, ;: ;;"#r;
.. JnJlsr ruJJOJqlJqt JJUeH ^*,
l ng .6 - .| * z . z + 7 _ ', ' e l ls o d u o c s t 6 o s p u p 't . ! -: 6 ioord eq1ur s{ueJq oql ur .q
L L , z c _ | +I a + ItrC
z l. Z : l r o C : . 1 oo . r4 , , Jr.-.--A uuoJ eqrur rrorooqr
s! I -t 17* r";r:#rr;
. n,
.y ueql0 < l JI ,? s:o'erur
rr, ,tJ]lj;; .0, euudusl l l
-u * z - zu ,0 I; r-
I q rrmzrre 8 e rur;rr:T #
,,
JoordJospoqlo4pue roqunNr{.re1ueue13
^rooq1 t roldeqC OrI
3.2 D'e:t Proofand Counterexample
ll: Rational
Numbers l4l

It - The difference of any two even integers is even. 5'7. lf m andn areperfectsquares,thenm I n I 216in is also
a perfectsquare.Why?
The difference of any two odd integers is even.
: 9 B; , tt + 58. If p is a prime number,must 21'- I also be prime? Prove
m i> tru; - For all integersn andm, if n - m is even then n3 - m 'l rs :
or give a counterexample.
3\'en.
3r rnd r:., * 59. If rr is a nonnegativeinteger,must 22' * I be prime? Prove
Fora llint eger sn, if nis pr im et hen( - l) ' : -1.
or give a counterexample.
a n \ a 1 :: 44 For all integersm, if m > 2 thenm2 - 4 is composite.
60. When expressionsof the form (r - r)(x - s) are multi-
re I i . ' -
Jtr For all integersn, n2 - n * 11 is a prime number. plied out, a quadraticpolynomial is obtained.For instance,
' re A i : -
(,r - 2) (r - (-7)) : (x - 2)(x + 1) : .t2 * 5r - 14.
Llt\ l L * 51. For all integersn,4(n2 I n I l) - 3n2 is a perfectsquare.
f/ a. What can be said about the coefficients of the polyno-
:r and ir-y
Ei ery positiveintegercan be expressedas a sum of threeor mial obtainedby multiplying out (-r - r)(,r - s) when
:erverperfect squares. both r and s are odd integers? when both r and.r are
-l l -i - . even integers? when one of r and s is even and the other
Two integersareconsecutive if, and only if, one is one more is odd?
:han the other.) Any product of four consecutiveintegers is b. It follows from pafi (a) rhat xr - 1253x*255 cannot
0. I l i - - xe less than a perfect square.
rr SOmel:r- be written as a product of two polynomials with integer
rd l <r. Ii rrr and ,? are positive integers andmn is a perfect square, coefficients. Explain why this is so.
Ith r an.i .' thenn and,r are perfectsquares. * 61. Observethat (r _ r)(x _ s)(x _ r)
-].- t _ ; : .r3 - (r * s + r)-t2* (r.r + rt + st)x - rst.
fhe difference of the squaresof any two consecutive inte-
$ as to b';
Eersis odd.
a. Derive a resultfor cubic polynomialssimilarto the result
For all nonnegative real numbers a and b, 1m : .vGJb. in part (a) of exercise 60 for quadratic polynomials.
odd intesr:
\ote that if x is a nonnegativereal number, then there is a b. Can 1513t7x2 _ 8r -27 be written as a productof
unique nonnegative real number t-, denoted .16, such that threepolynomialswith integercoeflicients?Explarn.
m odd inti- '': : x.)
theree\l:l:
, i l ls e \ e l ]
For all nonnegativereal numbers a and b,
I sincert t. Jt+b:Jo+^,6.
- 1. Thus

ren. t| l tl i:
3.2 OirectProofand Counterexampte
tl:
RationalNumbers
quals.14'r-r,i Such, then, is the whole art of convincing. It is contained in two principles: to define all
notations used,and to prove everything by replacing mentally the defined terms b,vtheir
ers.B),dex- definitions.- BlaisePascal,1623-1662
Ln : 2 A f - r":
lt. !:
- Sums, differences, and products of integers are integers. But most quotients of integers
are not integers. Quotients of integers are, howeveq important; they are known as rational
alse.Justitl. numbers.
ppropnate-

A real number r is rational if, and only if, it can be expressedas a quotient of two
integerswith a nonzerodenominator.A real number that is not rational is irrational.
More formally, if r is a real number, then
:r rs even.
r isrational <+ 3 integersdandb suchthat, : ! andb + 0.
e summand. D
called sum-

The word rational containstheword ratio, which is anotherword for quotient.A rational
numberis a fraction or ratio ofintesers.
'Jequnu I€uorlBJE sr
inql pue sreSelulorezuou o.4dlJo oEer e sI qclq^\ '66lzl : ' ' ' zlzrcIzI'0'eroJereqJ
, .66- ,
ZI
os puB
. ZI : X66
ecueH
u:qa81errseq,(q)t66: x - x00l
oslBlng
' zr:' ' ' zl zlz l7,I'0 x - r00I
-' '' 7,r 7,r zr 7r: ' zr
ec ueH" " zl T,I zIz I' zI : ro0I uer{ J' ' " TIZITIT ,I' 0 - xte ' l ' se 'q
' r' L p u v' L ' t
'g'E suorlces ur IBuorlsrrrare srequnu rer{leq^\ Surururelep roJ senbruqJelluuoqrpp8
ssncsrpeA[ 'requnu e lou sr olzpuv tequnu u sr JeqrunulBuorlexrfrele esnuceq'oN '3
'(pemo11u
tou sr 0 .(q uorsr,r.rp)
Jequnu B lou sr 0/Z 'oN J
.e
Il 0 : O.se I
.p
llL: L .se I
'sJequnuI?uorl?J,(1uolueserder
uec .{eldsrpe qJns qlr.{\ rolelnclec e leql s^\olloJ lI 'l€uoBer sr raqrunu qcns fue leql
s.roqsaldruexesrql ur euo eql ol JulrrursuorleueldxeuV 'slururcepelrug ile ere ,,(eldsrp
rolelncpcpcrd,g e uo pelueserdeJ sJequnuIBoJeql teqt etoN '000I/I8Z : Igz'o 'se 'c
'IeuorlsJ
sI ooueqpue 6g pue g- sre8elureql Jo luauonb e sr qcrqzrr'ffils- : GEI)- 'se 'q
'puorler sr ecueqpue t puu 91 sre8elurerpJo luerlonbe sr g/91 'se1 'e
uoqnlos
;Joqunu Ieuorlere uul(u + u) q 'orez sr urouw Jer{lreupue sre8eluran upue Luil 'I
;lrerero; luederol perunsssere71 s1r8rpeqtereq.tr)reqtunuIBuoDere ' ' ' AZlZlZl'0 q 'q
AJeqrunuIeuort?ur ue g/7s1 '3
.lequnu leuorleJu OIZ sl 'l
eJeqr.unu
puorlsr B 0 sI '3
iJeqr.unulBuorlerB I sI 'p
ereqrunuIuuorleJe lgz'0 q 'c
ereqrunuIeuorturB (6€/S)- sI 'q
;requnu leuorleJe g/9 1 s1 'e
IBuollBJrI ro leuorlull orv sraqrunN roqfaq1l Suppu.rolaq lZ.E oldrusxg
loord jo spoqlan puefuoaql laqLtnN,&e1ueue13t rotdeLlO ZVI
Numbers I43
ll: Rational
3.2 D rectProofandCounterexample

N o te th atyoucanuseanargumentsi mi l artothi sonetoshow thatanyr epeat ing


d e c i ma l i s a rati onal number.InS ecti on].3w eshow thatanyrati onal nu m ber canbe
written as a repeating or terminating decimal'
n aldnn (becausesums and productsof
i. Yes, s\ncem andn areintegers.so atem I
product property. (one version of
integers are integers). Also mn * 0 by the zero
is 0, then their product is also not
this property .uy", tt ut if neither of two real numbers
It follows that (m * n) lmn is a quotient
0. See exercise g at the end of this section.)
o ftw o i n te gersw i thanonzerodenomi natorandhencei sarati onal num ber 'l

from the GenericParticular


Moreon Generalizing
re\ er S o m e p e o p l e l i ketothi nkofthemethodofgeneral i zi nefrol thegeneri cpa r t icular as
holds for all elements in a domain' then
JIntE: a challenge process. If you claim a propefit
Someonecanchall,engeyourclaimuypictinganyelementinthedomainwhatsoeverand
a s k i n g y o u to provethatthatel ementsati sfi estheproperty.Toproveyou r claim , you
is, you must have a way to convince the
must be able to meet all such challenges. That
challengerthatthepropertyistrueforanarbitrarilychosenelementinthedomain.
i.x' claims that every integer is a rational number. "B" chal-
lence --: For example, ,uppor"
that
lengesthis Uy'u,ting "A' to prove it for n - 1' "N'observes
"tui*
ilculet"-r
, : w hi ch i s a quoti entof i ntegersandhenccrati onal '
,eshou{' 1
pla)' cl"r
thisexplanation
"B" accepts againwith n : -12' "N'respondsthat
but challenges
-12
--::
-12 : rvhich is a cluotientof integersanclhenceraticrial'

n : 0' but "A' answersthat


Next "B" tries to trip up "A'by challengingwith
0
'e disct-l-;s O: rvl.richis a quotientof integersrncl hcnccratlonrl
i
tions 3.t"
to all "B"s challengesbecause"A'has a
As you can see,"A', is ableto respondeffectively
of rational numbers: "A' just divides
generalprocedurefor puiting integersinto the form
,'B" gives by 1. That is, no matter what integer n "B" gives "A" "4',
whateverinteger
writes
n
n:1 which is a quotientof integersand hencerational

This discussionproves the following theorem

Theorem3.2.1
Everyintegeris a rationalnumber'

to condensethe above discussion


:rs and thu-i In exercise 11 at the end of this section you are asked
into a formal Proof.
se pezlJeuuns sl uolssnJslpsIqI
:s,^AolloJ
'requnupuolteJe sI s+ I snqJ 6# ppue0+ q ecurs)fyedord
s1 'sre8elulqloq efi pq pttr-rq + pD
rnpord orez eqt ,(q 'sea L0 + pS roluutuouep eql
.rrs"tureresre8elut;osulnspuuslcnpordesnuceg'se isre8elut;oolleJ€uollJu4slqlsI
'rotnurrrrouep Pq :
? qlt,t suotl:urjSutppe
uourtuoJ Jq + pD
roruuturouap Pq , Pq P t
*
uuu l ur o J c qtl s uol l JB JJ: q l dut l t:r al tr l p,: J D
-
o'4AlJo
lng 'roleululouep oJezuou e qlL4ASJe;eluI
pueq-tq3u eql 18g1'^Aoqslsnu no"( eJuoH
llsr ro uorlrs4 e13urs e sE uolJIr,^Aeq uec runs
pq
- - f- - s+r
)D
t1
leql uollnlllsqns .(q s,r,ro11o;
'0 +PPue0+q er eq,^A l) q
eluosJoJ puu -t
p pue'J'q 'o sre8elut -D
)
1Bql
sluellonb eJE sJeqlunu [euoIlPU
:u€etu IuUoIleJ eJ€ s PUU J leql ,{es o1 os 'sre8a}ul Jo
'IEuoIlBr Jo uollluuep eql
:o,{e,^d. eI{J eru s pue r qloqJI Ieuoller0q s + r
Ielluesseuu ur spuedepJe,^ASu€ ..ipuoq€r
..nru ,{q11,,ro !.iuolsnlcuo, ot lulod Suluels oq} uloq te8 1 op '^d'oH"'{se no'( '(1putg
"4 'leuolleJsI s + '1:iloqs oJ
,.6;oord eql eteldruocol ,^AoqsI lsnul lBql&,, ';lesrno'( {se uoqJ
'sJequnupuolleJ eJBs pue ''resoddng
',{1durseJoul'Jo :IuuolleJeJPs'pue I lBIf
pue ; esoddnS:7urc4 3tt11tn1g
_rns sroqunu IeeJuesoqc.{Irerlrqre 1nqrelncrlredeJe s
';oord eql Jo 'erualueslsrg ro 'lurod Suruelseql no'{ se'r'r8
eJeqi[" ';lesrno'( {s€ lxeN
:a !\sue eq1 .,iSursoddns1 ure lerlA,, ro .,ituoq Sutuuls I tue
'EuoIl €Js Is '+ l ueqlIB uoIl uJeJ es puelJl .spuE /S Jequnu| eerA :U a u a tD $ a i l p u l Jo tr
ueql- Jl -- A..
ro '(q ur8eg uollnlos
:irroJeqt ut pe.,rordeq ol lueuel€ls aql Surlu,trer'(1lrcr1dxe '(11e1uaru
'luuoll€J sI sJaqunu IsuoIl€Jo'trl '(ue Jo urns eql leql eloJd
alduexg
IBuoIlBu sI sleuollslI Jo urns Y 7'7't.
'sreqtunuleuoller;o firedord u elord o1
eldurexolxeu eq;
poqleu oql esnol 't\oqs',ldoqs
--llncrgedcgeue8eqt ruor;8urzr1uraue3;o
snqunN Puo\ea p se\Jedou Sutttot4
E roideqc wl
]oord]o spor.llotpueiloeql reqLunN,fue1uauua13
3.2 DirectProofand Counterexample
ll: Rational
Numbers 145

Theorem3.2.2
'lThe sumof any
he sum any rwo rational
fwo rationalnumbers
numbersis rationaL.
rational.

Proof:

Supposer and s are rational numbers. lWe must show that r


* s is rational.l Then,
by definition of rational,r : a I b and s : c d for someinteger
I s a, b, c,and d with
b l 0 a n d d l 0 .Thus

.ac
,'+s : ; f . hr suhrl i rrrti trn
bd

ad+ bc
: -- by basic algebra.
bd
> >r-lt
Let p : ad I bc andq - bd. Then p andq are integersbecause
products and sums
of integersare integersand becausea, b , c, andd are allintegers.
itro 4 t' 0 by the
zero product property. Thus

r f s : 4 *h".e p and,qare integers and,q 0.


q I

Therefore, r * s is rational by definition of a rational number.


fThis is what was to
be shown.l

Deriving New Mathematics from Otd


section 3 ' 1 focused on establishingtruth and falsity of mathematical
theoremsusing only
the basic algebranormally taught in secondaryschool; the fact
that the integersare closed
under addition, subtraction, and multiplication; and the definitions
of the terms in the
theoremsthemselves.In the future, when we ask you to prove
something directly from
the definitions, we will mean that you should restrict youiself
to this apprJach. However,
once a collection of statementshas been proved directly from
the j"Rnitionr, another
methodof proof becomespossible.The statementsin the collection
can be usedto derive
additionalresults.

Example 3.2.3 Deriving Additional Results about Even


and odd Integers
Supposethat you have already proved the following properties
of even and odd inteqers:
r - The sum, product, and difference of any two even integers
are even.
2. The sum and difference of any two odd integers are
even.
3. The productofany two odd integersis odd.
4. The productof any evenintegerand any odd integer
is even.
5. The sum ofany odd integerand any evenintegeris
odd.
6. The differenceofany odd integerminus any eveninteger
is odd.
7' The differenceof any evenintegerminus any odd integer
is odd.
use the properties listed above to prove that if a is any
odd integer and D is any given
I b2 + |
integer.thena2 is an lnteger.
z
'JSqtunU 'raqunu l€uortere eq tsnru (uil l(uZl a uE) ,{q,u,uteld
:uorleJ 3 sr sJequnu I?uoIl€JoA\] ,{u3 Jo ecueJa.glpJqI '9I -xA '0 + lr leqt pue s:e8elurqloq ele u pue M t€qt eunssv '0 J
'r3q 'leq
.jrnu puorleJe sr sJeqrunuIEuolleJo,r\l {u€ Jo luellonb eqJ 't I H -runu Ieuorlure eq tsntu (rQo)l@ - 4) ,(q.aury$xg '11I q
pua O + rr l€ql pue sre8alur qtoq ere q pua D leql eurnssv '6
'leq
fu? JOlCnpold eqJ '[I
-lnu puorleJ 3 sr sjeqrunu leuorleJ0,441 (solquue,t
'(O uea ot re,tlsu?rno,{ .to3L
'Io sloqu'(s:agrluenb 1noqlt,r,r)uorsJe^IPuuoJuIu? ellrld 'c
'1tlJtLl:lllls '(e) ued ot re^\su€.rno.(yo e,r.rtrsodertuoceqt ellr A 'q
..u Jql a^ojci pun 3;uuqJ Jql e)ullr 'r)s .Jl enjl ll J)|Lu plno,!\ 'selqE
11urusn raqlJq,r Jurul.relJp 'J\lu-l sr ltrJuteltts iLlt oslla) -lre^ pu? sregrluenb Sursn .(11eur.ro;flredord slqt elu \ '?
.'-uuqr
llre[rJlr]ls Jsp,,I tlJrto ,to1 alduux.r.tatun{t.1t: J.\ti pur:l 'suotl '0 eq lsnlu sJeqrunueql Jo euo ueql '0 sI sJeqr[nu
..qJp aqt uo.t; Apraltp lueLuJlllls en.u qJn.,)c,\o,ld Jsllll J-tll '8
Iper o,^d.l
Jo lcnpo.rdE Jr leql s,tesfuadord lcnpo:d orez er{J
u l sl uJtua]u lsJ tl l .]o qJIq^\ eul tLI-l 3l JC I
.:: Ll .r p ul l en .rlar l?6l -E l
'L
' rzLglzLgrZLgn'7.9
'leuollerJo uotlluurp ,{o os
u, "'z6vz6nz6n9'02€
'e
: .rE'roleurruouep oJezuou e qlr,r sre8elut o,lttl Jo oIIEJ e sI zl
: ruJH '-;;i ' ' ' ' 999 E 9S 9E
_- aqt ,{q 6 + ,q oslY
- rn puE ,n slonpo:d aql
\Y l 0 'E
\o ^ ,
:-r os'sJebelul qloqeJeqplle D eJuts' zq/ z0 : :
tr\ zt " ' Lt.L t LE LI ' j' t
iorlnlDsqns fg 'o * q qlr.a\ (q) errosroJ qlry : r'vv
--rlEr Jo uorlrugep ,{g ' ri -r leqt esoddn5 :;oo.r4 6q
tnl -9- 't
:LV+ ; 'f Lt09'n'Z
:leuorlelsr Jequnuleuot]e;,{ue s€
., arunbseqt teqt;oord 3urmo11o; eql uI $lu?lq eql uI IIrd 'ZI 's.teieltrt o,lrl
.+tr
JeqrunupuolleJ e st re8elut ,(te,releql elold '[I orlu.l p su lJclLunu qJrs alr.ra 'llluorlc,l llu aiu L-l ur sieqrunu etl.l,
z'€ les esrilaxS
'IeuollBrsI rZ'Z'Z't rueroaql ,{q
I
,'s 'sJeqlunuIBuorlBJod\l Jo runs B sI "/ + t : rz ueqJ 'JeqlunuleuolleJ ,{uu st .r esoddns
:J00Jd
:lueIunSJE slt{]
_r uorsJe^, IBrruoJ B sr eJeH 'lsuorleJ sr Jeqwnu IsuolluJ B Jo alqnop aql osueH 'I?uoIleJ
:. Jleslr qlr.4AJequnu IuuorlEr u Jo tuns eql'(z'z't rueroaql) Ieuoller sI sreqlunu leuoller
\\1 ,{uBJo tuns eql eJurs lng 'Jlaslr qllld tuns slr tsnf sr requnu e Jo alqnop eqJ, uor}nlos
r,
'I?uorlBrsr Jequnu IBuorlEJB Jo elqnop eqJ
-T l, f'z't
^rEIIoroJ
'z'z'EureJoeqJJoArelloJoce se dur,AaolloJ
eql e^uec
requnNJ leuollBu E Jo elqnoo eql t'z't alduEXE
'pe^oJdueeq,{puerp suqteql
raroaql e luoq pecnpep ,{1e1epewufloq uEr qlrul asoq,4A
tueuotels e sr ,tru1;oror y
'fuuoqs
I
>) : Z
'ilI llilfl ot sDfirsn]re8elurun ,,' ---=!-- snqJ JaSolur
ue sr qJrq,lA'? - se,rr8
l* 7Q1-ro I + zQl z0
- iq seprsqloq Surpr^rq 'lZ: I + zq + -D rcq1qJns ) ro8eluru€ slsrxaaraqt 'uole Jo
: -r rtr ugop,(q' ecueg'7K yadof i.(que.r,eslI + .q l ;.D :I+ Qq * ro ) u n s o q l ' p p o
.,., llfil slpsr I esneceqpue 'ppo sl ze * z, 'g {uado:d iq uaql 'ueAOsr ,n'1 f,yedotd,(qpue
:po sl zq 'g ,{gedord.{g 're8elurue,te,{uesr q pue :a3aturppo fue sr n esoddng uorlnlos
joordjo spor.llan
pue,{roeq1
roqLunN
i{reluaualg t ro}deq3 gVI
3.2 DirectProofand Counterexample
ll: Rational
Numbers 147

odd. 16. Given any rational number r, _r is also a rational


number. tional), then the other solution is also rational. (Use
also the
+ 17. If r and s are any two rational fact that if the solutions of the equation are r and
numbers with r < s, then s, then
ition , f J x2 + bx + c : (x - r)(.r - s).)
i, rational.
br.2 2
30. Prove that if a real number c satisfiesa polynomial
o equation
obe # 18. Forallrealnumbersaandb,if a < bthena !^b . U. ofthe form
<
z
T (You may use the properties of inequalities in
T16_T25 of r t x 3 *r z x 2 +r r x +r o - 0 ,
Appendix A.)
where rs, rt, 12, andh are rational numbers,then
rrem i9. Given any two rational numbers r and s with r <
c satisfies
s, there an equation of the form
is anotherrational number between r ands. (Hint: Use
the
resultsofexercises 17 and lg.) n z x 3I n z x 2 *n p l r ? o : 0 ,

L'se the properties of even and odd integers that are wherers, n1, n2, zndn3 are integers.
listed in
Erample 3.2.3 to do exercises20_22. Indtcatewhich properties
'.tru uSeto justify your
reasoning.
10. True or false? If m is any even integer and
n is any odd
integeq then m2 * 3n is odd. Explain.
* 3 1. Prove that for all real numbersc, if c is a root
of apolynomial
11. True or false? If a is any odd integer, thenaz* with rational coefficients, then c is a root of a polynomial
a is even.
Explain. with integer coefficients.
r\\'o ll. True or false? If k is any even integer and n rs any In 32-36 find the mistakes in the .,proofs,,that
odd the sum of anv
lf is integer, then (ft * 2)2 - (m _ l)2 is even. Explain. two rational numbers is a rational number.
nof
)erive the statementsin23-25 ascorollariesof Theorems 32. "Proof: Let rational numbers r :
3.2.1, ) ands : j be given.
-: 1.2, and the resultsof exercises12, 13, 15,and 16. Then r *s :
ol+ J : l, whichis Jrational number.This
is what was to be shown."
'-1. For any rational numbers r and s, 2r + 3s is rational.
So. 33. "Proof: Any two rational numbersproduce a rational
lJ. If r is any rational number, then 3rz _ 2r num_
T * 4 is rattonal. ber when added together. So if r and ., are particular
but
l-i. For any rational number s, 5s3 + gs2 _ 7 is rational. arbitrarily chosenrational numbers, then r
+ s is rational.,,
16. It is a fact that ifn is any nonnegativeinteger, 34. "Proof: Suppose r and s are rational numbers.
then By defi-
nition of rational, r : af S for some integers a
1 ll and D with
t+- | _l- ( l/ 2, + 1) b I O, and s : a/b for some integers a ind b
+- + - - L. . . r with b t' 0.
2 '22 23' ' 2n 1- 0/ 2) Then r * s : a/b I a/b :2a/b.
e oI Let p :2a. Then p
(A more generalform of this statementis proved is an integer since it is a product of integers.
in Section Hence
4.2). Is a number of this form rational? Ii so, express r * s : p/b, where p and b are integers andb
TTTCF it as f0. Thus
a ratio of two integers. r + ^ris a rational number by definition of rational.
This is
ton. what was to be shown."
) are i-. Supposea,b,c,anddareintegersanda
fc. Supposealso 35. "Proof: Suppose r and s are rational numbers.
that x is a real number that satisfiesthe equation Then
: o/b and s : c/d for some integers
and | a, b, c, andd with
ax * b b f 0 and d f 0 (by definition of rational). Then
r + s_
c * + d: ' ' a/b + c/d. But this is a sum of two fractions,
which is
-' -; Must "r be rational? If so,express asa ratio of two
a fraction. So r + s is a rational number since
a rattonal
;- . -r integers. number is a fraction-"
t i3. Supposea, b, and
I-
c areintegersandx, y,and z arenonzero
36. "Proof: Supposer and s are rational numbers.
real numbers that satisfy the following equations: If r * s is
.;, rational, then by definition of rational r
* s : a76 1o. ro_"
xY r? mtegers a and b with b f 0. Also since r and
: u ana s are rauo_
:-l-- nal, r : i / j and s : m / n for some integers i, j,
^Ty x+ 2 . m, andn
tm- with j * 0 andn t'0. Itfollowsrhatr
Is x rational? If so, expressit as a ratio of two integers. + s : i ii + m/ n _
a/b,which is a quotientof two integerswith
anonzero de_
19. Prove that if one solution for a quadratic nominator. Hence it is a rational number. This
.lrn- equation of the is what was
form x2 * bx qc :0 is rational (where & to be shown."
and . *e,u_
arc .1pue u esoddn5
Lq = D sI 'ql D puu sre8elute.a.tttsod
raqunN a^lllsod B Jo srosl.\Io a^plsod aql g'g'g eldtuexg
'0. J : 0esnereq's3Auorlnlos
i0 epl^p rysaop'ra3alur,{uust 1;1
oJ.,zlo srosl^lo z'g'0 aldtuexg
' (i- )' .J . (z ). (9t _) : .p
L- L-'s e1' '6. 9 : tg 'so^ 'e z €. s e^
.J 'q . L. . s e^. u
'9' L: Zt' se^ g. E:0t'se t: lZ
uounlos
'p
LL-prolc eJ eLsI'J ttg Jo rolcBJE 9 sI i9I- Jo eldqlnu P ZEsI
iTy l ys eoq'c iot apl^p g seoc ' q ig .,{qalqrsrrrrpIZ sI 'e
.{1;gq;spgq I't't atduexg
,/leql qcnsyroSolul ue E <+
' 0* p
puesJe8etur ..'zlsepl^Ipp,, pversl u I p uotlulouaql
ere p puu u ;r '.,(1pcr1oqru,{S
ro 'rJo Jos!^lp 8 sl p
Jo 'uJo JOIJBJE sl p
rl to'p Jo oldp1nure q u
]eql fes em',(1e.,lqeu-re11y
st z.t
'y ra8eluroruosroJ 4p : u Jr ,(1uopue'11p fq a1qtqa,1p
ueql 'sreSolul ere p pue u lI
'sre8elurJo seruedord;o,{pn1seql 'dJoaql Jaqrunu :sJlleueqleu perue^peuI
:irefqnsInJrlnEaqlsotu eql Jo euo ;o ldecuocIerluer eql sr .&llqrsl^lp Jo uoUoueql
\l ,.',(1ue,te
Z I sopr^rpg,, ro ,.9 ,{q
:iqrsr^rpflue,Lasr Z L, luql Surfes.{q ]JEJslt{l eqlrrsopo1lq8nel ueeqe^Bqosle ,{eruno1
@ gEE
're^o Ual Surqlouqtr.ttsdnor87 te8 no,{ 'g;o
.dnor8 otur slcelqo71 eluredesnof ;r esnuceqt sl t ,{q pepr,t.rpZI teqt tq8net,{lqeqord
::a,trnof 'looqcsfrelueuale uI uoIsIAIpJo ldacuoceql ol paJnpoJlullsJUera,uno,{ueq16
ape-Lrard
tuurroC - 'Jarlaqladuot o1 s'tlootd o [o t41nnb puuassa aq1
fy1gp1a1g
:ill apluexenlunos pue pou petlo €'t
ioord]o spoqlanpue roqLUnN t .ialdsL.lC
8?I
^rooql ^.ipluourall
3.3 Direct
Proof
andCounterexample
lll: Divisibilitv
l4g

Solution Yes. To say that a I b meansthat b : ka for some integer ft. Now k must be a
positive integerbecauseboth a and b are positive. It follows that

l<k
becauseevery positive integeris greaterthan or equal to 1. Multiplying both sidesby a
)ol, you $er3 gives
s lnto grouF
a< k.a:b
(since multiplying both sides of an inequality by a positive number preservesthe
inequality-properry T19 of Appendix A). I
:nlv divisibie
Example 3.3.4 Divisors of 1
tiful subjet-ro
Which integersdivide l?
rs.
Solution By Example 3.3.3 any positive integer that divides I is less than or equal to l.
Since I : I ' l, I divides I, and thereare no positiveintegersthat are lessthan l. So the
only positive divisor of 1 is l.
on the other hand, if d is a negative integer that divides l, then | : dk, and so
1 : ldl. lkl. Henceldl is a positiveinregerrhatdivides1. Thus lttl : l,and so d : _1.
It follows that the only divisors of I are I and _ l. I

Example 3.3.5 Divisibility of Algebraic Expressions


a. If a andD are integers,is 3a I 3b divisible by 3?

b. If k andm areinregers,is l)km divisible by 5?


egers and Solution

a. Yes. By the distributivelaw of algebra,3a * 3b :3(a I b) anda * b is an integer


becauseit is a sum of two integers.

b. Yes. By the associativelaw of algebra,10km:5.(2km) and 2km is an integer


becauseit is a productof threeintegers. t

When the definition of divides is rewritten formally using the existential quantifier,
tf - 7 ?
the result is

dln {) Sanintegerk suchthatn: dk.


Since the negationof an existential statementis universal, it follows that d doesnot divide
n (denotedd I n)if, andonly ii vintegersk,n * dk,or,inotherwords, thequotientn/d
is not an inteser.

n
Foral l i ntegersnandd, d Xn <+ ;a is not an integer,

Example 3.3.6 Checking Nondivisibility


D o e s4 | 1 5?

Solution No, f; : 3.75, which is nor an inreger. T


'sJeSelul
J.rl Jo lcnpord u sr 11esn€ceq'sr lr esJnor tng .re8e1ur
Jo ue sr Surqleuosleql luql ,(Jrre.t
ot .{po sur'ruoJ11'(Surqleruos).a se r pesserdxeo^eqno^ .peqsruu
lsourleereno,{ rvrop
'( Sl lD :2
ocuoH 'uorlecqd4pruroJ ,rel o,\rlercossu
eqt .{q (s;)u : ,r(lr) lng
1 g g u o qen b a.{q sQo) -
Z EE uo n unb e ,{q sQ: c
'0
iuuel ur r sesse;dxe1eq1uorlenbeuu e^eq Jo
no,( ,Z.E
11r,u tolc4 I.E.Eelruqsqnsno,(grsnql
,Jo sruJerur q sesserdxe I'€'€ uorlenbepue'qJo suuel ur r sesserdxe 7.g.guoDenbg
!t 's re8eluroruosJoJ sQ: t
' el qecurspuy
:t '-r;e8alureuos JoJ rD - q
' ql racursl ng
' (re8el ure uros).a-c
legl .spJo,rJoqlo ur 'to ,c I o lEqt .roqs,ol peeu no
l D :tro ' l s o J
' rrqpu., q rD
lEril qcns sreSeluruesoqcflFnrtlqre 1nqrepcrged arB, pu? ,q ,zr esoddnS :7uto4 3u4to7g
'u,roqs
rq lsn{u lBql uorsnlJuo3ar{l pue
Jo
300rd eqt eJuoluoslsJg ro .lurod Suruels eql lno lcrd
ilalerpetururuec no.{'.(1pur.royuellrrlt\ ,(peerp sr pa,rordoq ol
lue.'eruls eql eJurs uorrnlos
'c I o uerp,c I q pue q D .q.D sre8elur
I JI,r prre IIe JoJleqt e^ord
.{lrgqrsr,lrqgo dlprplsue{ g.€.€ aldurexg
'prlql
aqrsepr^p Jequnu lsJrJeqr ueql 'pJrql€ sapr^rpJequnu puoJes
eql pue puocose sepr^rp
l.qunu euo JJ 'e^rrrsuerlsr rl leql sr f,tllrqlsrllp
30 serpedordInJesnlso.,, oql Jo euo
/(111g,1s1a19
p serqadotdEurlot4
I .Jleslrpue
I ere srosr^rpre8elur e,rrlrsodfpo s1rJr ,{1uopue
'-;i eurud sr
I < 11reSelur uu l'r{] ,{Uso1 sr Jeqrunue.'ud e eugap o1 fe,tr e^rl'ruelle uv
allIIqJS!^l( pue sJoqunN aurtrd
tr.g.galdruexg
.re8eluruu
oq lou ,{eur ro feru qcrq,tr ,(iuoncerJ
esrelur
eqt) q/o Joqunu Iuuorloeq eril roJ spuels qf n uorlelou eql ,pueq reqlo eq1uO
'r e8el ur
uestof q pue, Iql o,O#
Jr,(1uo pueq,^A ,snq;.re8e1u uJ,t1
r _ o /q
se,tr8a,{q seprsqtoq Bulpr.l,rq .)!.o: q leql qcns re8atur
ry uB sr oleql leql
sueetrrqcrq,r ...q sephrp rl,, ocuelueseql roJ spuelsq ,
I uorlelou eq;- .q/D
uolletou oql pu€ q I ouogelou eql uee,4dteq qsrn8urlsrpol InJaruJog
iuolne7
joordJospoqlanpua,{roeq1
joqlunN g raldeq3 OgI
^.rs}uaLualf
3.3 l Ji rectH rooTano uuurrLY rtr^o"rP"''
rv

This discussionis summarizedas follows:

Latron
neans ffr"or"- 3.3.1 Tfansitivity of Divisibility
91\'es b and b divides c' then a divides c
For all integersa, b, andc, if a divides
Iteger.
b (the
Proof:
divides
arb it r ar ily chose nfintegerssuchthat a
Supposea, b, andc ateI p arti cula r but of divisibility'
a divides c.l By definition
b andbdivides c. lwe must show that
r ands'
b : ar and c : bs for someintegers

By substitution
c: bs
- (ar)s
: a(rs) bY basic algebra'
e number
ofintegers' and therefore
ivides the Letk :rs. Then k is an integersinceit is a product
c : ak where k is an integer'
is what was to be shown'I
Thus a divides c by definition of divisibility' lThis
I

rnediatelt Itwouldappearfromthedefinitionofprimethattoshowthatanintegerisprimeyou
at must b€ w o u l d n e edtoshow thati ti snotdi vi si bl ebyanyi ntegergreaterthanl andlesst han
i ts e l f.In fbct,youneedonl ycheckdi vi si bi l i tybypri menumbers' Thithat s f ollowsf r om
any integer
following theorem' which^says
s such thar Theorem 3.3.1, Exampt" ii.z, and the
rire iaea of the proof is quite simple' You
greaterthan I is divisibre Lv u pr-" number.
s ta rtw i th aposi ti vei nteger.Ifi ti spri me' youaredone;i fnot,i tinot'saproduct
you of t wo
is prime' you are done; if
smaller positive factors. if on" of theie ""i !111':::
contlnue
or siitt smaller positive factors' You can
of the factors and write it as a product
inthisway,factoringthefactorsofthenumberyoustartedwith,untiloneofthemturns chosento be
out to be prime. This ;;" h"d* eventually becauseall the factors can be
one'
positive and each is smaller than the preceding
1i-

Theorem3.3.2Divisibility by a Prime
Any integern > 1 is divisible by a prime number'
terms of c-
esc in terms Proof:
chosenlintegerthat is greaterthan l' lWe
Supposen is alparticular but arbitrarily
that divides n'f If n is prime' then n is
must show that there is a prime numbir
divisiblebyaprimeno-Uo(namelyitself)'andwearedone'Ifnisnotprime'then'
as discussedin ExamPle3'l'2b,
n : ros1 where rg and sg are integers and
1< ro< na.ndl < so< tx'
n'
nains onlY to It follows by definition of divisibility that rs I
onPage152
contmued
roduct of two
'I t t eloulexg ur u,^Aoqs s3 'uortrnpur I?crl?ure
-ql€ruSuoJlsSursnpe,rordeq osp uec Z'€'€ rueJoeqf t t uorlces ur pessncsrpsr qJrq^\'eydrcuud
Suuepro-11e.,r
eql pelluJ sre8elureql roJ urorxe ue .iq pegrtsnf sr lueruepls srql '8ur1eeds,(11cu5*
etuosroJ ql:
'tpue 4 sJeSelur D pue Dl: q
]€ q l u e e u D l q p u e q l D
suourpuoceqt '.{lr1rqrsr^rp uourugep f g
Jo 6ueetull seopteq1yuortrsoddns eqt uo sncod
,.Lqpuuzreruos rolq + rturilueddeqIpqor rc'q - rluql J1esrno,,(>1sy
^\olloJtInny4,,
'olqpue qlDNr4t r.lJnssre8eturen qpue u esoddng:1urotr3ur1"n4g
'lr eloJd ol 8ur,{Jlere,Lrno,(;r ppo,Lr nof se qcnu
qJns lueluel€ls e Jo .{lrsleJJo qlnrl oql Je^ocsrpoI
-uo uuls 'o^oqe ue^rS euo eq1s3
'sruelqord llncgJrp eJotu ellos ol 'rale.&\oq ',{lsnorcsuoc ll asn ol eIqBeq o1 1qd1aqsr 11
'spuoceszrreJ e 1snfe1e1feu luql ssecordIelueu € sequcsepuorssncsrp Surzvrollo;eql
ios Jo etnuru e ro; Surle;1ueo
-uoc ,(q lsnf eldurexelelunocB Jo {uql no,,(ue3 'esIBJsr .{Uedordpesodordsrql uorlnlos
Lq:0 ueql , I qpue qlo l ' q puu a sreS el ul
IIBro Jte q le sl e Jroe ru l l r sI
,{pador; d1;pq;q.r;g pasodord B 8ur{raqJ 6.9.t elduexg
'esleJsr qcrq^\
ll ro; sre8elur
oJ
oruospug ol peeunof 'on'r1.(lpsre.tlun 1ousr ,(gedo,rd,(lrTrqrsr,tppesodorde leql .4aorls
t(11 g pue seQu exanrunoJ
1g 1s1tr1
.u
f'moqs 01ara^4aA\ruqlft s! s!r.tJ] sepr^rp1eq1reqrunu euud
B sr U ecueH 'euud eq pForIS 1; luql sr uorluuruuelroJ uorlrpuoc eq1- .1,...,2
'I' 0 : ? qJ eoJoJull tpue'u > 0t s 112 Z1s ... > t-,tt > l t > I' e Z 7 e re q ,tr
ecuenbes€ urelqo e,{\ snql +'u pue I ueoaleq ,{11culssre8eluru ueql Jo,,lreJeJe
orerppuu'1 ueg reteer8puu (z ueqt sselsr qcrqm)euo snor,lerdeql uuql sselqloq sr
JolceJ,t,reuqc€e esnuceqsdels;o reqrunu elruu B ur peeccnslsntu od\ rolceg euud
B pug a,tr 1lun u Jo sJolcBJenrsseJcnsSuuolce; ',(u,trsrql ur enurluoc ,{eu a16
'tsgl se zr Suuoca! fq ssecordeloqe eql leeder ,(erue,r ueql .eruFd
1ou
s! zt II'euop eJee^\ puu 6usepr^rplerp Jequnu etuud e sI zl ueql .eruud sr z.rJI
'a zl
I ',(11[qISI^lp ,{1r,tr1rsuu4
,(q .,(ytuenbesuo3
Jo
I"r1uq1,uou4 ,(peerlee,tt tng 'trlU wr4t,{1r1rqrsr,trp uorlrugop,{q s,r.olloyt1
Jo
' I t >Z s > I pu eI J >U >I
pue sre8elut eJe z,rpue zr eJeql\ LJ
ueql'eurud 1ou
sl I-l JI 'euop ere o,^A
puu 'u sepr^rpluql Jequnu etuud u sr Il ueql .euud sr r; JI
'r Ir
I ftlllqlsnlp Jo ,(1ra.qrsuur1
,(q tytuenbasuo3
'u | 0r Nqt,uoul .{peerp e1rrlng '01 Il tuql f11pq1s1,r1p
| go uorlrugep eq1,(q s,no11oy
t1
'0 . r >l s > I pU e O '7 >l . r >I
puu sre8elur ere Is pue Ir eJeql\ 01
ueql'elurJd
tou sr 0-1JI 'euop oJee,/r.\
pue 'u seprnrplerll Jequnu eruud e sr 0l ueql .eurJd sr 0l JI
loordlo spoqlol pue,!oeq1 raqulnN t raldeqc zgl
^lpluaLuell
andCounterexample
Proof 153
lll:Divisibility
3.3 Direct

for
integersa andb that satisfy theseequations
Must it follow thata : D, or can you find
1! I'ltri which a I b? The equationsimpll' that
b-ka:k(l b):(kl )b.

Si n c e b Ia ,b* 0,andsoyoucancancel bfromtheextremgl eftandri ghtsidest oobt ain


1-kl .
it r' n
-1
1' But the only divisors of 1 are 1 and
In other words, k and I are divisors of : b : a' But
-1' If k l: 1' then
Hr -l t (seeExample 3.3.4). Thus k and 1 are both 1 or
-o and so a anal thatyou can f ind a
ysi ssuggests
i f k :t: - 1, then tr: + b' Thi s
is a formal answer:
count"rexample by taking b : -a' Here

3 t r i r. Sta te ment:Foral l i ntegersaandb,i fal bandbl athena:b'


: Then
Counterexample: Let a :2 andb -2'
. l f r ; i' but a f b since2 + -2'
a I b since2l (-Z) andbla since(-2) l2'
is false'
;e find n Therefore, the proposeddivisibility property
\\' factor
rnd there
'nce you discover a counterexample(provided
The searchfor a proof will frequently help
iu.t, false). conversely, in trying to find a
the statemenryou are trying to prove 1s,rn
counterexampletbraStatement,youmaycometorea|izethereasonwhyitistrue(ifitis'
i-0 . 1.
infact,true)'Theimportantthingistokeepanopenminduntilyouareconvincedbythe
le r r isa
evidenceof your own carefulreasoning'

Theorem
TheuniqueFactorization
Themostcomprehensivestatementaboutdivisibilityofintegersiscontainedinatheorem
the integers' Becauseof its importance'
known as theuniquefactorization theorem for
of arithmetic. Although Euclid, who
to find soff this theorem is also called thefundamentql theorem
l i v e d a b out300B .C ,,seemstohavebeenacquai ntedw i ththetheore m , it wasf ir st st at ed
preciselybythegreatGermanmathematicianCarlFriedrichGauss(rhymeswithhouse)
in 1801.
Theuniquefactorizationtheoremsaysthatanyintegergreaterthanleitherisprime
in a way that is unique excapt' perhaps'
or can be written as a product of prime numbers
For example'
'just by con-' for the order in whichihe primes are written'
' 12:2' 2' 2' 3 ' 3 :2' 3 ' 3 ' 2' 2:3 ' 2' 2' 3 ' 2
ttw secontl'
written in any order,but any factorization of
;problems. and so forth. The three 2,s and two 3's may be
oYe, stafi or T2asaproductofprimesmustcontainexactlythree2'sandtwo3's-noothercollection
multiplies ortt to 12'
of prime numberstesides three 2's and two 3's

the Integers
d andb.r Th*o"** 3.3.3Unique FactorizationTheoremfor
'me (FundamentalTheoremof Arithmetic)
he condition-'
k' distinct prime numbers
Given any integer n > l, there exist a positive integer
€2," ek suchthat
pr, pz, . .-., Pt ,-andpositiveintegers€r, ''
n : pl' pi' p3'
...pir .
numbersis identical to this except'
.e well-ordenn5 and any other expressionof n as a product of prime
ng strong math* perhaps,for the order in which the factors are written'
Ll - ,u epl^Ip8 seop'€ + lt : u ll 'tl
'Jsle-J
sr tr lr Jldul[xJ.tJJutloJll a,\r; puu 'aru]sl ll:lr
,{1tra.rrp
LI - ,u epl^lp8 seop'I + IV : u ll .71
-uolttuuopaql ruo-r+ luauotllls aql e^o.rd JSllll,roenll sr
itll l
.:lrtuelPlserJlleqleq,t\ culLu-t:l3p'82-LI ul luJrrlJtrl)^rlJlta-loC L tL l i l se o q ' l l i ttl l s3oc. 0I
' ) - q) ltl ueql, I o pueq i n gr'; puu,q, o sl;.?al:u;r .6
IIe roC'9I Lqtt . 0z p rolrBJE t sI
r .) + S) | D u e q t r l o p u B q I z ; r 'r pu e, q , l, s r e 8 e t uIrI B r o d . c I ;rg;o eldnlnu e (q + D)DgsI .g
T
I
',{}l[ql ;ggJorotceJs €- sI .t ;g;o eldrllnu u 6zsl .g
{ -'l \lp Jo uorlrur1ap eqt ruol.J{ 1tr:rrp 9 I lun c I \l u:rurtr?tsJ^old
1tr,{q elqrsr,trp(91 a u7)u9 s1 '9
llr 'u,,rroqseq oJ se^\ sE , ,flrlrqrsr^rp
(e) Jo
ii.Jr 1g ,{q elqrsr,r.rp
(t + )tt)(Z + ?g)(I + I€) sI .t
-orlrugop ,(q 'ecueg 's're8alurere ? pue 1- ecursre8elur ue
!i .i ) . ( I-) : l- ln g ' (4 -) . D : ( p ) - {- ' uo rl n ll s Q n s
;gl gs ao q 'g
'B '7
(J) eLUos roJ (q) : q',(rrlrcirsr,nrp.;o uortrugap,{g
I tilLii 691 Xq elqrsr,trptg sI 'Z 6gy ,{q elqrsr,trpZS sI .I
I e ) teqt qrns sra8elui ,(ue ere q pue D esoddn5 :;oo.r4
t ' (q-) | 0 ueqt q I D Jr' q pue D seTqrLm,\
's.raialrrrluasa.rda.r
Itr ,.taielur IIe roJ leql Joo:d 3ur,Lro11oy eql ur s{wlq aql ur IIrd .}I lllr tuql aunssv t[-l .rno,i.roluosre.r
Jo qJuoLrr.rJ\\sull r J]\rD
g
, -llli
t't ,es esmexl
]Tfl
.ut .u
tr tm I | 71 os pue Io srolcEJeurrd eql Jo euo sBJncco
-!ntrtLI eJueH '(e8rEIool sr tr asneceq) ,E.V ,g ,g .
Z rc L.g Jo rolJ€JeurFdfue pnbe lou
T!!r
,lil$[ 'rop LI lng '(rueJoeqluorlEzrrolceJonbrun eql fq) eprs pueq-uel orDJo rolJsJ o{urrd u
* sl?sr 1I'uorlenbeeqlJo oprspuBq-lq8rreqlJo srolceJe{urJdeqlJo euo sr ecurs uorlnlos
lI
.I
iu | 11seoq
'0I . I I . Zt . EI . VI . 9I . . - ut.
9I L t Z. E. V. S. 9. L. 8
LI,JT
itr leql qcnsro331ur
ue sr.ta esoddnS
I'llilf
ualqord B aAlos ol uorlBzlrolJBc anbrun 8ursl II.t.g aldusxg
Illij
tiu
'rI I .
u ,? ilru&
zS. rE' zZ: II . E. g. g.z.z:
tl. t . 9 2. V : EE.00I : 00€'e
ril,,i
:reproSurpuecse ur ruerpelrr,&\
ueqJ .00E.8 Jo sJolJEJ
eql IIBpug lsrrC uorlnlos
liuil
* ltM
'ruJoJpeJolJeJpJepuulsul
Iirlb; & 00€,€ ellr^A
rrrrod parolJBc prBpuels ur sre8aluJ fiur1F,11
0I.g.g aldtuexg
,[r!,* lniir .rtd > ... > zd > td pue
ls.ro8elur
elrlrsod
lMu !4/l|
aru Ia ' ' ' ' 'za 'ra :sJequnuerrrrJdeJu,td . ' . . ,zd , rd ire8elure^rlrsodB sr eJoq,r
I
,!l'U,- 't@ . .' ,ld,!d ,t"d: u
Irf,W ":d truoJ
*t i
3ql Jo uorsserdxeue sr ,/ Jo ruJoJ paJolJBJpJspuBls eql 'I < u JeSolur,(ue ue,rrg
[@
[lh
qiL 'lffmillL
'lq8rr o1
0xrnm -:l ruo'rJJepJoSulpuecseur uellrJl( eJesJolJ€Jeuud eqi qJrq,r ur uuo!patolcD!prt)puDls
ir r .ltur lnd eq uEJ < u re8elur ,(uu .ueJoer{l uorlEzuotJe;
1 enbrun eql Jo esn€ceg
ilq'L 't'0I uoqces ur pepnlrur sr ruoroeqluorlEzuotreJsnbruneqt;o;oord
eq1
loordlo spor]lanpue,OoeqlloqLunN t roldPrl3
^reluolualf
''gI
3,3 DirectProofand Counterexample
lll: Divisibility155

L-. The sum of any three consecutive integers is divisible by 35. Supposethat in standardfactoredform a : pit pSt ... pir,
tto ; 3. (Two integers are consecutive ii and only if, one is one where ft is a positive intefier',p1, pz, . . . , p* are prime num-
r ler more than the other.) bers;and €r, €2, .. . , ep arapositiveintegers.
a. What is the standardfactored form for a2?
i. The product of any two even integers is a multiple of 4.
b. Find the leastpositive integern suchthat 25.3.52.73.n is

r
he
19. A necessarycondition for an integer to be divisible by 6 is

l.
that it be divisible by 2.

A sufficient condition for an integer to be divisible by 8 is


a perfect square.Write the resulting product as a perfect
square.
c. Find the leastpositive integer m suchthat 22.35.7.ll.m rs
a perfect square.Write the resulting product as a perfect
that it be divisible by 16.
square.
ll. For all inte gersa, b, andc, if a I b anda I c thena | (2b - 3c).
36. Supposethat in standardfactoredforma: p"rtpi, ...pio,
# a For all integersa,b, Ntd c,if ab lc thena lc arrdblc. wherek is a positiveinteger;pt, pz, . . . , p1 areprime num-
bers;and €r, €2, . . . , €1,zta positive integers.
lr. For all integers a, b, and c,if a is a factor of c then ab is a a. What is the standardfactored form for a3?
f'actorof c. b. Find the leastpositive integer ft suchthat 24.35.7.ll2 .k is
ffi l.l. For all integersa,b, andc,if al(b * c) thenalb or alc. a perfect cube (i.e., equalsan integer to the third power).
Write the resulting product as a perfect cube.
J Fo rall inte ge r sa, b, andc , if albc t hena I b or al c .
37. a. If aandbareintegersandl2a:25b,does12lb? does
l: Fo rallin teg er saandb, r f aI bt hena2 lb2. 25 | a? Explain.
b. Ifx and y are integersand 10-r: 9y, does 10 | y? does
l- Fo rallin teg er saandn, if alnz anda < nt henal n .
9 lx? Explain.
-5. For all integersa andb,if a ll\b thena I l0 or alb.
38. How many zerosare at the end of458.885? Explain how
19. .{ fast-food chain has a contestin which a card with numbers you can answer this question without actually computing
on it is given to each customer who makes a purchase. If the number.(Hint: l0 :2. 5.)
some of the numbers on the card add up to 100, then the
39. Ifn is an integer andn > l, then n! is the productofn and
customer wins $100. A certain customer receives a card
every other positive integer that is lessthan n. For example,
containing the numbers
5!:5.4.3.2.1.
7 2,2 r , 15, 36, 69, 81, 9, 27, 42, and 63. a. Write 6! in standardfactored form.
b. Write 20! in standardfactored form.
Will the customer win $100? Why or why not?
c. Without computing the value of (201)2determine how
. 1_ -
lt\, many zeros are at the end of this number when it is wrif
1- Is it possible to have a combination of nickels, dimes, and
G> quartersthat add up to $4.72? Explain. ten in decimal form. Justify your answer.
lus:
-:-. Is it possibleto have 50 coins, made up of pennies,dimes, *40. In a certain town 2/3 of the adult men are married to 3/5
I
and quarters,that add up to $3? Explain. of the adult women. Assume that all marriagesare monog-
amous (no one is married to more than one other person).
-:1. Two athletesrun a circular track at a steadypace so that the Also assumethat there are at least 100 adult men in the town.
first completesone round in 8 minutes and the secondin l0 What is the least possiblenumber of adult men in the town?
:ar: minutes. If they both start from the samespot at 4 Rrr,r.,when of adult women in the town?
will be the first time they return to the start together?
ll
::, It can be shown (seeexercises41-45) that an integeris di- Definition: Given any nonnegative integer n, the decimal
B-. visible by 3 if, and only if, the sum ofits digits is divisible representation ofn is an expressionofthe form
by 3. An integer is divisible by 9 if, and only if, the sum
lot d*d*r. . .dzdtd.o,
of its digits is divisible by 9. An integer is divisible by 5 if,
and only if, its right-most digit is a 5 or a 0. And an integer where ft is a nonnegativeinteger; ds, d1, d2, ..., dp @alled,
is divisible by 4 il and only if, the number formed by its the decimal digits ofn ) are integers from 0 to 9 inclusive;
right-most two digits is divisible by 4. Check the following d1 I 0 unlessn : 0 andt : 0; and
integersfor divisibility by 3,4,5 and 9.
a. 637,425,403,'t05,125 b. 12,858,306,120,312 n : d r . l f f * d t - r . 1 0 k t +. . . + d 2 . 1 0 2+ 4 . t 0 + h.

a c. 51'7,924,440,926,512 d. 14,328,083,360,232 (For example,2,503 :2.103 + 5.102+ 0.10 + 3.)


,:*. Use the unique factorization theorem to write the folowine
integersin standardfactored form. 41. Prove that if n is any nonnegative integer whose decimal
a. 1 17 6 b. 5377 c . 3675 representationends in 0, then 5 ln. (Hint: If the decimal
representationof a nonnegative integer n ends in d6, then
n : lom * do for some integer la.)
' p uvtll rellBtus sI lBql JepuIBIuoJe^Ile8euuoue pue
"/ b luorlonb B sr llnseJ oql .p JeSelur
e,rrlrsod,{ue,{q pepl^lp sr u reSelur,{ueueq,tr1eq1s.{esueroeql repureuer-luerlonbeq;
'ggopeluredaseq plnoJ dnor8 reqloue
7;o Te^o UeI erea, ueql
rroruJr esnucoq(7) sdnor8aqlJo ezrseql uuql sselsr (g) re^o .esrnorJO
Uol roqr.unueql
re^o Uo[ E t.]o sdno.r87
JJ
'E+ V'Z: lI
'ro
ra^o lJe[ € 7;o sdno:87
J J
xxx Ifixxl fxxxtl
reqlouv
:re^o Uel € qll^\ t Jo sdnor8 7 spnbe I I leqt sr srql {es 01,(e,4A
JapurcIUeJ + I
8
luerlonb +
tr_-]r
Z
'g Jo repuruueJe puu ,V [q, epr,rrp
7;o lueqonbe 1eBnof lI no,( ueq16
996 l_€gg I relseqla IIod uuuv _
,,'Qsnottqo,, pro$ aqt 3ut,u.o11o!
ruaaapls {uo lo lDruto elottadsa ag
wetoeqtnputeuea-lueqonoeq pue seseJolut
uo!s!^!Q:il equexetelunoJpue lootd peilo
,.€
'11 ,(q elqrsr,rrpsr tr ueql ,11 ,{q elqrsr,trpsr u;o slr8rpeq1 'G79L Jo slFlp eql urnseql)
Jo +
.er:e8elure,rrlu8euuou
,1oruns Surleuelp eql JI ,{uero3 1eq1 (6 ,{qelqrsrnlp:e8alur
uu.1-
rJp.Jeql,{ypsn1'77: I - 8 + 0 - 6 + Z -
Bst gz6.08tJo
str8rpeq1;o uns 3ur1eue11e .elduexe
eql rog .quoJos pue f t + z + I + D +6. (Z *rr. E *I rr. t ):
'1r8rplxeu eql Suqce.qqns oql 01
lJel lFIp lxeu eq1 Eurppe G + z + s + r) + G.z+ o.tt.E + 6.ru.D:
'Uel stl ot,{Iel?rpeuur 1r3rpeqt Suncerqns ,lr8rp
lsorulq8u Q + z -t s + /) + G.z+ 66.9+ 666. D=
eqt qlr.r Suruqs ,(q peurelqo sr a;o slr8rp eqt runs Furleu
3ro n + Q + 6.A+ G+ 66.9) t (t+ 666.71 :
-Jelleeql 'ruJoJIuurcep ur uellrJ,r\I re8elur e,trlrsode ue,rrg .9y
1
'E,{q elqrsr,trpsu ueql ,g ,{q elqrsr,rrpsr z;o
r+ (r + dz + (t + 66)9+i + a e O t :
slr8rp
Jql Jo runs eql Jr 't,t:e8alur a,lrle8euuou,(ue JoJ leqt e^ord .S, v + 0r.z+00r.s + 000r.r : vzgL
*
leql e^resqo .nn* u
'6 ,(q elqrsr,trpsr u ueqt ,6 ,{q
alqrsr^rpsr ?./Jo
slr8rpeqlgouns aqlgr,ure8elure,r.rle8euuou ('oP+ IP\l + s00I : 2r
Iuu :o; 1eq1e.tord .spJo^\reqlo u1 .a re8elur a,rrlu8euuou leqt qrns s .te8eluruu sr ereql ueqt .optp ur spue a re3e1
.{ue o1 eldurexo srql ur ue,tr8 lueun8re eql ezrl€JeueC -ur e,trleSeuuoue Jo uorlelueserderyeurcep eqt lI :lutH)
.6 elqrsr^
'uly uaqt '(0p + tp1il
It JI pue oprp u! spue a re8elur
e,rrle8euuouB Jo uorteluase.rderlerurcep aql teqt e^ord .€,
-lp sI tZgL leql SI esrrraxeruoq s.{\olloJ .6 {q^q
n elqrsr^rp Jr
sr qcq,tt Jo r{Jue s;e8elur o,ul Jo runs u se ueuu,tr eq uec .lr g ueql .g
I ur spue uorluluesarder
VZgL '6,(q elgrsr,rrp\ VZSLgostr8rpeqt Jo runs eqt erurs
IEUrrCepesoq,r,rreSelur e,tl]e8euuou ,(ue sr a Jr ]?ql e^oJd .2,
]oord]o spor.llan
puefuoeq1loqLunN,&e1ueuel;
tloldeqC 99I
Tt The Quotient'RemainderTheorem
3.21.1
"or*. q and r such
exist unique integers
Given any integer n and positive integer z/' there
that
n:cl q1-r and 0< r< d'

in Section 4'4'
We give a proof of the quotienGremaindertheorem
Ifnispositive,thequotient-remaindertheoremcanbeillustratedonthenumberline
as follows:
d 2d3d qdn

- dq * r' where r is nonnegative'd must


---.': :L[MN,' If n is negative,the picture changes'Since n
n. Then the nonnegativeinteger r is
be multiplied uy u n"guii* inteier q to go below
as follows:
addedto come back up to ,?' This is illustrated
qd n -3/ -2! -( I

Erample 3.4.1 The Quotient-Remainder Theorem


and r such lhat n : dq -l r
Foreachofthefollowingvaluesofnandd'findintegers4
and0<r<d'
a.n:54,c] :4 b'n:-54'd:4 c'n:54' d :' 10

Solution
a. 54:4'13 + 2; henceq - 13 andr :2'
:2'
b. -54 : (-14)' 4+2:hence q - -14 andr
: 54' I
c. 54 :70' 0 + 54;hence4 : 0 andr

div and mod


that enableyou to compute many
A number of computer languageshavebuilt-in functions
Thesefunctions are called div and
values of q andr for the q"uori"nu."r,'aindertheorem.
calledI andvain Java,and arecalled
mod in pascal,arecalled) and7oinc andct-F, are
/(or\)andmodin.NET.Thefunctionsgivethevaluesthatsatisfythequotient-remainder
th e o re mw h enanonnegati vei ntegerni sdi vi dedbyaposi ti vei ntegerda ndt her esult
not give the values that satisfy the
is assignedto an integer variable. However, they do
is divided by a positive integer d
quotient-remainderth-eoremwhen a negative integer n
definitionsfor div (short
(seeexercise16 at the end of this section). So we restrict our
,'divided by") and mod (shorlfor "modulo") to division of a nonnegativeinteger' The
f,lt\ p, > a for
10'3 and l0'4'
Liler :,',r u modulo conceptis discussedin greaterdetail in Sections
.,{epseupel6
,(1eueu,re1e1
,,(epI eq il1,\\fepol ruorJ s,{epg9g os pue
',{epsenle oq IIr^\ ,(epo1ruorg ,sfep pggro .r1""^ Zg snqJ .l
+ L . Zg : Sg1esneraq
I : L pow g9E puB Z,g: L SgE
^!p
's,tep s€r{
7 {ee,r qree pue .ree.{deel € lou sr leql .ree.,(
e ur s,{ep S9, ere ereqJ f".rT_,",
yo,(ep .rue,(
1uq16 deelesrree,{
rxeu
rourue,(
srqr
rt#:; frJr,fff"l;:iliTt,::#.".7
>Iaaa\aql Jo ,{eq eql 8ul1nduro3 g.7.g
alduruxg
.s _
6pow ztpue t: 6 snqJ
^!pzE
6 potu 72+ g
n |,
-^
cr lb
6 lt p 7 t t
-
uonnlos
'6PowZt pue qp erndruoJ
6 ZE
poupue
Z.t.t aJdurexg
^!p
.p pow u
ulBlqo ot 'u utou llnser oql
lceJlqnspue ,p,(q ,{ldnlntu 'p u elndruoc uuc no,{ og
^!p
' (p^ !pu) .p_u :ppow u
lBql e^eq ah\sppowu+ (p t/ ocurssrltql.bp _ u _ ruaqt
't + bp - u ^!pu).p:
Jr lerll lcu.+eql esn ueJ no[, ,p pow ?1pug_ol .re,4.\suu eqt
aqt e:ou8r pue p fq a epr^rp Jo ued Ieuorlre4
lsnf no,( 'p rc*eryre.,4rsodn pun , ,.3"1u, enrl'Seuuou
p u elnduoc oI 'potu pue n ,o;
^!p ^ry
Jo senp,r elnduro, _;;;ri;;;;;r," uer no^
",
oqr sqre,'rord
olpe>rsu
oruno^'0: ppowr,"u,;i;t"";r;l1t#Hi,TlrI;t:i"",'i
:a8alur
- uu roJuorlrpuocruarcuJnspuefresseceu 3 leql osrpa10p .(s,re3e1uresoql
eqrsnu p fq u p uorsr^rpeqlJoropureuereql ecurs)-t- p qsnory Jo euo
0 ruoq sreSelureq1
;o euospnbep pow u leql ruoroer{t,"pure-er-lrreqonbeql 11104
s1r\olloJ
ll leql etoN
'P > t ) g pue sra8elur
ere / pue D ereq,,n
t lbp-u <+ ppo w u pue b:pA tpu
ueql 'sra8elure,rrlrsodam p pul z y
.{ypcrloqu,(g
'p ,{q peprzrrpsr t1ueq^\
peuelqo repureluerre8elur erg: p
pout u
puu'p Kqpepl^p sr ?/ueq,r
peurctqolueqonb re8atur arg: p
u
,p rcBe1u ^!p
a,trlrsode puv u re8elur a,rrle8euuou
B Ue^rc
,roordlo spoqla|^J
puefuoeq1loqLunN
t roldeqC ggI
^reluou-roll
3 .4 Dir e ctPr o o fandoounterexaffi pl el v: utvi sonl nl ouasesanol rl euuouerl t-K cl l l drrrucr rrrtr urtrrrr LJ J

More generally,if DayT isthe day of the week today and DayN is the day of the week
in N days, then
DayN : (DayT * N) mod1, 3.4.1

w h e reSu n d ay:0, MondaY : 1, .... S aturday:6. I

of Integers
Representations
In Section 3.1 we defined an even integer to have the form 2ft for some integer k' At that
time we could have defined an odd integer to be one that was not even. Instead,because
it was more useful for proving theorems, we specified that an odd integer has the form
2k + | for some integer k. The quotient-remainder theorem brings these two ways of
describing odd integers together by guaranteeingthat any integer is either even or odd.
To seewhy, let n be any integer, and consider what happenswhen n is divided by 2. By
als one ;r the quotient-remaindertheorem (with d : 2), thereexist integersq and r such that
d mus l:e n:2q* r and 0< r< 2.
an mtesr
Bu tth e o n l y i ntegersthatsati sfy0< r< 2arer:0andr= 1. Itfol l ow sthat givenany
this in ry
integer n,there exists an integer 4 with
rte rt,Jl-",r n:2q* 0 or n:2q* I.
i_rnoreu
un
In the casethatn : 2q * 0 : 2q, n is even. In the casethat n : 2q * l, n is odd. Hence
-
n is either even or odd.
The parity of an integer refers to whether the integer is even or odd. For instance,5
has odd parity and 28 has even parity. We call the fact that any integer is either even or
to obrtu. odd the ParitY ProPertY.

Example 3.4.4 Consecutive Integers Have Opposite Parity

Prove that given any two consecutiveintegers, one is even and the other is odd.
Solution Two integersare called consecutiveif, and only if, one is one more than the other.
So if one integeris n, the next consecutiveintegeris ru * 1.
To prove the given statement,start by supposing that you have two particular but
arbitrarily chosenconsecutiveintegers. If the smaller is m, then the larger will be m * I.
How do you know for sure that one of these is even and the other is odd? You might
imaginesomeexamples:4, 5; 12, 13; I,013,1,014. In the first two examples,the smaller
of the two integers is even and the larger is odd; in the last example, it is the reverse.
These observationssuggestdividing the analysisinto two cases.

Case l: The smaller of the two integers is even.


Case2: The smaller of the two integers is odd.
ltrat da1 ;r
In the first case,when rn is even, it appearsthat the next consecutiveinteger is odd.
Is this always true? If an integer ln is even, must r?4* 1 necessarilybe odd? Of course
has 7 da1:
the answeris yes. Becauseif m is even, then m : 2k for some integer k, and so m * I :
2k + l. which is odd.
In the secondcase,when rn is odd, it appearsthat the next consecutiveinteger is even.
Is this always true? If an integer m is odd, must tto * 1 necessarilybe even? Again,
the answer is yes. For if m is odd, then m : 2k * I for some integer k, and so m I | :
(2 k + r) * I :2k a ) :2(k * 1), w hi ch i s even.
This discussionis summarizedas follows.
'sJeSolur J^rtEulellp
Jo suorlBluosordeJ Jo ,{leue^B urelqool p
Io senle^reqlo qlr,{\perlddeeq uec ,(lredord,{1rred eq} e^rrep ol pesn ernpocord eq1
'€'I uotres Jo su,tr.(1rpr1e,r
IZ esrrrexeur pe.r.o.rd
sll '8'E'1 eldurexgut ue.r,t8ouo eql Jo uoIlEzIIBraueBe sr luerun8reJo ruJoJsrql leql eloN
'J <- "V
') <- tV
'J <- zv
' J < - IV
,) <- (V ro . . . ro ty
suorlecrldurraql IIe ,^Aoqs n ry rc ry)
luql ,^Aoqs ol ,,y Jo . . . Jo Ey ro zV ro ry teql ue.r.tg
's1oqtu,,{s
uI 's,^AolloJ
J Jo qtnr1oql
,enrl eq ot sueddeq]y
lueruelelsqcrq,^AJo sselpru8erleql opnlJuocuec no,{ ,turodleql lV .J pecnpeppuu enJlsr
''y peurnssue,tuqno,,(
IrrunquoJ os pue :J eJnpeppue erur sr zy eurnsserxeu :J ecnpep
pue erul sr Iy eulnssslsJrd 'sos€colur uorsr^rp poqleu eql esn pFoqs no,( ,uorlenlrs
Jo
srql uI '(qJrq,4A
,^dou)I10u,(eruno,{ qSnoqtp) eru1s1 ]y slueuelels 3ql euo lseel le l€q]
Jo
\\ou1 no.{ ,o Jo uorlruuep,{g 'J uorsnlsuoce ornpop ol lue,^(no,{ esoddnspun ."-1 ,'
uV ro' '; 6 fy ro 7y to Ly
ruroJ eql lueluelels e teql .4\ou{no,{
Jo Joord e Burdole,r.ep
go e8uls eruos
ru1eq1esoddns 'JoJpellec sr sespco,ldlueql eJoruolur uorsr^rpueq,^d selur]eJeeJeqJ
.lou Jo ue^a Jeqleq,4d
:a8e1urue.,lr8,{Irerlrqreue roJ prle^ sr leql;oord e urulqool ta^e,$oq .sesecqtoqreprsuoo
rsnr'rlno^ ',{1dduru.r,rsoseJeql Jo auo ,(1uo're8elurue,rr8fue rcl .z esEr ol sreJSuEJl
IOJluOr']ou Jr : I esecol sJsJSuEJlIOJIUOJ 'UeAeSrur 11 .utvtaotdrelndruocE ur luelualels
aqa-uaql-J!ue JoJ IorluoJ Jo JOJSUEJI 3q13{lI sr;oord B ur sesecolur uorsr^rpeqJ
l.u^oqs aq o]
soA^ruqil s! slqJl 'ppo sr reqlo eql pue uele sr I + ut pue u/ auo .uesoqooru
Jo luql
I + r,rtpue ur relncrped er{lroJ srnrro ,{11en1ce esecqorq,r Jo sselpre8erIEWs,\\olloJU
'ppo sl roqlo eql pu? uo^e sl I * nr pue M lo euo.oslBeseJsrql ur ecueH
'ue^e sr f ar sn{l pue .re8e1ureluos eJr,rl slenbe
1 .oJoJeJeq;.sre3e1ur
1 + al o,r1
Jo runse sr l r es nec eqre8el ur u€ s r I * 1 tng .0+ rD Z:Z+ )tZ: I+ fi + 4 2 )
: I -l w os pue '7 re8alur etuosJoJ + ,ese) sIIl uJ :(ppo
I 4Z: M st ut) 7 aso3
'ppo sl rarllo eql pue
UEAE SI + ut pue t,tlJo auo 'eseJ srqt ur eJueH .lppo to uo4tu{ap {ql ppo sr qcrq,r
,I+12
' I I tu os puu'7reSelureruostoJ1z - M,?sex sv4u1 :(uata st w) 1 asn3
l.ppo ro uata st w raqpqt uo ButpuadapsasD)ot tl olut tootd
aqt ZDarqal6] 'ppo sr at ro uelo sr Lu rcrqqe,,(uedord flued eql fg
l.pp,t y raqrc
aWtDry puo ua^a st I + M puD tuto auo Wqt iloqs 6ruu a714] .I
* ta pug zrlueql IIer
iue,rrSere sre8erure^rlnresuor luasoqce\tot4qtn yq tolncryodl o,r\r
rur{lesoddng
'dtFed etlsoddo e,Leqsre8eluronrlncesuoco.r,r1
.{uy
z't'g uaroerlJ
loordlo spoLllenpup raqLUnN g reldeq3 09I
^loaLll ^.relueLUall
Theorem 161
-:o Casesandthe Quotient-Remainder

Example 3.4.5 Representations of Integers Modulo -l


Sh o w th a ta n y i ntegercanbew ri tteni noneofthefourforms
n :4 q or n-4q-t1 or n:4q* 2 or n:4q* 3

for someintegerq.
: 4. This
:1 " Solution Given any integer n, apply the quotient-remaindertheorem to n with d
-,.-
/ t "ii . i, :
implies that there exist an integer quotient q and aremainder r such that
'!: : ':' j
n:4q* r and 0< r< 4.

But the only nonnegativeremaindersr that are lessthan 4 are 0, I,2, and 3. Hence
i s e'' ; : n :4 q or 4:4q * | or n:4q 12 or n:4q *3
I
for someintegerq.

:U m - , The next example illustrates how alternative representationsfor integers can help
. e\ 3:, establish results in number theory. The solution is broken into two parts: a discussion
and a formal proof. These corespond to the stagesof actual proof development. Very
few people,when askedto prove an unfamiliar theorem,immediately write down the kind
I rri - -
rr'{1,-;1
of tormat proof you find in a mathematicstext. Most need to experiment with several
--
possible approachesbefore they find one that works. A formal proof is much like the
ending of a mystery story-the part in which the action of the story is systematically
I reviewed and all the loose ends are carefully tied together'

.then<lst
Example 3.4.6 The Square of an Odd Integer
Ot. Cof.lltr
prove that the squareof any odd integer has the form Sln * I for some integer m.
\ou r:' n
'en inl-f51
Solution Begin by asking yourself, "Where am I starting from?" and "What do I need to
show?" To help answerthesequestions,introduce variables to representthe quantities in
ose Ih:: ir the statementto be Proved.
Fonnal Restatement:V odd integersn, 3 an integerrt such lhat n2 :8m I l'
From this, you can immediately identify the starting point and what is to be shown.
) ou k: -,fu Starting Poinf.. Supposen is a particular but arbitrarily chosenodd integer.
:ht. In --:r' To Show:3 an integerrr such thatn2 : 8m I l.
is true ,:n :
This looks tough. Why should there be an integer m with the property thar n2
isumed '1-, - l. Perhapsyou
8m*l? Tharwouldsaythat(n2- 1)/8isaninteger,orthat8dividesn2
r stateriilfi
could make use of the fact that nz - | : (n - l)(n + 1). Does 8 divide (n - 1)(n * 1)?
Since n is odd, both (n - 1) and (n * 1) are even. That meansthat their product is divisi-
ble by 4. But that's not enough. You need to show that the product is divisible by 8. This
seemsto be a blind alleY.
You could try anothertack. Since n is odd, you could representn as 2q * I for some
integerq. Then nz : (2q+ 1)2 : 4q2+ 4q | | : 4(qz * q') + 1. It is clear from this
analysis that nz can be written in the form 4m * I, but it may not be clear that it can be
written as Sru * 1. This also seemsto be a blind alley.*
yet anotherpossibility is to use the result of Example 3.4.5. That exampleshowed
that any integer can be written in one of the four forms 4q, 4q -l l,4q *2, or 4q *3.
Two of these,4q * I and 4q *3, are odd. Thus any odd integer can be written in the
le 1 . 3. 8 .l :,
*Seeexercise25 for a differentperspective.
3r values:i:
.dlrq ,(etu
.'1 _ rcLUxutqt.fuD
'troueu rno,(.;o sJe[roJ ppo eql orur qc€ar no,{'ue1qo:d u Fur^roslnoqn lrnr,{1uer no,{ puu
isaJrns rnoqlr^\ seqceorddesnor^qo eqr
IF paul e,teq no,( ueq16 .,41iqee.rcrnds uec uorleredseq*
L'&toqs
ol papaaua^4toq* s! slqJ] .at re8aluroruosroJ
l, + utg :
ro I + by wog er{t Jo rarllaqzrrta8elur ppo fue uerrr8 zu,t * bV
terD 7 pue I seseJ
.JedeluruB sr Lu ^oq,
eJorl,r I I ug _
zu
.Bur1n1r1sqns .snq1 .sre'elur
ere sre'elur;o slcnpordpu' suns
pue s;e8eluren b pue 'E ,Z ,l ecursre8elurue sr ut uaqJ .I
+ bt + zbz : * t_I
l'l * (n8asr awos) . g w"ro!aqt ut
uotssatdxaaql ailrl^ ot arlsapaql sD,Lsdals,tqa|p{o auoqc
uql ,oluoriotuour aqJl
.e:qa8p s.ru1 eqt.{q
so I + (I + bE a ,b7)g :
( t + g)+ b vz +r bgr :
6 + bVZtr bgr_
arunbs.lo
uonrusep
,{q G + bilG + bV) :
uo4nlrlsqns.,{q
,( E+ bp1:ru
't + bV - | 1erurs
l .l + tu l : _ u
tDtp qrns w ta8alut uo pu{ tsnw a14l :(b ta7aryr awos .ro!
t+b;_ ut i ,ril
reSelurue sr z//erer{,r | | ug:
,u
'8ur1nlrlsqns ,snq; .sre8elur
ere sre8elur;o slcnpord
pue srunspue sre8elurem b pue ecurs;e8elur y
Z Lre w ueql .D l
rbT_ sr"_,
.urqaile sne;:qr ,{q
1o I + (b + zbz)g :
r + b 8 * , b 9 1:
a:enhs ,{q
1ouorlruuap bili bV) :
0 + +
uonnrrri-qns,{q :
7(I I bfl ,u
ruqtqrnsw taua,urut pu{ lsnu a,yl ,1nnaat}t*r::r:r;llitl':*rfl
ir$
't + b V ro I+ b n
o^pqtsnuru'ue^eereZ + by pueby puepposr11ecurs,1cug
,, , rH:'r:lffiT:
t + b V r o Z+ b , r o I + b , ro b y
-ruerlonbeqr.{s.:e'e1urrff
?#J,il'ri,',::,:;}u,;;}il:,i,'ff
::T';"j#HJ
uooJd
'tu J€aetuteluos JoJ
I + tug ruJoJeril seq re8elur ppo ,{uu;o erenbseq1
€'t't uraJooql
,1oordpuro;3urmo11o;eql ur uaoqs eJeslrplopeqJ .uoqelnJl€c .(q,,{lrpuer
-rolsnlcuoreql 'sesuco,{u eql tcerrp s,$oIIoJ
Jo r{cpeuI is{rot\ {ll[qlssod 1rn1,rqt tnql tno s111nl]I
ropeseq
seser
olurBurreerq
rrl pFo"no1.bre'elur ;lT? ff;'lt."il
"-", ilil1
Ioo.rd
jo spoqlo6pupfuoaq_L
loqLUnN
^leluoluolf
3.4 Direct
Proof
andCounterexample
lV:Division
intoCases
andtheQuotienlRemainder
Theorem153

sed or. Note that the result of Theorem 3.4.3 can also be written, "For any odd integer n,
n z mo d S :1 ."
lusior
prool
ErerciseSet3.4
: H 21. Prove that a necessaryand sufficient condition for a non-
" ::.-h of the valuesof n and d given in l-6, lind integers4
rr,:' .uchth atn : dq I r and} < r < d. negative integer n to be divisible by a positive integer d is
- , t : 70, d: 9 thatnmodd:0.
2 . n :6 2 ,d :7
22. Amatix M has 3 rows and 4 columns.
, : r : 36, d: 40 4 . n :3 ,d :7 1

ent- i c = - ! , J , 4- 1 1 6. n: -2 7 ,d :8 a.tz aB
1""
I Att A)) azt
"rof
oto
i -- -rle the expressionsin 7-10.
- t.4 3d iv9 b. 43m od9
L,;;";; ay au)
I

ta\.e i t. 50 div 7 b. 50 mod'| The 12 entries in the matrix are to be stored in row major
form in locations 7,609 to 7,620 in a computer's memory.
t t.28 div5 b. 28m od5
This means that the entries in the first row (reading left to
', right) are storedfirst, then the entriesin the secondrow, and
a.3 0d iv2 b. 30m od2
finally the entries in the third row.
- Check the correctnessof formula (3.4.1) given in Example a. Which location will a22be stored in?
-1.4.3for the following values of DayZ and N. b. Write a formula (in I and j) that gives the integer n so
a. DayT:6 (Saturday)and N: 15 that a;; is stored in location 7,609 + n.
b. DayT : 0 (Sunday) and N : 7 c. Find formulas (in n) for r and s so that a,, is stored in
c. DayT:4 (Thursday)and N : 12
location7,609 +n.
r I Justifyformula (3.4.1)for generalvaluesof DayZand N.
23. Let M be a matrix with m rows and n columns, and
,-r. On a Monday a friend says he will meet you again in 30 suppose that the entries of M are stored in a computer's
days. What day of the week will that be? memory in row major form (see exercise 22) in locations
N , N + 1 , N +2 , . . . , N + m n - l . F i n d f o r m ul a si n ftfo r
t -.1" If today is Tuesday,what day of the week will it be 1,000 r and s so that a., is stored in location N * ft.
days from today?
24. Proye that the product of any two consecutive integers is
-: January 1, 2000 was a Saturday,and 2000 was a leap year. even.
What day of the week will January 1, 2050 be?
25. The result of exercise24 suggeststhat the secondapparent
il ll. The / and % functions in Java operateas follows: lf q andr blind alley in the discussionof Example 3.4.6 might not be
are the integers obtained from the quotient-remaindertheo- a blind alley after all. Write a new proof of Theorem 3.4.3
rem when a negative integer n is divided by a positive inte- basedon this observation.
,eerd, then n/d is q * 1 and nVad is r - d, provided that
thesevalues are assignedto an integer variable. Show that 26. Prove that for all integers n, n2 - n * 3 is odd.
n I d nd n%odsatisfy one of the conclusionsof the quotient- 27. Show that any integer n can be written in one of the three
remainder theorem but not the other. To be specific, show
forms
that the equationn : d .nld + n%odis true but the condi-
;rcn
tion 0 < nVod < d is false. (The functions div and mod in n:3q or n : 3 q *1 or n:3q-1 2
Pascal,/ and Voin C and C**, and / (or \ ) and mod in
for some integer q.
and .NET operatesimilarly to I and Voin Java.)
28. a. Use the quotient-remaindertheorem with d : 3 to prove
n-. When an integer a is divided by 7, the remainder is 4. What
that the product of any three consecutive integers is di-
is the remainder when 5c is divided by 7?
visible by 3.
- !. When an integer b is divided by 12, the remainderis 5. What b. Use the mod notation to rewrite the result of part (a).
to r
is the remainder when 8b is divided by 12?
H 29. lJse the quotient-remainder theorem with r/ : 3 to prove
-9. When an integer c is divided by 15, the remainderis 3. Whar that the squareof any integer has the form 3k or 3k * 1 for
I is the remainder when 10c is divided by 15? someintegerft.

uccess 10. Supposed is a positive integer and n is any integer. If d I n, 30. Use the quotient-remainder theorem with d : 3 to prove
rry for what is the remainderobtainedwhen the quotient-remainder that the product of any two consecutive integers has the
theorem is applied to n with divisor d? form 3k or 3k * 2 for some inteser ft.
lg6l 'aJuarradrE prrjDluaquryaqJ.qslrHuJqnedpuBsr^BC.f dlllqd_
.uosDararnd.[o
ra.rod aq]lo uortlrqapr D puD .pnrr st ,e1ou1g
looul
aqtJosuouJass'Jrlotsaqj sazlptt^ququDa[qns
t, ^a^.-^. )lrlJdp .suaroaqt
^-..-- a41tauod aqt
Jo adaro^ pt,muaqn, s1Jbot{ 's)uoaaqrnu uau.{o uotlnatt aql
ol Jasop sla8 s{ootd satpn$ oqft aJmou aqJ .s)ttDuaqfiu
uau slsaiins loord JagDLu
aqtto ltoaq aq1But\narct {q Eutpuolstapunsast)arJut,sa)uDtsut
.[luoqmo 6aq s1tut {oot4
Jb lDas aq] s1loot4 .filpqotcadsat sryoot4".atnsodxa
iuDtsuo) {q dn patoalt ato s7utpuolstapunstu puD ,salrln*lqal ,rroirg .lrorrpllonu
pun wstc'rtt.{o ssatotd luolsuoc , o1pafqns n ,aruatpnDrv,ai
lootd [o] o !b'g)uxpnt
pun {utlntcs aqr or pasodxaSuraqu1 '(lsnoauo4nuts
sasodtnd {uotu saMas
roord
:Aerduexet
etunorow fllllt !"ifo'"iH,
(.e^oqe
;9 puu I9 esn :tutH) ..,(lJyenbaur apueJrl eqt pell€r sr llns
-rr sn{J 'l{l + lrl t l,{ + rl ,( pue r srequrnu .Eg
uG
l?er ll? rog oqlseq
rc1a be,ruor Epue
,,.3J"tiliil"iJ',if^: .r, ,
(,.'y uaql g JL, puu .,8r 'rJ:e8elur etuos.roJ,
+ ?E
uaql y Jl,, e,rordtsmu no,{
,,.g :
Jr ,,(1uopue :r y,, ruroJaql Jo rta Jo 'I +lS: rut to '19: iru,rzl sre8elurIJe JoC .L
lualueletsu e,ro.rdoJ) .r ;
lrl Jr,(1uo pu€ Jr r ! r > .r_ '7,(q elqrsr,trp ,u:e8e1ur
uaql 'Jequnu pe.l ,(ue sr r pue Jequnu sl (Z + ll)(l - ,{ueJoC .0,
1ee:e.ttlrsodp sr J JI .Zg .u)u
'1 ;e8elur eruosroJ
'lrl > x ! lrl- ,r sroqunu
IeerIIEroC .IS Z+ L
uuoJ oql seq sre8elur elrlncasuoJ rno; ,{ue
Jo ums eqJ .6e f,
lfrl : l,r;l. lrl ,,t puex srequnuI?erIIurod .0E
.7 re8elur
.lrl : eruosroJ
,.r sraqrunu
lr_l Ieerlle JoC ,6, Z -t lV to I * 77 uroy aql seg I + _u,1 a u n}elur,(ue:og .gg g
oruos
roJ| + Iv $ )tvwto;eqtseqra'el",
*
^rnr".rJJJrt3ll
'8 {q
:s,,r\olloJ
se peugepsr .lrl pelouap elqrsr^rpsr s:e8elurelrlncesuoJ.rno; ,{ue
3o lcnpo.rdeqJ .9€ l/
'r go enle,r olnJosqeeql .r Jeqrunuper ,{uuro{ :uolllu[eq
'tf-gt uI slueruelutseql
Jo qJuee^ord
.w ta8alw
t9-6t ul tuetueletsqcue e,ro;d ot uorllugep Burmollo; aql esn e[ros JoI
I + wg ro LugrruoJaq1seqre8elur ,(ue3o re.,rodqgnoy ,qj .gg
.eydruexerelunoc
uaqt'Q# p puesre'elur,:';{,:,;,0*';*r:#J:l e e,{r8Jo eloJd 6eur.rd eq
* 1p
V + u pug 'Z t u,u plnoc .E < u Jr,u reielur ,{ue uo^rC .re
.ste,,\Asuu H
:no,{ e,tor4
:p pow qD: p potu (uw) sI LqD: p potu (utu; sl,q: p
o o wu p u e D - p po w z p u e s r e S el u r e r p o^ord Lr - t p fiuedeqltnoqe,(esno,{
ep u e , q . 0 . u . w i l . L V *
sI r - q pue ppo q q - D ""Jt#T-;::i
Ja'r pue.q,r sra8elur,(ueue,trg .EE
.sro,rsuu
rno.{ e.r.or4Lp pow (q + D) : p
co w ( u + w ) q LQI D : p p o v ( u + t u )
sl , q : p p o L urpelsrJ
:t pue D: p potu az pue sre8eluroJep pue ,q,D,u.a .9r*
sarsedord
eqrasnfeu no1 ,.^;:Jrill'ff":at
JI L(r + q) - oZ lo,{1ped eqt lnoqe fes no,{ uec leq^\ .ue^esr
.re.rsu?rno.( e,,ror4Lp potu u pue p potu u uee.,t.rlaq
uor1 ) - q pue uele sr q _ D ,J pua .q,D
JI s:e8elur,(ue ue,lrg .7g
-u l er e r {ls r le q , 4 A. (-t l w )l p pu esr e8 el uer rep pu e, u , a I .gr*
'sre8eluro.nrlrsodeJea puu
tu qloq qJrr{,r
'sJe,r\su€rnof e,ror4 roJ 88 -
iq alqrsr,trps u - xu ;p zu - ?il uorlenbe eqt ol suounlos IIE purd .J
.sre8elur
leqJ -
au.I w $rlt.tto11ogr,,{luesseceu e,trlrsodarc u pue r/ qloq qJrql\
rrseop<ppou u: p potu z pue sreSelur erc p pue,u_ruJl .rl* roJ 99 :
zu - zM uorleunbeaql ot suoUnlos Ip purC .q
'I : gl pow e^e qtoq ro ppo r{tog reqlre orB
tu uaql 1e3e1urppo u? sr u I .tt
u _ lupuv u + ur,u pue zr s:e8elul
IIe JoJluql e^ord .e .I€
]oordJrospoqloy\pue{roeq1loqurnN g reldeq3 Vgl
^re}uoLuoll
3.5 I -::t Proof
andCounterexample andCeiling165
V:Floor

lmagine a real number sitting on a number line. The Jloor and ceiling of the number are
the integersto the immediateleft and to the immediateright of the number (unlessthe
number is, itself, an integeq in which caseits floor and ceiling both equal the number
itself ). Many computerlanguageshar e built-in functionsthat computefloor and ceiling
automatically. These functions are verv convenientto use when writing certain kinds
of computerprograms. In addition. the conceptsof floor and ceiling are important in
analyzing the efficiency of many computer algorithms.
: : n,
,: ' tr,,4 ll

Given any real numberx, the floor of x, denotedlxl, is definedas follows:

Lxl : thatunique integern suchthat n < x < n * l.


Symbolically, if x is a real number andn is an integer, then

Lxl-n <+ n<x<n*7.


L,li -- -

-T
#
alue of r. n tt+l
+
floor of -r = Lxl

Given any real number x, the ceiling of r, denoted fxl , is defined as follows:

fx'l : thatuniqueinteger n such that n - | < x < n-


Symbolically, if x is a real number andn is an integer, then
rumber.-:el
'il \tJte-r:"Tl l xf:n < + n-7< x< n'
r e "rf .{ :,:r

i
ceiling ofr = [r1

Example 3.5.L Computing Floors and Ceilings


Computelrl and fx'l for eachof thefollowingvaluesof ;r:
a.2514 b. 0.999 c. -2.01
Solution
a. 2514:6.25 and6< 6.25< 7;hence12514):6andl25l4l:7.
:0 and[0.999]: l.
b. 0 < 0.999< l;hence10.9991
c. -3 < -2.01 < -2; henceL-2.011: -3 andl-2.011: -2.
INT (x).
[l] is denoted
Notethaton somecalculators T
'( Jo und leuorlce{+
f('l : (
puB
rgo ued IeuouJBJJ
* frl : r
SI OS
Ued puollJe{ ued leSelur
\,/
\/
c ,1 c
' v
^ ^9
LL
sBlsnf:fle^Dradser [(l pue fx"l Jo slrBd
re8elur eql eJB pue ueql .e,trlrsodere ( pue r
fl(l frl Woq Jr
.ecuelsurroC .e{q ppoc
sorlrluenbsnouB^ eql tBqt senp.n eur8urul el-{'l + lrl + rl l€qt qons eq I pue r
# f(
plnoc Jo '|-4 + irl : [f + r'l ler1lesec eql aq .{grusseceu 1r lsntr .sroqr.unupe_rere {
tr
pue r esoddns :s.{\olloJsu peuos8ere^eq plnoc no.,(.eldruexerolunocsrql e^l.,ruor
1B
'f,cl+ lxl # l,( 1r'l ecueg
t Ta l
' r - rrl - | c o I
r-ttt-t*-r-l ' : l(+ rl
II II
sBaJeuA\
r --1 r- - r
. o : o +o :
| : | + | ! | : ; , c11 p " 1
tI| trl
ueqJ 'f : ( : r e el .elduexeJelunoc e sV .esleJsr lua(uelslserlJ uorlnlos
' [,] + [r'l : f [ + 11 '[ puu r sreqrunu
IeerIIBrog
eosluJro eruttuouelelsBurlrollogeql s1
roold Jo pa8eilV ue Bur,rordsl(I ,.S., aldurexg
'{trradord
(. ^ t7 |
'l +? > +Z ; ypu er e8aluruesr
: Zesnereq
ry: | : +ry |
1'll'l
pue
'I + )t > )t ; 4 puere8elurue sr rJasnuceqtt :
lttl
ueql re8elurue sr ? esoddng uoqnlos
1,,tq./$.
alZ/ t + 7j pw [Z'l ere1eq,trte8elurue sl Z JI
rooldJo senlu1 luraueC eruos g.S.galdurexg
st: Lsz'vtl: lov/oLErl'q vE: l;z'vE1
: lonloL:rl'e
uorlnlos
adp1aW e>lelol sJerploseql 11e,{\ollu ol poeu repuer.u{uoceql
llr^\ sesnq.,(ueu urroq.snq pellg ,(11erped
e pues ot Bulp.tr sr repuetutuor osuq eql .q
JI
apuesIIrA{JepuetuluocesBqeql sesnqJo roqr.unuurnrurxBr.u
aql sr 13r.L\&'sesnqIInJ ,,{1uopues IIr.{\ JepuBuruocoseq eq1truouoce .B
Jo suosserroc
'sre8uessud0t Jo unurxeru e sploq snq qceg .1noBurue,re
ue
roJu,ror olur sesnqe{el ol ,(lrunpoddo eql ue.rr3eJeeseq.(;elrTruB srerplosgtE.
1e I eqJ
uo;1uc;lddyuV Z.S.t alduuxg
loordJospor]lol^puefioaql raqL!nNrte1uau.rel3g teldeq3
99I
3.5 D rectProofand Counterexample
V: Floorand Ceiling 167

Thus if x and ) are positive,


ttTtl ]XUll x * ) : L-rl + Lyl * the smn of thefractional parts of x and y.
But also
tal :! lllG
x * y : Lx * lj * thefractional part of (x * y).

.I-\E:'t''il
Theseequationsshow that ifthere exist numbersx and y suchthat the sum ofthe fractional
parts of x and y is at least 1, then a counterexamplecan be found. But there do exist such
x and y; for instance,-r : I and y : j as before. I

The analysisof Example 3.5.4 indicatesthat if x and y arepositive and the sum of their
fractional parts is less than I , then Lx * yJ : lxl * Lyj . In particular, if r is positive
a n d m i s a p o s i t i vei nteger,thenf.rl ml :l x)-l Lm):fx.l * m.(Thefracti onalpar t
of m is 0; hencethe sum ofthe fractionalpartsofx and la equalsthe fractionalpart ofx,
which is lessthan 1.) It turns out that you can usethe definitionof floor to show that this
equation holds for all real numbers-r and for all integersm.

Example 3.5.5 Proving a Property of Floor

Prove that for all real numbers-r and for all integersm,lx + m) : lr) * m.
Solution Begin by supposingthat x is a particular but arbitrarily chosenreal numberand that
la is a particular but arbitrarily choseninteger. You must show that Lx * m) : lxl * m.
Sincethis is an equationinvolving lrl and lx -l m), it is reasonableto give one of these
quantitiesa name: Let n : Lxl. By definition of floor,

ni sani nteger and n < x < nl l .


This double inequality enables you to compute the value of f-t * ntI in terms of n by
adding ru to all sides:

n* m< x* m< n* m11.


Thus the left-hand side of the equation to be shown is

l x-fm):nl m.
On the other hand, since n : Lxl, the right-hand side of the equation to be shown is

l x)+ m:nl m
also. Thus Lx * m) : f"rl * la. This discussionis summarizedas follows:
ft€ -i mud
or ;"-ir,.]ildl
u?r":st$, Theorem3.5.1
For all realnumbers m,lx * m) : lxl * m.
x andall integers

Proof:

Supposea real number x and an integerm are given. lWe must show that lx * m ) :
Lx) * m.lLet n : Lxl. By definition of floor, n is an integerand
n< x< n* 1..
Add m to all sidesto obtain

n* m< xl m < nl ml l
continuedon page 168
'osrcrexe
u3 seuel sresBcsrr{lJoJoordeqlJolser }LII .lz/u : lzl ul
:otlt $nw atw] '1 JeSelutetuosroJ )lZ: u,osecsrqlu1 :@atav u) 7 aso3
^4oqs
'[uuoqsaqo] s,rr s4 .srreqJ .req]o
[:l
,.{rue
ol lenbeerefeqr ,? lunbeseprspuuqlq8uponpun'q-,Jq
,,{llqio! erursos .osIE
v: Z - -:
7'
' !- 1z r-C +r to r-u
sr u,4aor{s
eq o1uorlenbe
aqtJo eprspueq-1q8uoqt puv .l +1> ZII+rt ! l pue re8elurue sr I esneceq
fz 1 fz z-1 f - 'l T--l
7: l: * ry 1: l! + 11: l .- l: l! l
lt I lr 4zl lt -+ > t e l Iul
sr u,^dor{s
eq o1uorlenbeeqtJo oprspuer{_Uel eql lng l.ZlC _ u) : lTlul
:DLU(troqs6ruu a,141 '1 reSeluretuosJoJ | +
4Z: u'es€c su4u1 ;@po st u) 7 aso3
'uole sr ,/ Jo ppo sr 21,ueJoeql
rapuluueJ-luoponbeqt,(g 're8elurluasoq)(.11tot71qto yq n1nnltodle sr z esoddng
tJl
l(, 1
:l - l
ue^e sr z/Jr lu l
.arra8elur ,{ue rog
Zlu Jo roold aql Z.g.€ruarooqJ,
'ppo Jo ue^e sr u roqleq.ry\
uo spuedepenJe^srqt Surlnduoc roJ elnr.uroJ
:;1 're3e1uruB sr 1/ enqnt'l7lul Jo enp^ eql .t\ou{ no.{ ]eq] serrnber.sruqlrroSpyos
:i---reru
pue qcmes
'fuuurqeql s3 qcns 'stuqluo81erelndurocS0raqunu eJo srs,{pueeql
'luuoqsaq o1sou,sol
u + | rf : I u.t+ rl snql .u.r\oqseqo1uorlunbeeql eprspuuqlq8rreqt sr qorq.{\
Jo
'u. t+ lxl: utlu
'uorln1r1sqns
,{q,ecueg.f rl : u tng
'r u+ u: lt ut xl
SI
u,roqseq o1uorlunbeeql Jo eprspuBq-Uelaql ,roou uorlruuep,{q ,ospue
Jo lla|alut
uo st staSalutto wns o pu, s-ta7aryr
aJDM puO u acutslreSeluruv sr Lu 1l,r\oN
+
'lQynnbaut aq1
lo
uotParlp aql agunqclou saoptlrytnbaut mt
lb saptsqloq oj taqwnu o Butppoacutsl
]oordjo spoqionpue,fioaq1roqL.unN
fueluar_ue13
t reldeq3 g9I
3.5 Direct
Proof
andCounterexample
V:Floor
andCeilins169

v direction
Given a nonnegativeintegern and a positive integer d, the quotient-remainder
theorem
guaranteesthe existenceof unique integersq and,r such that
egers is an n:dql r and 0< r< d.
r be shoq'n
The following theorem statesthat the floor notation can be used to
describe q andr as
follows:

,:lalrl
l a n dr :n - tl;), ln l
Thus if, on a calculator or in a computer language, floor is built in
but div a1'dmocl are
= L.rJ+ r, not, div and mod can be defined as follows: For a nonnegative integer
n and apositive
integer d,

n d iv d: L : l a n dn m o d:d" - t l: )
:h and merge
integer. The Note that d divides n if, andonry if, n mod d :0,or, in other words, n : dLn/cr). you
are askedto prove this in exercise13.

Theorem3.5.3
Ifn is a nonnegativeinteger and d is a positive integer, andif q :
ln/d.l and r :
n - d l n /dl ,tben

n:dq* r and 0< r< d.

Proof:
Supposen is a nonnegativeinteger, d is a positive integer, q:
lnld), andr:
n - d ln / d ). [we mustshow that n - dq t r and0 < r i d.1 ny
substitution,
emainder
dq* r : , t l: l * ( , - al ll) : , .
L dJ \ LdIl
showthat So it remainsonly to show that 0 < r < d. But q :
ln/dl. Thus, by definition of
floor.

n
q = A < q + r.

de of the Then

dq . , < dq * d by multiplying
all partsbyr/
and so

0 < n - dq < d by subtracting d4 from all parts.


rl to each
But

r : n - r l: l- n _ dq.
how that La)
Hence

0 <r <d Aysubsriturion

lThis is what was to be shown.f


'p reSelut ue ,{q elqrsr,r.rpeq o1a re8elut u? roJ uolllpuoJ
'c
luercgJnspuu ,{resseceuE el€ls ol uoll€lou JooB aql esn
'u I p v e$'p. l P l ul : u l I'q
/ \ / ? \ l-r-l 'p. l pl ul : u ueg'ul p Jl 'v
-
( - -)( = ): t+ t '3ur,,no11o;
\ I + u, / \ I - ', | | z" I
eql Jo qrea e^ord '0 # p pue s.re8elurerc p pue u esoddn5 g 1
'z re8elur ppo ,{u3 rod 8Z
'7lu : 'ZI
lTlu] ueqt 'reSelulue,tefue sL JI luql e^ord
'1 ] _ lx l T : l x T l
'Jeqrunutuqt lenbaol lJqrunu IeeJ
uqlqlZlI ? []rl - .rJI 'r srequlnuIP-etIWni 'LZ
u Jo roog eql JoJuollrpuoJ lualJgJns pue ,ftessereue elsts ' I I
'lxl7: lrTl
'elnurJoJstql;o slueuoduoc luereJJlpeqr leJdlerul 'q H
Lretllzll > f rl - r Jr 'x sreqrunuPer II8 rod '92
'qurq rnof Jo ruef eqt '11 00IZ 'I 0S0Z 'l
'lVI xl : lZl lZl rll '.r sreqlunuIeerII3rod 'SZ H '€
;o 1 f;enue1 puu ot elnurroJ slqt esf)
'l * M: lr - wf + fxl ueql're8elur
!r J.Jr 'r: Jequnuleer .{uupuu ta re8elur Kuerc4 'p7 , ,o*[ oo,I* [llo]_l_ [_L-l*,)/
\l t-rl l t-rl l t-ul
.1_:[r-l* fxT
:elnuroJ 8ur,tro11o;aql ,(q ue.tr8
::ialur ue lou sI r Jt 'r Jequmuper f,ue lod 'fZ
{ae,{{ eql Jo ,(Bpeqr uo srncco u Jf-ai1o 1 ,ftenue1ueqt
'62-tZ u! sluotrlelEls
3qllo qJuer^ord - r n l e s - 9'"'', {ups enl - : 1',(upun5:g JI"(ep '0 1
7', ( epuo141
'[.(l . Lr.l : f,trl 'ri pu?r srequnuIeerIIErof 'ZZ 6eluudo:dde eJorusI uorlElou qtlqi(\
'uorlelou8u1yeceqt ro Joog eql JeqlleSursnlcnpo;d eql;o
'Zl0 + u) : lTlu) 'u sre8alulppoIIerod 'IZ slrun u drqs o1perrnbe; eq plno^\ 1€ql soxoq Jo requnu eql
'1,(l . Lrl : llrl '{ pu€r srequnuIserII€rog '02 sse.rdxg Jeleseloq^\e ol JemlceJnueureql uro4 lcnpord e
drqs ol pesn em 'sllun 99 Surploq;o elqeducqcee 'sexog '6
leerIIPro{ '6I H
'I + Lfl : LI + rl 'r s;aqrunu
leleudo.rdde aroru
_il + lrl : L,t+ rl '1(puer sroqrunuIEerIIero{ '8I H sr uoqelou qcrql6 'uollelou tutlrec eql Jo toog eql leqlle
Sursnpueleur mer;o spunod u ruoq pe3npord eq uec leql
Z: t pow u Jt tl 7 - u)l slrunJo Jeqrrnu eq1sserdxg 'lcnpord uruuec B Jo llun qcee
| :e poa uJ t fl q - utl : frtrl ernlceJnu€u ol pepeeu eJ? I?IJelsrU,ter;o spunod ue^es '8
,I
0: e pou'tu lt t/u )
irq,tt a Li t ll sr 1eq.t 're8elur ue sI ? JI I
'z sre8elut ro{ '/I H
IIE '9
ifqn. elll sr leqm're8elulu€ sI ?JI
'z[r.l : f '9I
rrl 'r srequnuIeerII€rod 'rl pow 692
'l - frl : fI - rl 'r srequrnu leerIIerod 'SI puaII sse.rdxe
ol uollelouroog eql esn I
^tp 69g
- il - glzE- ',
[r'l : f,i - -tl ',{ pue x sreqlunul€erII3 rod 'tI Ioooo'tl- 't
'iua[lslPls esll:,I ',r
vlu 'z 666'Lt,
] if qJEa alo-ld
.l aldutuxa:elunoJ u puu puu lueueltls onil
'17 l ur r'.+osanlu^rqtJo qler loJ l-t'l pur: [r"l :tnduro3
:.ill Jruos puE anjl 3.ttl zz-f l uI slueluolllls Jql -}o sLtlos
9'g Jes estuexl
'8: ZVS;- 098€:
9ZZ'Ll - 0988:
lrtloEssl 'lI - o98E: Lr PowosSE
0E8€
gzz: I Lt'gzz1: I ttlosS€.]: LI ,11p
'(t'S'g)epurro;,{g uortnlos
' LI pou 0gg€pueU
^!p 1ggEalnduocot uolletouroogoql esll
:'lllLl lIllilll Jlrhir
pout puv,lrp SurlnduoJ 9's't elduBxg
]oordjo spoqlaf! pue fuoeql roqulnNrtelueuuel3 g leldeq3 OLI
3.6 Indirect
Argument:
Contradiction
and Contraposition17l

f$ Frrr any odd integern, "Proof: Supposen is any odd integer. Then n : 2k -l 1 for
some integer ft. Consequently,
f "rf n2+3
l4l 4 |2k+||_tzt +tl-| _2k
:t:n' _,_
il. irnd the mistake in the following "proof" thar Ln/2J: | ) l: _ JL '
t - l) /2 if n is an odd integer. But n : 2k + 1. Solvingfor ft givesk: (n - 1)/2.
Hence,by substitution,
ln/21 : @ - Dl2)'

3.6 tndirectArgument:Contradiction
and Contraposition
Reductioad absurdumis oneof a mathematician's
finestweapons.It is a far finer
gambitthananychessgambit:a chessplayermayofferthesacrificeof a pawn or even
a piece,but themathematician
offersthegame.- c H. Hardy,1977-1947

In a direct proof you start with the hypothesisof a statementand make one deduction after
another until you reach the conclusion. Indirect proofs are more roundabout. One kind
of indirect proof, argument by contradiction, is basedon the fact that either a statement
is true or it is false but not both. Supposeyou can show that the assumptionthat a given
statementis not true leads logically to a contradiction, impossibility, or absurdity. Then
that assumptionmust be false; hence, the given statementmust be true. This method of
proof is also known as reductio ad impossible or reductio ad absurdum becauseit relies
on reducing a given assumptionto an impossibility or absurdity.
Argument by contradiction occurs in many different settings. For example, if a man
accusedof holding up a bank can prove that he was some place else at the time the crime
was committed, he will certainly be acquitted. The logic of his defenseis as follows:

SupposeI did commit the crime. Then at the time of the crime, I would have had to be
at the sceneof the crime. In fact, at the time of the crime I was in a meeting with 20
people far from the crime scene,as they will testify. This contradicts the assumption
that I committed the crime, sinceit is impossibleto be in two placesat one time. Hence
that assumptionis false.
Another example occurs in debate. C)netechnique of debateis to say, "suppose for
:ege:. -i!ilI a moment that what my opponent says is correct." Starting from this supposition, the
debaterthen deducesone statementafter anotheruntil finally arriving at a statementthat
is completely ridiculous and unacceptableto the audience. By this means the debater
l . l i] iii[ n
showsthe opponent'sstatementto be false.
The point of departurefor a proof by contradiction is the suppositionthat the statement
to be proved is false. The goal is to reasonto a contradiction. Thus proof by contradiction
has the followins outline:

Method of Proof by Contradiction


1. Supposethe statementto be proved is false. That is, supposethat the negation of
the statementis true. (Be very careful when writing the negation!)
2. Show that this supposition leads logically to a contradiction.

3. Conclude that the statementto be proved is true.


iuoncrperluoc ,{q goordy l,fturepec srql segqsnf1ur{l11,..lou
asJnooJO,, sr Je,r\sueelrlrnlur eqJ appo pue ue^e qloq eq ol te8elur ue rog elqrssod1r s1
ppo puB ua^g qlofl afl u8J la3a1u1oN z.g.g aldruuxg
're8elurua lou sr Zl t lvrlt lceJ eql uo pesuqsr eldruexe lxeu eql ur uoncrperluoc eqJ
'peurelqo ueeq seq uorlcrperluoc
aql qcrq^\ le lurod eql lB uorlcrpe-r1uoc ,(q s;oord pue slxel scrluueqleu lsoru ,srql Jo
asnuceg..'erulsl ruoroeqleql pue asleJsr uorlrsoddnseql ecueH .uorlrrpuJluore sr srqJ,,
:oues eql s,(ervrpsr luaurn8rueqt go cr3o1eqt 'por{cBeJueeq seq uorlrrp?Jluoce reUV
f'ant1 sr Matoaqi aqt tDql 'a)uaq 'puDaqn{ sr uotltsoddns
ary pql srri.oqs
uolplpDrJuo) slag] 'uorlcrpeJluoc e sr qcq.^d,
leSelur lseleer3 eql lou
sr pue reSelur
N tseleer8eql sl N oS 'N u€ql releer8 sr 1eq1re8elur ue sr snqJ
l4l
'l + N - /V ecursN < W osly .sre8elur;o
r3
runse sr ecursre8eluruv
lr s! W 1y\oN'I + N : W p.I .ure8elur fuele rog u ? N
ueqTl'uorlctpD.ttuo)o arnpap jsnlu a .1g .sr
-re3elurlselee.r8B sr oreql esoddns
tBqI 'lou esoddn5 l'ant1 aq o1y asoddns ^] puD Maroaqt aqt{o uotlo7au aql ayol atr4]
:JooJd
'ra8alurlseleer8 ou sr eJeql
I'9'€ ureroaql
'uorlcrperruoc
* sq1 :,l,ottsor
" ^lt::i1T:::ii:l""jdns
u sredolurlle roJ l/ = N lBql su€el'usrrlJ
'N lI IIBJ ire8elur lseleer8 e sr ererp esoddng .1ouesoddng :1utotr Eu11tr4g
',(1redo.rd eqt qlr,r\ lcefqo ue sr
arer{lleql :uor1e8eueql Sursoddns,(q urSeq'fgedord srql q1r,tllcafqo ou sr ereql leql e.ro:d
o1 're8elur lseteer8 eql Surog;o ,{uedord eqt sr .{uedord umuec eqt ,goordeql Jod
'goord
leurog arpJo 1reeqor{1
sr Suruoseer Jo eurl srqJ 'lsrxe uec re8elurlseleer8ou 'uorlcrperluocu sr lEql eculs .llqs
joluar8 sB,4a lBql re8elur uB urelqo ol ol ppB plnor xeql 're8elur
ll E erea eJeql
I lselear8
'Jerleqrreql eSueqc,{eq1'ecuerredxepue e8e q1r.tr
-IrlB[p ezrleer .{aql lurod eruoslv lng
..'uorllrz,,Blr Ilec uego ,(eq1-re3e1ur 1se1eer3 u srereqle^erloquarplrqJiletuslsol J Uorlnlos
're8elurlseleer8 ou sr oreql leql .^Aor{s
ol uorlcrperluoc fq goord esn
ro8elq lselBar0 oN sJ eraql 1.9.g aldruuxg
.suorlenlrsesoqleleJ]snllr
seldruexeo,rl lxeu eq1 ',{gedord urcuec u e^eq lou soop lcefqo umpel B teqt ,{oqs ol
luu,"rno,(yr ro ,,(uedordurBuece qlr,u tcelqo ou sr aJeq]leqt ol 1ue,trno,(;r peleJrpur
^\oqs
sI uorlJrpuluoc fq;oor4 'Jele,troq'seurleprn8lereue8oruos eJeeJeqJ .uorlcrpurluoc,,{q
-loord e ,(r1 o1 uequrlpue Soord lJoJrp u ,{rl o1 ueq,trJoJ solnJ lnc-JeelJ ou 3Je eJeqJ
loord]o spoqlanpuefioaql raqLlnNtue1uaua13g raldeq3 ZLI
3.6 lndirectArgument:
Contradiction
and Contraposition173

ul a Ffod.
Theorem3.6.2
radicti.-: m
if r-ou u mtlt Thereis no integerthatis bothevenandodd.
o e\arndE$
Proof:

fwe take the negation of the theorem and supposeit to be /rue.] suppose not. That
is, suppose there is an integer n that is both even and odd. lwe must deduce a
contradictionl By definition of even, n :2a for some integera, andby definition
of odd, n : 2b * 1 for someintegerb. Consequently,
I a "zillit-nlL*
2a : 2b I I by equating the two expressionsfor n
alize ths
\\-45 and so
m.
:easonin_g
2a-2b:l
integer" Tuo 2(a-b):l
n: that rhem (a - b) : ll2 bYalgebra.
Now since a and b are integers, the difference a - b must also be an integer. But
a - b : l/2, and I 12 is notan integer.Thus a - b is an integer anda -b is not an
integer, which is a contradiction. fThis contradiction shows that the supposition is
false and, hence,that the theorem is true.l

The next example asks you to show that the sum of any rational number and any
irrational number is irrational. One way to think of this is in terms of a certain object
(the sum of a rational and an irrational) not having a certain property (the property of
being rational). This suggeststrying a proof by contradiction: supposethe object has the
not. Thir property and deducea contradiction.
orr.l Then
,TIS A SW:
Example 3.6.3 The Sum of a Rational Number and an rrrational Number
r and -\- l: Use proof by contradiction to show that the sum of any rational number and any irrational
rs that tinc number is irrational.
Solution Begin by supposingthe negation of what you are to prove. Be very careful when
writing down what this means. If you take the negation incorrectly, the entire rest of the
proof will be flawed. In this example,the statementto be proved can be written formally as
vs the
V real numbers r and s, if r is rational and
re." Bec
s is irrational, then r * s is irrational.
at qhich
From this you can seethat the negation is

I a rational number r and an irrational


numbers such that r * s is rational.

caution! The negationof "The sum of any irrational number and any rational
number is irrational" is Nor "The sum of any irrational number and any
rationalnumberis rational."
.elqoSle s,rEI pq
Jo eql ,(q
pD- )a
D
saprsqloq ruo{ q/a Surlce4qns ,{q t_
D
os pue
q
: 5 'f :
t)
'uorlrurtrsqns KS' O I p pue 0 I q p
Wtzrl- pue, r, q, o srcBelueuos roJ p / t : s + .t
puv q/o: "/ 'lsuorler uorlrugep [,g
Jo |uorlnprtttuor o arnpap 6nut a,14].lguorler
sI s + l 13qlqcns .rJequnu lEuorlBrrruu pue .1Jequnu
IBuorlBJe sr eJeqlesoddns.sr
leqJ 'lou esoddng I'ant| aq ol 4 asoddnspuD xuaroaqtaql {o uorlo|au aqt ilpt a
L)
r
'leuolluJJl sr Fqrrrnu puoqeill
^(uepue Jequnu IBuorlBJ,{ue 3o urns aq;
€'9'€ ruoJoaql
Soord pruro; e ur pezuerurunssr uorssncsp slqJ
eqrsr3rperuoc
qcrq^\
'r'uorrer
srs ospue.Ioleuruo""o
ruerl0nbe sepesserdxeeq u'c s ecue11 "#;HX';iXTrTr:ilTt""^ll;;
lcnpord oJezeql
"(gedo-rd I pq pue.sreSelur
puB slcnpord
:re sre8elurJo secueJeJJrp esneceqsre8elur ere pq^c,o
puu po _ rq qloq lng
.Joleuluouep
eruesoql qlr^\ pq
su o lJe4 Su rl re :l qnsl ogs1ruaqt ,(q =
p, _ ,S
pq pq
suorlJe4 luap.rrnbe se q /o pue p/.r Burlr-rmo:,(q -
-
p0 rq
qp
___-c
DJ
selrb soprsr{loquroq q/u Surlce4qng
p .q
_ :Jf_
JD
urc1qono,{'(Z'S') olul (I.g.€) elnlqsqnsno,(;1
:9 € '0 + p LIIIlr'p pue , sre8eturetuos roJ p
,s+ .1
)
I'9 'E q
I
pue'0 + q WIM q puB 12sJe8elureruosroJ
D
:uucs+ rpLrer ler{llnqsreSelur
o,n] ,(ue go lueqonb B se uerlrl'\ eq louuec s l3r{l suuelu srql .IBuorlBur pu8 lBuorlerJo
uorlrugep,(g 'puorlur sr ^r+ "/ puB 'lBuorluur sr .e'leuorlBJsr ./ qcns
reql s,pue ./ sJeqrunu
ar? eJeqJ :Sursoddnsere nof leq^\ puelsrepun ol peeu no,( .uorrcrpBrluoc
? o^,,ep oJ
.uorlcrp€IuoJ
B ol spueluorlrsoddnss\II:.rroxls oJ
'Ieuorler sr s + ./ 13q1qcns s requnu
IBuorleuruBpu8 l Jeqr.unupuorrBr p sr eJeqlesoddns'sr leqJ .10uesoddn5:7a1043u4n7g
:s^{oIIoJse ere u,{oqs eq ol sr leq.r pue lurod Buruels eql
leql st\olloJ lI
loold l0 spoq]oNpuetuoaq1raqunN tueluaual3 g teldeq3
741
..1A 'gLrnenr: C o^trodr tro^ and C onl raposi tron 175

Now bc - acl andbd areboth intesersIsittcea. b. c. nntl d are, ttnd.since products


and tlffirenc:esof integersare irrregersl.andbtl # 0 lbl, the :,eroproductproper\'1.
Hences is a quotientof the tu o integersbc - atl andbd with bd I 0. Thus,by def:
inition of rational,.i is rational.u hich contradictsthe suppositionthat s is irational.
fHenc:ethe suppositionisful.seutttl tlte theoremis true.l

Argumentby Contraposition
A secondform of indirect argument,argumentby contruposition,ts basedon the logical
equivalencebetweena statementand its contrapositive. To prove a statementby con-
traposition,you take the contrapositiveof the statement,prove the contrapositiveby a
direct proof. and concludethat the original statementis true. The underlyingreasoning
is that since a conditional statementis logically equivalentto its contrapositive,if the
contrapositiveis true then the statementmust also be true.

Method of Proof by Contraposition

1. Expressthe statementto be proved in the form


Vx in D, if P(,r) then O(x).
(This stepmay be done mentally.)

2. Rewrite this statementin the contrapositiveform


Vx in D, it QG) is falsethen P(x) is false.
(This stepmay also be done mentally.)

3. Provethe contrapositiveby a direct proof.

a. Supposex is a (particularbut arbitrarily chosen)elementof D suchthat Q(r)


is false.

b. Show that P(;r) is false.

Example 3.6.4 If the Square of an Integer Is Even, Then the Integer Is Even

rr I- ,' Provethattbr all intesers


n, if ll is eventhenn is even.
Solution to be proved.
First form the contrapositiveof the statel.nent

C o tttrttl tttsi ti te.


For al l i ntegers
n. i f n i s not e\en thennl i s not even.
Iiru:
By the quotient-remainder theoremwith d : 2, any integeris evenor odd, so any integer
that is not evenis odd. Also by Theorem3.6.2,no integercan be both evenand odd. So
if an integeris odd,thenit is not even.Thusthe contrapositivecanbe restatedasfbllows:
For all integersn. if rr is odd then rrr is oclcl.
Contrcrpo.sitiver
uorlclperluoJ.{q;oor4 7'9'g ern8lg
'(-r)A- pue (.r)d teqt
:uorr:rp cLr uo) - sdr ls.l osl ua n b:s o u es qJns C ur .r E esoddn5
| |
'Z'9'€ arn8ld uI petErlsnlll sI ssecoJdsIqJ ('luouoduloJ
ol esnBJeg)
:io lcrpeJluoc ol ,{Jpsseceu,{1uosr lr'luouelels Jo uollsunfuoJ e lJlpeJluoc
'(r)d- luauleluls
i)O- pue (r)d, t€ql uolllsoddns eq] ol uollclperuoc 13sl (n)d- lng
'G)A- pue (r)7
,'{, .rnp"p o1 uor}tsodertuoc ,{q;oo-rd eql;o sdets eqt ,{oIIoJ ueq} no
a1u,^der oJ
.tq1qrns cr ut n u€ sr ereql esoddns no,{ 'uorlcrpurluor ,(q;oord e se;oord eql
'u,4Aopuellu^\
'luetuelels ue^I8 eql roJ
:re sdels eql qJrq,^d,ur txoluoJ eql sI so8u€qJ luql Suql ,(1uo eql
,{ltcuxg
_Jllrrpgrluor .{q;oord u;o uueq eql s€ pesn eq ue3 sdels Jo ecuenbes etues eql
uo11rsoder1uo3.{q;oor4
1'9'garn8lg
'(r)0- leq] qrns CrJo lueuole
- sdels Jo JJuJno0s .'ftu4tqre uu st r esoddn5
ueql
'1'9'g ern8rguI pelerlsnlllsl slql ' .x)d- teql '^doqs
-. x. (f ) a-leql qsnsc J onluetuel o.{ rer lrqreu€u3A I3ereno,(ssoddnsn o ,{ ' sq l o p o l
'(r)a- ueql (r)0- J I' C ul xA
lueluelulsluele,ttnbeaqt;o 5oordlJarlp € 8ur'tr8'{q pe^oJdsI
1r) f, uoqt(r)ot .] t' O ul xA
'uotlctperl
lueuelsls eql'uolllsoderluor ,{q;oord e u1
-.roc,{q;oordSoe8en8ueleql uI lseceloq uec uotltsodurluoc,(q;oord,{ue leqt e^rosqo
uo\rsode4uoJfq pou pue
uollrlpequoJIq pou uaeilpq uolppa
'l8uolle'tllsr
I tA lBq]
: ror dot L.€uoqt esu\v .g. Euorl rs odordesnI Ir ,^A a& ' u,4A ,op3ut1u,L lsse
q u ol^e q l a u o u
::1qlurluenbesuocssalleq,roruosst 1eq1lueueluls u ol reJeJ01uo1l1sodo.rd pro,^A eql esn
,.qi u"Uf 'seruonbesuocpouel pue ,,{uerue^eq leql slueruelelslusuodurl flptcedse o1
. tJrJJSeJ ueuo suBtrtlBueqlBtu'pe^oJdueeq SEqleql lueruolBls/(ue ol lelet uec Mato
- ,rll pro.^deql qflnoqlp esnuJeqMaroaqt ueql reqler aleq uorlrsodo-tdpro,Lreql pesn eA
'lu,not1saq ol sDtwsu] ppo sI zu'ppo
,snqlpuu 'I + (re8elurue) . Z - z1loS 'sre8elulere sre8elulJo suns
Jo uortrugep
pues rr npold^q
esn€J aqroS rl urue s r )Z + zl z l ng ' l + (42 + 247.)Z: | 1 - 4 l i - .l l
: : pue uollnltlsqnsfg 'l re8elul euos JoJI + 4Z - ?1'ppo
z(I * 4Z) ,u 'erqe81e
o uotltug"p tA l'ppu sr -u lDl'lt uoqs 6ntu a,14f 'JeSeluIppo '{ue sr u esoddn5
:(uotlgsodurluor .dq);oor4
.UOAE
SI u ueql ue^e sl zuJI'u sreSalurIp rod
t'g'€ uolltsodord
"4AOIoq
:\\oqs su 'lueuretelsstq] roJ;oord lcerrp p Jo ueeq eqt sr uollulnduroc pre,uro;lq3rer1sy
joordjo spoqlen pue ,&oaq1joqLunN t reldeqC 9LI'
^relueLualf
3.6 -rrrectArgument: andContraposition
Contradiction 177

As an example,here is a proof b1'contradictionof Proposition3.6.4,namely that for


any integern,if nz is even then n is even.

Proposition3.6.4
For all intesersn.if nz is eventhenn is even

Proof (by contradiction):

fWe take the negation of the theoremand supposeit to be trae.l Supposenot. That
is, supposethere is an integer n such that rz2is even and n is not even. lWe must
deducea contradictioz.l By the quotient-remaindertheorem with d : 2, any integer
is even or odd. Hence, since n is not even it is odd, and thus, by definition of
odd.r : 2k + | for someintegerk. By substitution and algebra:n2 : (2k * l)2 :
4k2+ 4k + | :2(2kz + 2k) + 1. But2kz * 2k is an integerbecauseproductsand
sums of integersare integers. So n2 : 2 ' (an integer)+ l, and so, by definition of
odd,n2 is odd. Therefore,lr2 is both even and odd. This contradictsTheorem3.6.2,
which statesthat no integer can be both even and odd. fThis contradiction showsthat
'. :-rfr
the supposition is false and, hence,that the proposition is true.l
- aif

Note that when you use proof by contraposition, you know exactly what conclusion
you need to show, namely the negation of the hypothesisl whereasin proof by contradic-
tion, it may be difficult to know what contradiction to head for. On the other hand, when
you useproofby contradiction,onceyou havededucedany contradictionwhatsoever,you
aredone. The main advantageof contrapositionover contradiction is that you avoid having
to take (possiblyincorrectly)the negationof a complicatedstatement.The disadvantage
of contraposition as compared with contradiction is that you can use contraposition only
for a specific class of statements-those that are universal and conditional. The discus-
sion above shows that any statementthat can be proved by contraposition can be proved
by contradiction. But the converseis not true. Statementssuch as "Ji i" irrational"
(discussedin the next section)can be proved by contradictionbut not by contraposition.

Proof as a Problem-SolvingTool
Direct proof, disproof by counterexample,proof by contradiction,and proof by contra-
position are all tools that may be used to help determine whether statementsare true or
false. Given a statementof the form
For all elementsin a domain,if (hypothesis)then (conclusion),

imagine elementsin the domain that satisfy the hypothesis. Ask yourself: Must they
satisfy the conclusion? If you can see that the answer is "yes" in all cases,then the
statementis true and your insight will form the basis for a direct proof. If after some
thought it is not clear that the answer is "yes," try to think whether there are elementsof
the domain that satisfy the hypothesisatd not the conclusion. If you are successfulin
finding some,then the statementis false and you have a counterexample.On the other
hand,ifyou are not successfulin finding suchelements,perhapsnone exist. Perhapsyou
can showthat assumingthe existenceof elementsin the domainthat satisfythe hypothesis
and not the conclusionleadslogically to a contradiction.If so,thenthe given statementis
true and you havethe basisfor a proof by contradiction.Alternatively,you could imagine
elementsof the domain for which the conclusionis false and ask whethersuchelements
alsofail to satisfythe hypothesis.If the answerin all casesis "yes," then you havea basis
for a oroof bv contraoosition.
'lueruruoJ
'lu&^olls
)q ot sni'tsDl (il ..'[euorluJsr Jequnu puolleJJl(ue puu Jeqrunul]uoueJ
:! pu€ '(Ja8elurue) . E : -il ecueH 'sregalurJolrnpold € sr ,(ue ;o eouere.glpeqt esoddns 'lou esoddn5,,'sur8aq
i esnsreqreSeluruu sr 219lng '(rzE)E : (pt : -rr 'uorl luspnls e 'lBuorlEil sI Jeqrunuleuollexl(ue pue Jequnu
'e '8
-:Jrlsqns.{g ':1 reSelur eluos JoJ (r) : u ;o Ieuorl€Jfuu;o ecue.reglpeql leql anord ol pJISEurqiA
' "(il1tqtst,r.tp
teUtqcns
:Lrurugepfg t' (q) nqt Aoqs $nM a g 'JaqlunuleuoltllJe^lllsod lsl?JIou st eJeqJ 'l
;Salur {ue sI il esoddns ['rulg uaqt^ful9 tl 'u sta8a]ut 'JeqIUnuleeJelllp8eu lseluarSou st eleqJ '9
"" tol :st attttsodrutuot argl :(uo11gsode.r1uor ,tq) yoo.tg
'u [ 9 uar4 zu X S ! 'r sreSoturIIE roJ teql Ja8elulue,telselee:8ou sI eleql '9
rorlsodertuoc ,(q;oo:d 3ut.,no11o; eql uI s{uelq eql uI IIrd '9I 'uorlJrpeluos ,{q lueuelels qree e^oJd ueql '8-9
'lsuollsIjl sI z ueql 0 : J + xq + ur slueruelBlseql Jo qcse Jo suolpSeu eql elelnlluoJ ,(11ryere3
.xD
:r u o rl n l o s3 sr z J I 'J p ue 'q 'r sr eS e l utp p o I I 3 r o c 's l *f , '1 ,(q elqrsr,r.rplou sr t + ll.rl
'ue^e sI q puB Dlo 'ar sra8eturII€ roJ l€qt ol uollrlpErluocfq;oo:d esn '7
^\oqs
erE)puE 'q'D ! 'tl H
;irolssellueqT'.r : zq I ,opue sJeSeluI .€ ,{q alqrsr^rp sr
lou z + lrE
, -- --:*'-
iq' JmdJ- 'z J* z Q l . n , cp ue . q. , S J e q u n u e r u l J d l l e J o d . € I l , . u s r e S el ut t I E J oJ l E ql , l A oqs ot uol l J l puJ l uoc ,{q .1 o o r d e sn .g
't,{q elqrsr^rplou sr Z -
.u'ure8elul {uB rog 'Zl H 'uruldx' iroqunu luuou']Jr uE q sI .Z
! '- !'--:---
_- +r* &
'lsuorleur sr tq + D uaql 'Jequnu
: :-uorl?rr ue sr / pue '0 # q 'sreqlunu Fuorler erz q pue DJl 'II ltaqrunu
;- lnat aultsod lsDalou s! araqlos puD 'as1n{sr ulrlrsoddnsaq1
!.I j;--:-
'lPuorl€JJrsI requnu leuoll snrg] 'uorlcrpelluorE sI qctqm ' rrurH (p) rsntraq
14
:- ,, rr - l::r,{ue pu€ Jeqlunu FuoIlEl oJezuoufue;o lcnpord eqJ '0I
J-:
leru- tl[
x > 7l rpue 'e,trlsodsIlesnuJrq (.1) urqJ J/r;oqunu
-1
'I e u o r l eu r s r {- r u e q l Jql JJprsuoJ f' atnpap 6ntu a,gl ''i sraqrunulesJ3Ar1
\f,
I a:\: =t,r'i - ^
:uor1e: sr ( pue I?uorlexl sl r;r '( puu r sJeqrunuIueJIIe lo{ '6 -rsod lle JoJ fpj pue e,tqtsod sI r lEql qJns . lequnu leer
+lu- i-- :L
-1 e sI eraqt t?qt esoddns lsl leql '1ou esoddn5 l'an.U aq ol il
'uortrrpeluoc {q St-0 ur tueruelelsqc?e enoJd asoddns pun tualuafils aqt to uouDSau aLUillot arq] :;oo16
Tt\Ui": lS.
i : iu r' : r.i : i l[ 'JJqU nU l e e.re,l tl ts od
tseel ou sr ereql leqt;oord 3ur,to11o.1aqt uI slwlq eql uI III{ 'I
)clur r -:
-L: :s
IECOrd|}il 9'g ps esptexl
r. -
-
-rfi i --
Ulut :-
---
'i:
'esuesuoruluoJJnof ,{lprcedsepue 'uolllnlul
\oE:Jr-: ]-*
Jno{'sJa,,rrod eAIJBuISeruI Jnof qllt\ uollounfuoJuI lt esnJSnunof ',{leAqJeJJe e8pel,"\ou)
irql esn ol lng 'peJrucrulseJeselduBxeJolunoJpue sJooJdlceJlpul pue lceJlp .4Aoq ,^Aou)I
.rl peeu no 'luounSrs Surcur,ruocB eq pFoqs ;oordsrp ro Joord E 'lle e^oqe 'leq] BepI
. !!Ori{i ,:': aql ol unter leldeqc sql Jo suollJes xIS lsru eql g8norql pe{Jo,^Aa^eq no.,(leql ,^AoN
I $ JU--\t! : 'AIInJssercns
I t[!ri{! a:
ueJuoJe 3ur,(e1d Jo't{Jletue Suruuur'leeure Suruur,uuo eleJluecuocol-esues slleqlsoe
ql! ilu_\\ T
rueru8pnf 'uorluurprooc '.scuepq Jo-sre,tod reqlo Jnof IIe qll^A uollJunfuof, uI Iueql
I ua{l ii'j':E
esn uBc no,{ pue pezrpuelul euoJeq selru eq1ecllc€rd qtl.{\ lng 's8urql ,^AeuldtueuB
lql -l:Pi:: - _l Ll[
no,{ sB tuepguoJ IeeJlou ,(eul no{ pue 'selru eql 1e ,{q perepll4AeqIeeJ .(eru no,{ 'lno
I ,$Oqs ai. uBlslsJUno,( ueq16 'luellllulsul luclsntuu Surfuld Jo 'sluuel 'Surunut,Lts uI pesn esoql
q r alu-\! ;
rB qcns 'silDISreqlo Surureele{rl qcnu sI Joordslppue;oord Jo slll{s eq1Surureel
I $Lrq! rrl 'e^Ios 01elrr{.ry\
e elrnb no.{ e>lel>Iooqslql uI suelqord etuosJt peSernorslpeq l.uoc
q $: l u \\ a .surelqord
llncuJrp uo (re8uol Jo) sqtuoturoJ >lro,^Asalulleluos suBlJllulueqlep,q'3uo1fre.t
..-PF\r !: ;
roJ [ueg] Jo euo ,,(ueur >1cn1s 8url1e8lnoqll^\ seqcuordd?Jo flaue^ e esn ol 3ur11tmpue
]r{l raFlsui l
rtqrxau erE oqa esoql eJ? sre^los uelqord InJSSeJcns lsou eql leql punoJ e^uq 8ul^los
lu aql :'l- uralqord perp$s eABqoq,t\ s1sr8o1oqc.(s4'euo lceJlpul uP 8ulftl uuql reqlBJlualunSre
-Io
. UIn: |
-IO -tr rrerrp € tduelluer ol eplf,epno,{ dleq lqSltu 1I pug o13ut,{r1uI eJueuedxerno,{ 'luelueluls
l:-"1[ 1r u}-; ureuoc e roJ elduexerelunoJ € pug ol IIeJ no^ 'eldurExarog J1 'ure3u e8els snol^erd
) llnPrlld i -:- EJo poqleu eql .ft1 ol ]uu,4alq8[u nof 'e^oqB seullepln8 el{l Sult\olloJ Jo e?els .{ue 1y
'ssecord pre.rJoJlqSrers € sI 'sruelqoJdtlncgJlp ,(lercedse 'suelqord 8ur,r'1og
^leJ€r
JoordJospoqlanpue roqLunN
,&e1uaue13t reldpqC BLI
^roellf
3.7 TwoClassical
Theorems 179

)1F'' -re statementsin 17 and 18 by contraposition. | : I 11, which is rational. This is a contradiction. lHence
the supposition is false and the theorem is true.f"
- -: : product of two positive real numbersis greaterthan 100,
:en at least one ofthe numbers is greater than 10. 28. a. Use the propertiesof inequalities in Appendix A to prove
that for all integers r, s, and n, if r > Ji and s > Jn
l -- a sum of two real numbers is less than 50. then at least
then rJ' > ,.
.r..' of the numbersis lessthan 25.
l/ b. Use proof by contraposition and the result of part (a) to
t l".nsider the statement"For all integers n. if n2 is odd then show that for all integers n > l, rf n is not divisible by
: ls odd." any positive integer that is greaterthan 1 and lessthan or
:. \lrite what you would supposeand what you would need equalto ,r/F,then n is prime.
to show to prove this statementby contradiction. c. Use proof by contraposition and the result of paft (b) to
: Write what you would supposeand what you would need show that for all integers n > l, if n is not divisible by
to show to prove this statementby contraposition. any prime number less than or equal to .fi, then n is
. e>\ tl prime.
illl l.rnsider the statement"For all real numbers r. if 12 is irra-
aln -.d
I - -- :inal then r is irrational." 29. Use the result of exercise 28 to determine whether the fol-
--
u!t1-- - . Write what you would supposeand what you would need lowing numbers are prime.
r (r l1 ! =
to show to prove this statementby contradiction. a. 66'7 b. 557 c. 527 d. 613
: Write what you would supposeand what you would need
TI [r]:lf 30. The sieve of Eratosthenes,named after its inventor, the
to show to prove this statementby contraposition.
ne e i : : Greek scholar Eratosthenes(276-194 B.c.), provides a way
:i' = :;rch of the statementsin 2l-26 in two ways: (a) by con-
tlS€ -r]r:
to lind all prime numbers less than or equal to some fixed
r--:, -rtion and (b) by contradiction. number n. To construct it, write out all the integers from
ll le negative of any irrational number is irrational. 2 to n. Cross out all multiples of 2 except 2 itself, then all
multiples of 3 except 3 itself, then all multiples of 5 except
''- lhe reciprocal
of any irrational number is irrational. (The 5 itself, and so forth. Continue crossing out the multiples
reciprocal of a nonzero real number x is 1/x.) of each successiveprime number tp to Ji. The numbers
that are not crossedout are all the prime numbers from 2 to
IJ I l ! : d
n. Here is a sieve of Eratosthenesthat includes the numbers
l;\ F.rrallintegersa,b,andc,if a /bcthena /b. (Recallthat from 2 to 2'7. The multiples of 2 are crossed out with a /,
-,.:re
symbol /means "does not divide.") the multiples of 3 with a \, and the multiples of 5 with a -.

! fitLl':-a 5 F.-rrall integers m and n, if m I n is even then m andn are 23.{sK7,,\Wtttz13 14


arth even or m and r?are both odd. t+ t6 r7 >4 le 7+ X 22 23 >4 + % >7
. r 6. :
-
rr Forallintegersa,
b,andc,if a lbanda I c,thena X (b + c). Use the sieve of Eratosthenesto find all prime numbers less
Hint: To prove p --+ q v r, it suffices to prove either than 100.
? \ -q -+ r or p A -r -+ 4. See exercise 14 in Section
rrati.r-,: j1\ 31. Use the results of exercises28 and 30 to determine whether
the following numbers are prime.
f The following "proof" that every integer is rational is incor- a. 9,269 b. 9,103 c. 8,623 d. 7,917
:ect. Find the mistake.
"Proof (by contradiction): Supposenot. Supposeevery H + 32. Use proof by contradiction to show that every integer greater
than l l is a sum of two composite numbers.
nteger is irrational. Then the integer I is irrational. But
leastc,::

ution -,i
3.7 TwoClassicalTheorems
iposrll,rr How flat and dead would be a mind that saw nothing in a negation but an opaque
barrier! A live mind can see a window onto a world of possibilities.
: For; . - DouglasHofstadter, Gridel,EscherBach,1919
, intese:
[ehnitrr: This section contains proofs of two of the most famous theorems in mathemati cs: that A
substir.- is irrational and that there are infinitely many prime numbers. Both proofs are examples
ecause_ of indirect arguments and were well known more than 2,000 years ago, but they remain
' t. an dr - exemplary models of mathematical argument to this day.
'ue^.esr Jedelurluql ueql
--ra^e sr ro8eluruB Jo erBnbs eql JI :t'9't uorlrsodord Jo esn se{€IUluelunSrEeqJ 'Z Jo
:LrlJeJ uolutuoc e e^€q op u puB u/ lBql uollclpuJluoJ eII oAIJep ueql IIIA\ e,^[ *'eJeld lsJU
:ql ur sJolceJ uoruruoo ou peq u ptrv, M ler{l erunsse ,{eru e,tr 'flrlureue8 Jo ssol lnoqlr,^A
':nq1 ('srotceJ uoruruoJ ou e^eq Joleururouap puu JoleJeunu esoq,^A uorlce4 e sr q)rq,^A
':/ E : ( Z.ql G.q:Ztl St ' aldruexa rog)' srol ce;uoruruoco u e ^€ q ro l B u rru o u e p p u B
ioteJerunueql qJrq,lA ur'uf tu o1 lenbe 'uorlce4,lneu B urulqo ol lno peJolceJ eq,{uu aseql
r:t3 -srotJuJuoruruoJ Xue e^uq u pue tu lr 1{|ot:i.'u f tu : qJns u pue ra sre8elurlsrxo ('c'soot '0
eN W\t pll)nE
rroql leql sueel'usrr{J 'lBuorlBr q/Asr :uoDu8eu eql Sursoddns ,{q sur8eq yoord eq;
'AJoeqlJoqunu
-:EJ,/rouplno,t\e1I\ luql qJnlu ulBluoc'rerr.e,troq'sluawalg slqJo 0I-l sloog 'sree.{669'7
.Irql eroru roJ uorternpe leroqll e go ued Ierluosse uu peJeprsuoJuoeq se\ sruawalg syl
ro s{ooq xrs lsru oql ur ftletuoeS eqt;o eSpelurrou)l 'lcuJ uI 'releuroeSE sEu,^Aou{lseq sr
rrlJng uercrleuteqlutu{eerg ag7 'futawoag {o uuatualg s,pqcng Jo {ooq qluel eql ur leql
l r€lrrurssr pu€ ellolsrrv ol u,^AoDIse,^d OA Jo flrpuorlerrr eql go;oord 3ur,uo11o;eq;
'eueuoueqd equcsep ol sJeqr.unu eloq1Y\
:o re,uod eql ur Jer1eq snor8rle"r-rsenb 'deep rreql pouruuepun lr roJ 'ueql 01 Surttesdn
rren se,4d,{re,tocsrpsql 'Ieuorler lou sB^\ perelocsrp sero8eqlfg reqdosopqd
e, NrIt l
-;:.
fue uercrlerueqleu {eerD erll Jo sre,trolloJeql ''J's .{rnluer qug ro qunoJ eq1 uJ
'leuorler eq plno.r g/A 'spro.,ra reqlo ur To 'sre8eluro,trl Jo orleJB eq p1nolvrgA ueql lng
L-rn: I :!
p iJ 7, r
YJ
]eq] plno^\ sql puv
^lcuur
q (eprs)qt3uel
o (puo8urp)qt8uet
leql qcns q pLrvD sJeSelureq pFo,r\ ereql 'lrerroc ere^\ s{eerc
xuarrueeqtJoJenaqer{tJl 'qN - ) ospve'Z * zl + zI - zr 'rueroer{1 ueero8uqf4 eqt.{g
orenbslrun eqt;o yuuoSerp

'z
eqt e>lellsnf :qA qfuel Jo luauSeseurle puu ol
.q_ I {l3uel
^sue
srtr ,^AoN
t) Y {13ue1
:flecqoquf g 'q puv DJo orler eql se uorlrodord
ettreseql ur eq plno,u g pue V Jo sqfuol aql Jo ort€r eql luqt os punoJ eq plnoc .q pue
u,{es 'sre8e1ur o^Al'- :gr pue :y fes 'slueru8eseurl o,tr1,(ueue.rt8ler11
pe^orleqsu€rrrletuoqletu 's{eerc JuerJueaql Jo eturl eql le peqsrrnogsJrleueqleu ueqlA
gl lo firpuo4eil1 aq1
Joord]o spotllol4pue,{roaqlioqunN ,&e1uer_ue1g
g raldeq3 0gI
3.7 TwoClassical
Theorems 181

Theorem3.T.l Irrationality of rt
iansbel r/2 is irrational.
rtegers. :',Lry
: in the Proof:
lWe take the negation and supposeit to be trae.l Supposenot. That is, suppose1,4
is rational. Then there are integers m andn with no common factors such that

m
J' : n
3 .7 .1

lby dividing m and n by any common factors if necessary). [We must derive a
contradictionl Squaringboth sidesofequation (3.7.1)gives
t
m-
": ,rr.

Or, equivalently,

m2 : 2n2. 3. i. z
Note that equation (3.1.2) implies that mz is even (by definition of even). It follows
that m is even (by Proposition 3.6.4). We file this fact away for future referenceand
also deduce(by definition of even) that

m :2k for someintegerft.


Substitutingequation(3.7.3) into equation(3.1.2), we seethar

m2 : (2k)2:4k2 :2n2.
Dividing both sidesof the righrmost equation by 2 gives
I be rationd- n2:2k2.
3matlclan
|'er\' \\ a-i Consequently,n2 is even,and so n is even (by Proposition 3.6.4). But we also know
the porr er that m is even. fThis is thefact wefiled away.lHenceboth m and n have a common
factorof2. Butthiscontradictsthesuppositionthatmandnhavenocommonfactors.
rd is simi lHence the supposition is false and so the theorem is true.l
ratician
st six bcri\r
for more Now that you have seen the proof that Ji is inational, you can easily derive the
uould nor,r irrationality of certain other real numbers.

:ans that
mmon f Example3.7.1 Irrationality of | + 3rt
the n
t( 6.2t: Prove by contradiction that I * 3 O isirrational.
iactors.) Solution The essenceof the argument is the observationthat if I + 3J, could be written
l factors in as a fraction,then so colld But by Theorem3.1.1, we know that to be impossible.
"/2.
lommon
nteger is
l'ant1sr
uorirsodotdary puo 'aqn{ st uotttsoddnsaqt aruaHf 'uollJlpeJluocB sI qclqa '1 < d
pue 1 ! d snql '1 < d'eurud sr d ecutspue'(t'€'€ eldurexgees)1- pue I ere I
'I I d (re8aturuu sI r - s ecuts)os pue '(t - s)d
Jo srosrlrp re8elur ,(1uoeqt lng
: t d - s d : 0- (t + o) : Ileql -
s,4Aol l oJ1I' sd I + ,puu td : ttl e q l q cn s s
pue;s re8elur ts rxoor oql', {1qr qrs r,r,rp;ouol tl ugep,(q' ueql
+ r)' (ll d p u e o l d p q t
qcns d requnu eruud e puu r raSelutue slslxe ereql esoddns'sI lutlJ 'lou esoddnS
:JOOJd
rog
' 0 + o) X d ver4to I d JI'd reqrunueurud,(uepuur re8elur,(ue
g'4'g uogllsodor;
'I + l2ephlp lou seop1Iueql '12JetseluluB sepl^IpJeqlunu
=.urude JI :peqsrTqelse 1e,(lou o^eq e,^AlceJ Ieuonlppe euo sertnbet;oord s,pIIJng
'funwoag {o sJuawalgslq Jo 6 {oog uI sreeddeellugul sI srequnu
:tuud 1p Jo les eql ler{l Joord e pue '.pllrng o} u,^dool su,^dJe.^dsueeq; lrequnu eruud
.sa8relu ereql sr Jo 'elrugur srequlnu qJns IIe Jo les eql s1 'sre8elure,Ltttsodrellerus o,l.r,l
:o tcnpord € sBpeJoloeJeq louuec 1eqlre8elur e,L4rsode sr requnu eruud u leql ,{\ou>Ino
srcqwnNeuud p les eql p epniluryuleql
'leuorle.Llr
sI g,tE + I ecuoH l'asp{ st uotltsoddnsary lDry sfuoqsuouzlporluor
slqJl 'leuortexl sr e, IvW treJ eql stclpeJluoJ srqJ ('Iuuolter Jo uolllugop
'(q)
puorter sr qA os pue '0 # qt tqn qt pue q - o sn8elul o.^ateql ;o luerlonb e
sr g/A ecueH 'fuedord lcnpord orez eql KC O I qE pue'(sre8elur ere sre8elurgo
slcnpordpuu secueJoJJrp pue sreSelurem q pue n acurs)sre8elureraqtpve q - Dng
qt
g iq seprsqtoq Sutpt,ttp,{q
q-D
'JOIUU[rrou0p UOIUILIOJB qllid q
suorlJsr.] 3urlrc:lqns ro1 a1n: aqt {q q-D
uorln'ulsqns 1_t :
^q qD
q
,(q
sJprsqtoq ruo.r11 Surt:e-rtqns T-- :7 LC
- t) yJo
lBql s^\oIIoJ lI
oruosroJ
'0 + Sqlr^\q pue r sreSelur : glt * t
1
'luuorlerJouo4rugep.(q
uaqlf'uoUctpDrtuor
D avrap6nu a14l'leuorl€rsI Zf E* 1 esoddng'1ouesoddn5
'lBuorlEJJr
qg,l'+ I
7'1'g uo111sodor4
pue,{roaqlraqLunN
jooldJospor.1]o1 fue1ueue1;g raldeq3 Z8l
The ideaof Euclid's proof is this: Supposethe setof prime numberswere linite. Then
you could take the productof all the prime numbersand add one. By Theorem3.3.2this
numbermustbe divisibleby someprime number.But by Proposition3.7.3,this numberis
not divisible by any of the prime numbersin the set. Hencetheremust be a prime number
that is not in the setof all prime numbers,which is impossible.
The followins formal proof fills in the detailsof this outline.
rn.l Thec

Theorem3.7.4Infinitude of the Primes


The setof primenumbersis infinite.

Proof (by contradiction):


Supposenot. Supposethe set of prime numbers is finite. lWe mLtstdeduce a
contradictionl Then all the prime numberscan be listed, say,in ascendingorder:
pt:2, pz:3, pt:5, p+ :J, ps:17,...,P ,.

Consider the integer


N: ptpzps" ' p" l l .

Then N > l, and so, by Theorem 3.3.2, N is divisible by some prime number p.
Also, since p is prime, p must equal one of the prime numbers Pt, Pz, Pt, . . . ,
p n . T h u spl (ptpzpt...p,). B yP roposi ti on3.l .3,p X @ rpzpt" ' P ,l l) , andso
p / N. Hence p I N and p I N, which is a contradiction. fHence the supposition is
false and the theoremis true.l
d products
nce l/2 i.
is rational The proof of Theorem3.7.4 showsthat if you form the product of all prime numbers
nal. lThis up to a certainpoint and add one,the result,N, is divisible by a prime numbernot on the
ional. list. The proof doesnot show that N is, itself, prime. In the exercisesat the end of this
section you are askedto find an example of an integer N constructedin this way that is
not prime.

s a product cr
Whento Uselndirect Proof
here a larges The examplesin this sectionand Section3.6 have not provideda definitiveanswerto the
t of all prire questionof when to prove a statementdirectly and when to prove it indirectly. Many
theoremscan be proved either way. Usually, however, when both types of proof are
d: If a prim possible,indirect proof is clumsier than direct proof. In the absenceof obvious clues
suggestingindirect argument,try first to prove a statementdirectly. Then,if that doesnot
succeed,look for a counterexample.If the searchfor a counterexampleis unsuccessful,
look for a proof by contradictionor contraposition.

in NumberTheory
OpenQuestions
In this sectionwe proved that there are infinitely many prime numbers. There is no known
formula for obtaining primes, but a few formulas have beenfound to be more successfulat
rber p such
producingthem than otherformulas. One suchis due to Marin Mersenne,a Frenchmonk
tegersr and
who lived from 1588-1648. Mersenneprimes have the form2l'- l, where p is prime.
ps -pr:
Not all numbersof this form are prime, but becauseof the greaterlikelihood of finding
divisors of
primesamongthem, thoseseekinglargeprime numbersoften test thesefor primality. As
;p < 1and
a result,many of the largestknown prime numbersare Mersenneprimes.
proposition
'p fq elqrsr^rpeq lou peeu u uep 'p ,{q elqrsr,trp 'Fuorlsrrr sr .r/r ueqt
sr -, pue eruud lou sr p Jr leql ,^Aoqsol elduExe u3 e^rc 'LI lequrnu Fuorlurrr ,{ue sr s pue JeqrunupuorleJ .(ue sr ;;1 '61
'leuorlBJJrsr '3 'lEuorlarr sr Jeqrunuleuorl?rJrue Jo looJ eJenbseqJ .6
9A reql e^oJd
'f ,{q elqrsr^rpsr
eqJ 'g
'lsuoqexr sr sJeqrunuI€uorlErrro.4Al,(uuJo eJuJJeJJrp
x uaql € fq elqrsr,r.rpsr zu Jr'u sreSelurII? roJ leql e^ord
ol (e) UBd Jo llnser eqt pue 'ses€J olur uorsr^lp 'ruero 'lBuoqPrr sr sJeqrunuIeuorluJJro/[l {uE Jo tuns eqJ .4
-eql repursrusr-luerlonbeql 'uoDcrpeJluoc,{q JooJd esn 'q
'IBuorlursI glgr '9 'FuorlBrrrsI yl 's
' zt + I t p u e '€ > z t j 0 't
tr i l > t.r 1 0 'srefielureJe'zJpuE'r1'|fi'rfi erer4t'zt +.bt 'r c uol l uul s t t - 7r c 'leuorlsrrr
s\g,tL- 9 '€,
T# pw Il + Ir€ qloq Fnba ol u JoJ elqrssodur sI lr 'il reg
'esl€Jer? lEql esoql a^ordsrp pue enJl eJeleql esoql e^ord
-elur ,(uu roJ l?r{l ,{oqs ot uorlJrpprluoJ ,(qpoo-rd esn '€ '9I
'3sluJeru qJrq,^Apu? eru] are t I -f, ur slueruelslsqJrq,4eeururelecl
'Puorlurrr sr e^ord 'q
0a t€ql
rd 'ue^esrl7 ueql ue^e sr 'E 'sI 'urcIdxg ireqrunu
{ Jr'0 sreSelurIIe roJ leql e^ord
IBuoqEJe sr uouelnJleJ er{lJo llnseJeql 13q}eJnseq no,{ ueJ
Jo 'esleJserurlsruos
re^AsueJnof ,{Jrlsnt eesl?JsF€/Y\13 ' LT,LZLZLZLZL'0t seuonslnJIEsureueceJo llnser eql s,^aoqs
:I 1 J- -4
eJueluessrql sI 'lsuorleJJl
lu? erul serurleruos'elul s,{E,4Ale .(eldsrprolulncpc V 'leuorluJ sr reqwnu Iuturcep Surleeder
sryA uoql leuor]?r sr r JI :erueluesSur4{olloJaql reprsuoJ 'tI f ue1eq1SuriroqsroJ enbruqret? seler1snllr(q)y7'geldunxg '7
PUOII?JJI SI ]OOJ 'fcuedercsrp eql
' s.iu;< t eqncsll ueqt'emnbslJeIed ? sr I u€qlrel€er8:e8elurtI?JI '€I ,t ureldxg 'I'L'E rueloaqJslcrp?Jluoc
qcrqa .reqrunupuorleJ
':: ai:lr
'puorteilr sr srequnupuorterrro,^Al
,{u?Jo lcnpordILI;- 'Zl e sI gl teqr slsoSSns
,lqJ- 9-qq9000l : zggt'tzvtv'l
zgsilzvwl
: irr=- 'lsuorl?JJr pue 'zgs|lztlv'l
!5 srsrequnuIeuoqerrre^rlrsodo1(l.{u?Jorunseql 'l I : gl t?q} s,/Y\oqs
,{eldsrprolulnrl?cv .I
rtj::"-: j r;|fr
/'t les esruexl
tLrl=1_: !A
'fuo1srqur eJoJeqJeAeueql ldou peJelocsp Sureq
'u 0::* :r
aJ?sllnseJerou pue posrsr SuroqerB suorlsenbpcrlelueqlelu arolu 'lcBJ uI 'lxeu eql ol
!: a l, :i".L
-
unluec euo tuo4 oIDII,(rerr.seSuuqcl€ql lrafqns pexg B sr sJrletuarpBtulBrll e^erleqeldoed
'{.r =-
Jo
iueyq '.ftoeql requnu ur suorlsenbuodo Jequnu oBJBIu Jo ,lreJB lsnf eru eseql
PLtr-laJ;l 'lr e^oJdsrpJo e^oJdJeqlreuec oq,\{ euofuu ol
i)00'00I $ Jo ezudu pereJJosuqeq puu 'arntcafuor s,pag se u./r\ou{euocaq s?r.lernlcefuoc
tA]E:.:
sIH ',lsrxesuoqnlos ou leql peJrucefuocIeeg '.suorlnlosfuB IBeAero1palleJ lelndruoc .(q
:r1"--\ :
ueql puB pueq,{q lsJg 'uoJJe lueSrlrp ueq,/yl,'I+ uBrll Jeqto JolceJuouruoJ i(uB e^eq z
t-Ijtltf,
ro '{ 'r Jo o,rl ou eJeq,r 'zz : u( -f ur uorlenbeeql ,(q pen8ulur erueceq'lBeg ,{\erpuv
T1trt1l
-
rsuoeql JeqrunuJneleruBuB 'ueJoeql ls€l s.leuuac o^oJd 01 3urfr1 eFqurr'€66I uI
iur r,: , ',{upsrqtol pe^loseJun sutplueJosleeJnlJefuoJ slqJ ' | : sZ - 7t
l l ll } -l ? @ sI 'I wql JelBeJSsJe8elullIe are M puu 'u'{ 'r areq,tr'I: *{ - ar uorlenbeeql ol
suonnlos,(1uoeqt rcqt peJnlcefuocuulelsJ euQSnguBrorletueqleluuErSlageql 'WgI uI
Ifu ];',:'a fi
'ueeco eql ur doJpB u8ql ssel sr 'O8JBI,^aoq
rrq,: ".-a u rall€ru ou tegunu fue ',firugur q1r^\pereduor tng 'sJequnu e8ftl fleurerlxe ol dn Suqsel
lalnduoc poolsqll^\ sBLIeJrucefuocsql '.{roeqlraqrunuur sruelgoJdu.$ool-lle^\ raqlo qlr.ll
sV 'Z + d pue d ruJoJeql Jo sJequnu eruud Jo sJredfuetu flelrugur eJBereql t?qt seluls
:tI-
q)v4t (alru)a[uocsaruttd ulMJ etp sr selulrd Surrrlo,ruruoDsenbuedo sno(ueJJeqtouv
'z(l + u) pue sJeSelur uee,rtoq
zu
raqunu eurJd B s,(€A\p sr erer11 rerperl^\ pu€ 're8elur elrlrsod u sr u eJeq.r ,I *
lf{ ,u rutol
tql Jo seurJd .(ueru ,(1e1rugur ere ereql Jerlleq,\{erB u.t\ou)lun ,(truUrutS 's,4aoD{euo ou
'$ou sB'urBBV
Jo aseuud luuueC ,(ueur,{1elrugureJeqlerv 'Je8elure,trlrsodB sr u eroq,^a
-.-; . ; 'I +
,z.,LuJoJeIDJosJequnu euud ere satw.r.d lowag 'lelured ol enp sr sreqrunueruudgo
_. J. -- raqunu e3re1,{1eirr1uleJ
--
L uu : - -_ --*
e ecnpoJdol stueoslBqt BlnrruoJreqlouv 'Je1(sueeql peJe^ocsrp
?.\Bq,{eru euoeruossql peer no,( erurl eql .{q pue ,(ep fre,,r.eepeu Sureqere serJelocsrp
lesrlBtuer{]?tu/!\eu lnq 'u,rou1 lou sr Je,4ASu€ eql qooq sql Jo uorlBc[Qnd1o elep etil Jo
lellrrlll f:* il tV 'seluud euuesJel^tr ,{uuru ,(1e1rugurere eJerll req}eq,r sr uorlsenb Surlsereluruy
loord jo spoqlal pue loqulnN fue1ueue13g teldeq3 ?gI
^loorlf
3] Theorems 185
TwoClassical

28. An alternative proof of the infinitude of the prime numbers


e primes. A5 ll. The quotient-remaindertheorem saysnot only that there ex-
ist quotients and remainders but also that the quotient and beginsas follows:
mathematical
)ne may ha\€ remainder of a division are unique' Prove the uniqueness' Proof: Supposethere are only finitely many prime num-
large number That is, prove that ifa and d are integers with d > 0 and if bers. Then one is the largest. Call it p. Let M : pl * I'
Qt' rt, 42, and12 areintegerssuchthat We will show that there is a prime number q such that q > p '
form22" + l-
dn, as ofnou- a: dqr * r t wher e0< r t < d ComPletethis Proof.
primes of the H *2g. Prove that if p r, Pz, . . . , ffid pn are distinct prime numbers
and
rrime number with p1 : 2 andn > 1' then Pt Pz "' p' * I can be written
a: dqz lr z wher e0 < r z <d , in the form 4k * 3 for some integer /r.
iecture, which
then t i< 30. Prove that for all integers n, rf n > 2 then there is a prime
rndp*2 .Ar number P such that n < P < nt.
qr : qz and rt : 12'
ood computer
( n ! : n ( n - 1 ) " '3 '2 'l )
ber, no matter Ul. Prove that rE is irrational.
H 31. a. Fermat's last theorem says that for all integers n > 2,
Jf. Provethat for any integera. 9 X @2 - 31.
only solutiont the equation x" + yn : z' has no positive integer solu-
rter than l, is ll. a. Use the unique factorization theorem to answer the fol- tion (solution for which x, y, and z arepositive integers)'
lowing question: If the prime factorization of an integer Prove the following: If for all prime numbers p > 2,
mber theorisr n contains/coccurrencesof aprime number p, how many xp I lp : zP has no positive integer solution, then for
wo ofx, y, or occunencesof p arecontainedin the prime factorization any integer n > 2Ihat is not a power of 2' xn I !' : zn
rand and then of n2? has no Positive integer solution.
b. An alternative proof of the irrationality of rD counts the b. Fermat proved that there are no integersx, y, and z such
ons exist. His
number of 2's on the two sidesof the equation2n2 : m2 that x4 * ya : za. Use this result to remove the restric-
:eof $100,000 and deducesa contradiction. Write a proof that usesthis tion in part (a) that n not be a power of 2' That is, prove
approach. that If n is a power of 2 and n > 4' then xn + y" : zn
theory. Man-r has no Positive integer solution.
'-. Use the proof techniqueillustrated in exercise2 1(b) to prove
m one cenfun
that if z is any integer that is not a perfect square' then tfi For exercises 32-35 note that to show there is a unique object
rre results are
is irrational. with a certain property, show that (1) there is an object with
the property and (2) if objects A and B have the property, then
al. Prove that A + .'6 is irrational.
A: B.
* l-t. Prove that logr(2) is irrational.
32. Prove that there exists a unique prime number of the form
ers is irrational. N l-i. Let N :2 .3 '5 '7 + 1. What remainderis obtainedwhen n2 - l, where r is an integer that is greater than or equal
N is divided by 2? 3? 5? 7? Is N prime? Justify your to 2.
.s irrational.
answer.
33. Prove that there exists a unique prime number of the form
re, then its cube
I X, Supposea is an integer and p is a prime number such that n2 +2n - 3, where n is apositive integer.
p I a andp | (a + 3). What can you deduceabout p? Why?
34. Prove that there is at most one real number a with the prop-
onal then is
"6and 11. LetPr, Pz, Pz,. '.bealistof allprimenumbersinascending erty that a + r : r for all real numbers r. (Such a number
etimes true
order. Here is a table of the first six: is called an additive identitY.)
)ur answer.
35. Prove that there is at most one real number b with the prop-
r then c is even. Pr Pz Pt Pq Ps Ps
erty that br : r fot all real numbers r. (Such a number is
2 5 "l ll t3 called a multiplicative identity.)
-)
rt for any inte-
h 34r * rr and ll a. For eac h i : 1, 2, 3, 4, 5, 6, let Ni : P t P z " 'P i 't I .
egers,0< 11 < CalculateNr, Nz, N3, N4' Ns, and No.
b. For eachi - |,2, 3,4, 5, 6, find the smallestprime num-
-remainder the- ber q; suchthat 4; divides N;.
It of part (a) to
ible by 3 then n

rrime and n2 is
bv d.

You might also like