Skip to main content
\(\newcommand{\versionNum}{$4.0$\ } \renewcommand{\tabcolsep}{2.4pt} \def\savedlnot{\lnot} \renewcommand{\arraystretch}{.63} \renewcommand{\arraystretch}{1} \renewcommand{\Naturals}{{\mathbb Z}^{\mbox{\tiny noneg}} } \renewcommand{\arraystretch}{.9} \renewcommand{\arraystretch}{.77} \newcommand{\hint}[1]{ } \newcommand{\inlinehint}[1]{ } \newcommand{\sageprompt}{ \texttt{sage$>$} } \newcommand{\tab}{} \newcommand{\blnk}{\rule{.4pt}{1.2pt}\rule{9pt}{.4pt}\rule{.4pt}{1.2pt}} \newcommand{\suchthat}{\; \;} \newcommand{\divides}{\!\mid\!} \newcommand{\tdiv}{\; \mbox{div} \;} \newcommand{\restrict}[2]{#1 \,_{\,#2}} \newcommand{\lcm}[2]{\mbox{lcm} (#1, #2)} \renewcommand{\gcd}[2]{\mbox{gcd} (#1, #2)} \newcommand{\Naturals}{{\mathbb N}} \newcommand{\Integers}{{\mathbb Z}} \newcommand{\Znoneg}{{\mathbb Z}^{\mbox{\tiny noneg}}} \newcommand{\Zplus}{{\mathbb N}} \newcommand{\Enoneg}{{\mathbb E}^{\mbox{\tiny noneg}}} \newcommand{\Qnoneg}{{\mathbb Q}^{\mbox{\tiny noneg}}} \newcommand{\Rnoneg}{{\mathbb R}^{\mbox{\tiny noneg}}} \newcommand{\Rationals}{{\mathbb Q}} \newcommand{\Reals}{{\mathbb R}} \newcommand{\Complexes}{{\mathbb C}} \newcommand{\relQ}{\mbox{\textsf Q}} \newcommand{\relR}{\mbox{\textsf R}} \newcommand{\nrelR}{\mbox{$\not${\textsf R}}} \newcommand{\relS}{\mbox{\textsf S}} \newcommand{\relA}{\mbox{\textsf A}} \newcommand{\Dom}[1]{\mbox{Dom}(#1)} \newcommand{\Cod}[1]{\mbox{Cod}(#1)} \newcommand{\Rng}[1]{\mbox{Rng}(#1)} \DeclareMathOperator{\caret}{$\scriptstyle\wedge$} \renewcommand{\arraystretch}{.77} \newcommand{\lt}{ < } \newcommand{\gt}{ > } \newcommand{\amp}{ & } \)

Section3.1Direct proofs of universal statements

If you form the product of 4 consecutive numbers, the result will be one less than a perfect square. Try it! \begin{equation*} 1 \cdot 2 \cdot 3 \cdot 4 = 24 = 5^2 - 1 \end{equation*} \begin{equation*} 2 \cdot 3 \cdot 4 \cdot 5 = 120 = 11^2 - 1 \end{equation*} \begin{equation*} 3 \cdot 4 \cdot 5 \cdot 6 = 360 = 19^2 - 1 \end{equation*}

It always works!

The three calculations that we've carried out above constitute an inductive argument in favor of the result. If you like we can try a bunch of further examples, \begin{equation*} 13 \cdot 14 \cdot 15 \cdot 16 = 43680 = 209^2 - 1 \end{equation*} \begin{equation*} 14 \cdot 15 \cdot 16 \cdot 17 = 571200 = 239^2 - 1 \end{equation*} but really, no matter how many examples we produce, we haven't proved the statement — we've just given evidence.

Generally, the first thing to do in proving a universal statement like this is to rephrase it as a conditional. The resulting statement is a Universal Conditional Statement or a UCS. The reason for taking this step is that the hypotheses will then be clear — they form the antecedent of the UCS. So, while you won't have really made any progress in the proof by taking this advice, you will at least know what tools you have at hand. Taking the example we started with, and rephrasing it as a UCS we get \begin{equation*} \forall a,b,c,d \in \Integers, (\mbox{a,b,c,d consecutive} ) \implies \exists k \in \Integers, a{\cdot}b{\cdot}c{\cdot}d = k^2 -1 \end{equation*}

The antecedent of the UCS is that \(a,b,c\) and \(d\) must be consecutive. By concentrating our attention on what it means to be consecutive, we should quickly realize that the original way we thought of the problem involved a red herring. We don't need to have variables for all four numbers; because they are consecutive, \(a\) uniquely determines the other three. Finally we have a version of the statement that we'd like to prove that should lend itself to our proof efforts.

In this simplistic example, the only thing we need to do is come up with a value for \(k\) given that we know what \(a\) is. In other words, a “proof” of this statement involves doing some algebra.

Without further ado…

Now, if you followed the algebra above, (none of which was particularly difficult) the proof stands as a completely valid argument showing the truth of our proposition, but this is very unsatisfying! All the real work was concealed in one stark little sentence: “Let \(k\) be \(a^2+3a+1\).” Where on Earth did that particular value of \(k\) come from? The answer to that question should hopefully convince you that there is a huge difference between devising a proof and writing one. A good proof can sometimes be somewhat akin to a good demonstration of magic, a magician doesn't reveal the inner workings of his trick, neither should a mathematician feel guilty about leaving out some of the details behind the work! Heck, there are plenty of times when you just have to guess at something, but if your guess works out, you can write a perfectly correct proof.

In devising the proof above, we multiplied out the consecutive numbers and then realized that we'd be done if we could find a polynomial in \(a\) whose square was \(a^4 + 6a^3 + 11a^2 + 6a + 1\). Now, obviously, we're going to need a quadratic polynomial, and because the leading term is \(a^4\) and the constant term is \(1\), it should be of the form \(a^2 + ma + 1\). Squaring this gives \(a^4 + 2ma^3 + (m^2+2)a^2 + 2ma + 1\) and comparing that result with what we want, we pretty quickly realize that \(m\) had better be 3. So it wasn't magic after all!

This seems like a good time to make a comment on polynomial arithmetic. Many people give up (or go searching for a computer algebra system) when dealing with products of anything bigger than binomials. This is a shame because there is an easy method using a table for performing such multiplications. As an example, in devising the previous proof we needed to form the product \(a(a+1)(a+2)(a+3)\), now we can use the distributive law or the infamous F.O.I.L rule to multiply pairs of these, but we still need to multiply \((a^2+a)\) with \((a^2+5a+6)\). Create a table that has the terms of these two polynomials as its row and column headings.

\(a^2\) \(5a\) \(6\)
\(a^2\)
\(a\)

Now, fill in the entries of the table by multiplying the corresponding row and column headers.

\(a^2\) \(5a\) \(6\)
\(a^2\) \(a^4\) \(5a^3\) \(6a^2\)
\(a\) \(a^3\) \(5a^2\) \(6a\)

Finally add up all the entries of the table, combining any like terms.

You should note that the F.O.I.L rule is just a mnemonic for the case when the table has 2 rows and 2 columns.

Okay, let's get back to doing proofs. We are going to do a lot of proofs involving the concepts of elementary number theory so, as a convenience, all of the definitions that were made in Chapter 1 are gathered together in Table 3.1.2.

Even
\begin{minipage}{.8\textwidth} \(\forall n \in \Integers\),
\\(n\) is even \(\iff\) \(\exists k \in \Integers, \; n = 2k\)
Odd
\begin{minipage}{.8\textwidth} \(\forall n \in \Integers\),
\\(n\) is odd \(\iff\) \(\exists k \in \Integers, \; n = 2k+1\)
Divisibility
\begin{minipage}{.8\textwidth} \(\forall n \in \Integers , \forall d>0 \in \Integers\),
\\(d \divides n\) \(\iff\) \(\exists k \in \Integers, \; n = kd\)
Floor
\begin{minipage}{.8\textwidth} \(\forall x \in \Reals\),
\\(y = \lfloor x \rfloor\) \(\iff\) \(y \in \Integers \, \; \land \, \; y \leq x \lt y+1\)
Ceiling
\begin{minipage}{.8\textwidth} \(\forall x \in \Reals\),
\\(y = \lceil x \rceil\) \(\iff\) \(y \in \Integers \, \; \land \, \; y-1 \lt x \leq y\)
Quotient-remainder theorem, Div and Mod
\begin{minipage}{.8\textwidth}\(\forall n, d>0 \in \Integers\),
\\(\exists \mbox{!} q,r \in \Integers, \; n = qd + r \, \; \land \, \; 0 \leq r \lt d\) \\(n \; \mbox{div} \; d = q\) \\(n \; \mbox{mod} \; d = r\)
Prime
\begin{minipage}{.8\textwidth}\(\forall \, p \, \in \Integers\)
\\(p\) is prime \(\iff\) \\((p>1) \land (\forall x,y \in \Integers^+, \; p=xy \; \implies \; x=1 \, \lor \, y=1)\)
Table3.1.2The definitions of elementary number theory restated.

In this section we are concerned with direct proofs of universal statements. Such statements come in two flavors — those that appear to involve conditionals, and those that don't:

Every prime greater than two is odd.

versus

For all integers \(n\), if \(n\) is a prime greater than two, then \(n\) is odd.

These two forms can readily be transformed one into the other, so we will always concentrate on the latter. A direct proof of a UCS always follows a form known as “generalizing from the generic particular.” We are trying to prove that \(\forall x \in U, P(x) \implies Q(x)\). The argument (in skeletal outline) will look like:

\begin{minipage}{.75\textwidth} Proof: Suppose that \(a\) is a particular but arbitrary element of \(U\) such that \(P(a)\) holds. \(\vdots\) Therefore \(Q(a)\) is true. Thus we have shown that for all \(x\) in \(U\), \(P(x) \implies Q(x)\). Q.E.D.

Okay, so this outline is pretty crappy. It tells you how to start and end a direct proof, but those obnoxious dot-dot-dots in the middle are where all the real work has to go. If I could tell you (even in outline) how to fill in those dots, that would mean mathematical proof isn't really a very interesting activity to engage in. Filling in those dots will sometimes (rarely) be obvious, more often it will be extremely challenging; it will require great creativity, loads of concentration, you'll call on all your previous mathematical experiences, and you will most likely experience a certain degree of anguish. Just remember that your sense of accomplishment is proportional to the difficulty of the puzzles you attempt. So let's attempt another…

In Table 3.1.2 one of the very handy notions defined is that of the floor of a real number. \begin{equation*} y = \lfloor x \rfloor \; \iff \; (y \in \mathbb Z \; \land \; y \leq x \lt y+1). \end{equation*}

There is a sad tendency for people to apply old rules in new situations just because of a chance similarity in the notation. The brackets used in notating the floor function look very similar to ordinary parentheses, so the following “rule” is often proposed \begin{equation*} \lfloor x + y \rfloor = \lfloor x \rfloor + \lfloor y \rfloor \end{equation*}

Exercise3.1.3

Find a counterexample to the previous “rule.”

What is (perhaps) surprising is that if one of the numbers involved is an integer then the “rule” really works.

Since the floor of an integer is that integer, we could restate this as \(\lfloor x + n \rfloor = \lfloor x \rfloor + n\).

Now, let's try rephrasing this theorem as a UCS: If \(x\) is a real number and \(n\) is an integer, then \(\lfloor x + n \rfloor = \lfloor x \rfloor + n\). This is bad … it appears that the only hypotheses that we can use involve what kinds of numbers \(x\) and \(n\) are — our hypotheses aren't particularly potent. Your next most useful allies in constructing proofs are the definitions of the concepts involved. The quantity \(\lfloor x \rfloor\) appears in the theorem, let's make use of the definition: \begin{equation*} a = \lfloor x \rfloor \; \iff \; a \in \Integers \; \, \land \; \, a \leq x \lt a+1. \end{equation*}

The only other floor function that appears in the statement of the theorem (perhaps even more prominently) is \(\lfloor x + n\rfloor\), here, the definition gives us \begin{equation*} b = \lfloor x + n \rfloor \; \iff \; b \in \Integers \; \, \land \; \, b \leq x + n \lt b+1. \end{equation*}

These definitions are our only available tools so we'll certainly have to make use of them, and it's important to notice that that is a good thing; the definitions allow us to work with something well-understood (the inequalities that appear within them) rather than with something new and relatively suspicious (the floor notation). Putting the proof of this statement together is an exercise in staring at the two definitions above and noting how one can be converted into the other. It is also a testament to the power of naming things.

As we've seen in the examples presented in this section, coming up with a proof can sometimes involve a bit of ingenuity. But, sometimes, there is a “follow your nose” sort of approach that will allow you to devise a valid argument without necessarily displaying any great leaps of genius! Here are a few pieces of advice about proof-writing:

  • Before anything else, determine precisely what hypotheses you can use.

  • Jot down the definitions of anything in the statement of the theorem.

  • There are 26 letters at your disposal (and even more if you know Greek) (and you can always throw on subscripts!) don't be stingy with letters. The nastiest mistake you can make is to use the same variable for two different things.

  • Please write a rough draft first. Write two drafts! Even if you can write beautiful, lucid prose on the first go around, it won't fly when it comes to organizing a proof.

  • The statements in a proof are supposed to be logical statements. That means they should be Boolean (statements that are either true or false). An algebraic expression all by itself doesn't count, an inequality or an equality does.

  • Don't say “if” when you mean “since.” Really! If you start a proof about rational numbers like so:

    Proof: Suppose that \(x\) is a particular but arbitrary rational number. If \(x\) is a rational number, it follows that \ldots
    people are going to look at you funny. What's the point of supposing that \(x\) is rational, then acting as if you're in doubt of that fact by writing “if”? You mean “since.”

  • Mark off the beginning and the end of your proofs as a hint to your readers. In this book we start off a proof by writing Proof: in italics and we end every proof with the abbreviation Q.E.D. 1 

We'll close this section with a word about axioms. The axioms in any given area of math are your most fundamental tools. Axioms don't need to be proved — we are supposed to just accept them! A very common problem for beginning proofwriters is telling the difference between statements that are axiomatic and statements that require some proof. For instance, in the exercises for this section there is a problem that asks us to prove that the sum of two rational numbers is rational. Doesn't this seem like it might be one of the axioms of rational numbers? Is it really something that can be proved? Well, we know how the process of adding rational numbers works: we put the fractions over a common denominator and then just add numerators. Do you see how adding fractions really rests on our ability to add the numerators (which are integers). So, in doing that exercise you can use the fact (indeed, you'll need to use the fact) that the sum of two integers is an integer. So how about that statement? Is it necessary to prove that adding integers produces an integer? As a matter of fact it is necessary since the structure of the integers rests on a foundation known as the Peano axioms for the naturals — and the Peano axioms don't include one that guarantees that the sum of two naturals is also a natural. If you are tempted to trace this whole thing back, to “find out how deep the rabbit hole goes,” I commend you. But, if you just want to be able to get on with doing your homework problems, I sympathize with that sentiment too. Let's agree that integers behave the way we've come to expect — if you add or multiply integers the result will be an integer.

Subsection3.1.1Exercises

  1. Every prime number greater than 3 is of one of the two forms \(6k+1\) or \(6k+5\). What statement(s) could be used as hypotheses in proving this theorem? \hint{ Fill in the blanks:

    • \(p\) is a number, and

    • \(p\) is greater than .

  2. Prove that 129 is odd. \hint{ All you have to do to show that some number is odd, is produce the integer \(k\) that the definition of “odd” says has to exist. Hint: the same number could be used to prove that \(128\) is even. }

  3. Prove that the sum of two rational numbers is a rational number. \hint{ You want to argue about the sum of two generic rational numbers. Maybe call them \(a/b\) and \(c/d\). The definition of “rational number” then tells you that \(a\), \(b\), \(c\) and \(d\) are integers and that neither \(b\) nor \(d\) are zero. You add these generic rational numbers in the usual way — put them over a common denominator and then add the numerators. One possible common denominator is \(bd\), so we can express the sum as \((ad+bc)/(bd)\). You can finish off the argument from here: you need to show that this expression for the sum satisfies the definition of a rational number (quotient of integers w/ non-zero denominator). Also, write it all up a bit more formally… }

  4. Prove that the sum of an odd number and an even number is odd. \hint{

    }

  5. Prove that if the sum of two integers is even, then so is their difference. \hint{ Hint: If we write \(x+y\) for the sum of two integers that is even (so \(x+y = 2k\) for some integer \(k\)), then we could subtract from it in order to obtain \(x-y\). Once you fill in that blank properly the flow of the argument should become apparent to you. }

  6. Prove that for every real number \(x\), \(\frac{2}{3} \lt x \lt \frac{3}{4} \; \implies \; \lfloor 12x \rfloor = 8\). \hint{ Begin your proof like so: “Suppose that \(x\) is a real number such that \(\frac{2}{3} \lt x \lt \frac{3}{4}\).” You need to multiply all three parts of the inequality by something in order to “clear” the fractions. What should that be? The definition for the floor of \(12x\) will be satisfied if \(8 \leq 12x \lt 9\) but unfortunately the work done previously will have deduced that \(8 \lt 12x \lt 9\) is true. Don't just gloss over this discrepancy. Explain why one of these inequalities is implied by the other. }

  7. Prove that if \(x\) is an odd integer, then \(x^2\) is of the form \(4k+1\) for some integer \(k\). \hint{ You may be tempted to write “Since x is odd, it can be expressed as \(x = 2k+1\) where \(k\) is an integer.” This is slightly wrong since the variable \(k\) is already being used in the statement of the theorem. But, except for replacing \(k\) with some other variable (maybe \(m\) or \(j\)?) that is a good way to get started. From there it's really just algebra until, eventually, you'll find out what \(k\) really is. }

  8. Prove that for all integers \(a\) and \(b\), if \(a\) is odd and \(6 \divides (a+b)\), then \(b\) is odd. \hint{ The premise that \(6 \divides (a+b)\) is a bit of a red herring (a clue that is designed to mislead). The premise that you really need is that \(a+b\) is even. Can you deduce that from what's given? }

  9. Prove that \(\forall x\in\Reals, \, x\not\in\Integers \, \implies \, \lfloor x\rfloor+\lfloor-x\rfloor=-1\). \hint{

    }

  10. Define the evenness of an integer \(n\) by: \begin{equation*} \mbox{evenness} (n) = k \; \iff \; 2^k \divides n \, \land \, 2^{k+1} \nmid n \end{equation*} State and prove a theorem concerning the evenness of products. \hint{Well, the statement is that the evenness of a product is the sum of the evennesses of the factors…}

  11. Suppose that \(a\), \(b\) and \(c\) are integers such that \(a \divides b\) and \(b \divides c\). Prove that \(a \divides c\). \hint{ This one is pretty straightforward. Be sure to not reuse any variables. Particularly, the fact that \(a \divides b\) tells us (because of the definition of divisibility) that there is an integer \(k\) such that \(b = ak\). It is not okay to also use \(k\) when converting the statement “\(b \divides c\).” }

  12. Suppose that \(a\), \(b\), \(c\) and \(d\) are integers with \(a \neq c\). Further, suppose that \(x\) is a real number satisfying the equation \begin{equation*} \frac{ax+b}{cx+d} = 1. \end{equation*} Show that \(x\) is rational. Where is the hypothesis \(a \neq c\) used? \hint{Cross multiply and solve for \(x\). If you need to divide by an expression, it had better be non-zero!}

  13. Show that if two positive integers \(a\) and \(b\) satisfy \(a \divides b\emph{and}b \divides a\) then they are equal. \hint{From the definition of divisibility, you get two integers \(j\) and \(k\), such that \(a = jb\) and \(b = ka\). Substitute one of those into the other and ask yourself what the resulting equation says about \(j\) and \(k\). Can they be any old integers? Or, are there restrictions on their values? }