#
#
The statement
[Ursula and Uwe read the section from a second copy] \
ππ±π’: [continuing] But
we donβt want that definition, we want this definition [writing on
the board]
\begin{align} β \: k β \mathbb{Z},\; a β 0, \;\;a \mid b \;\; \text{if} \;\; b = a β k \end{align}
ππ±π’: [continuing] The
symbol
[murmurs of approval] \
ππ΄π’: I like how he says
good definitions donβt just fall out of the sky. \
[murmurs of agreement] \
ππ―π°π²π©π: Then the
examples, like
a.
[silence as they study the theorem]
<
ππ±π’: Good, now heβs talking about the transitive property of divisibility. It is a proposition, which is a type of theorem, and that means it comes with a proof. [writing on the board] Here it is in the compact math logic form
\begin{align*} a, b, c β \mathbb{Z},\;\; a \mid b \;β§\; b \mid c \implies a \mid c \end{align*}
ππ±π’: [continuing] And
then he goes on to prove it by saying assume the if part, the
\begin{align*} b &= a β s \[.4em] c &= b β t \end{align*}
ππ±π’: [continuing] for
some integers
\begin{align*} c &= b β t \[.4em] &= (a β s) β t \[.4em] &= a β (s β t) \quad\quad \ldots \; \text{associativity} \end{align*}
ππ±π’: [continuing] So
since we have the form
ππ―π°π²π©π: Good. Letβs
switch over to this other book [she picks up a Springer Verlag
book[fn:4] and pages through it] Ah, in this book thereβs a section
called Divisors and the Greatest Common Divisor. [paging to section,
reading] Oh, hereβs one, Determine whether true or false [writing on
the board]
\begin{align*} 2 \mid (6n + 4) \end{align*}
ππ΄π’: Interesting. So writing it in the divisibility way [gets up and writes on the board]
\begin{align*} (6n + 4) = 2k \end{align*}
ππ΄π’: So before we freak out and get lost, letβs just notice that [writing]
\begin{align} 2(3n + 4) &= 2k \[.4em] 3n + 4 &= k \end{align}
ππ΄π’: [continuing] Iβd
say we donβt need to go any further with this.
ππ±π’: And this whole
formal divisibility thing helps because if you just saw this one day
[writing on the board]
\begin{align} \frac{(6n + 4)}{2} = 3n + 2 \end{align}
ππ±π’: [continuing]
youβve now got a second way to see the idea that the equation is true
for any
ππ―π°π²π©π: [looking
ironically] Thanks, Uwe, Ute, for keeping it real. \
[laughter] \
ππ±π’: [reading text] All
right, we have this example [writing on board]
\begin{align*} 0 \mid 11 \end{align*}
ππ±π’: [continuing] which
is false because there canβt be any
[nods of agreement] \
ππ±π’: [continuing] All
right, how about this?
Prove that if
$\,a \mid b$ then$-\, a \mid b$
ππ―π°π²π©π: Letβs just logic it out [getting up and writing on the board]
\begin{align*} b & = a β k \[.4em] b &= (-a) β (-k) \[.4em] b &= - (a) β (k) \[.4em] b &= - a β k \end{align*}
then
\begin{align*}
- a \mid b \quad \text{for some}\; k β \mathbb{Z}
\end{align*}
ππ―π°π²π©π: [continuing] So
[silence while the others study the board] \
ππ΄π’: Hold it. Iβm not
sure weβve got the spirit of this, quite. \
ππ―π°π²π©π: How so? \
ππ΄π’: [going to the
board] We need to make sure we understand this as [writing]
Plot the integers
$x$ which satisfy$5 \mid (x - 2)$
ππ±π’: [going to the
board and writing] So if thatβs to be true then weβve got
\begin{align*} -3 - 2 &= 5 β -1 \[.4em] 2 - 2 &= 5 β 0 \[.4em] 7 - 2 &= 5 β 1 \[.4em] 12 - 2 &= 5 β 2 \[.4em] \ldots \end{align*}
ππ±π’: [continuing] And
the so-called geometric view of this set of
ππ±π’: [continuing] Which
is to say,
ππ―π°π²π©π: Okay, next one
[writing on the board]
Plot the integers
$x$ which satisfy$x \mid 12\:$ .
ππ―π°π²π©π: [continuing
writing] So that means
ππ΄π’: Again, I would say
we shouldnβt read too much into this. The basic fact is [going to the
board and writing] we have the set of integers that divide
\begin{align} [-1,-2,-3,-4,6,-12,1,2,3,4,6,12] \end{align}
ππ΄π’: And however that
works out with
[murmurs of agreement] \
ππ―π°π²π©π: Iβll draw that
quickly [drawing number line]
ππ―π°π²π©π: All right, Weissman deals with transitive again. But before that he talks about reflexive and antisymmetric in relation to divisibility. [writing on the board]
For every integer
$x$ ,$x \mid x$
[smiles of ironic mute astonishment]
ππ―π°π²π©π: [continuing] So
this is showing us the reflexivity of divisibility
[silence] \
ππ±π’: [reading from her
laptop] According to Wikipedia, a reflexive relation is a binary
relation β or letβs say a binary operator β on a set
[silence]
ππ΄π’: So without getting
too lost in the details, reflexive means things are related somehow to
themselves. So equality would work, even greater than or equal, and
less than or equal since the equal part is true. So for example, all
integers are greater than or equal to themselves. [gives ironic
look] Well, itβs true. \
[laughter] \
ππ±π’: Antisymmetric is next? \
ππ―π°π²π©π: Right. And Iβd
like to understand what symmetric means first β just to get very
confused. \
[laughter, then all searching on their laptops] \
ππ΄π’: Again, weβre
looking for symmetric relation. \
[murmurs of agreement] \
ππ±π’: Okay, Wikipedia
says a symmetric relation is basically, as I paraphrase it, a
situation where if
\begin{align*} β a,b β X, \;\; aRb \iff bRa \end{align*}
ππ±π’: [continuing] And
the
ππ―π°π²π©π: Right, but
blood sibling is not reflexive, itβs irreflexive because you canβt
be called a sibling of yourself. But then a number can be a multiple
of itself β
A relation
$R$ on a set$S$ is antisymmetric provided that distinct elements are never both related to one another. In other words$xRy$ and$yRx$ together imply that$x = y\:$ .
ππ±π’: [continuing] And then from the Wikipedia article [going to the board and writing]
If
$aRb$ with$a β b$ then$bRa$ must not hold.
ππ―π°π²π©π: Good. So now Weissman says [writing on the board]
For integers
$x$ ,$y$ , if$x \mid y$ and$y \mid x$ , then$x = Β± y\:$ .
ππ―π°π²π©π: [continuing] And then he shows it by saying [writing on the board]
\begin{align*} \text{if}\;\;y &= mx \quad \text{and} \[.5em] x &= ny \quad \text {for some integers}\;\; x, y \end{align*}
ππ―π°π²π©π: [continuing] And then we can say [writing]
\begin{align} x = ny = n(mx) = (nm)x \end{align}
ππ―π°π²π©π: [continuing]
And now if we say
\begin{align*} \frac{x}{x} &= \frac{ny}{x} = \frac{n(mx)}{x} = \frac{(nm)x}{x} \[.5em] 1 &= \frac{ny}{x} = nm = nm \end{align*}
ππ―π°π²π©π: [continuing] So
multiplying by a number is the same as dividing by its reciprocal β
and vice versa. And now we have a reciprocal relationship between
\begin{align*} 1 &= nm \[.5em] \frac{1}{m} &= n \[.5em] \frac{1}{n} &= m \end{align*}
ππ―π°π²π©π: [continuing,
writing on the board] But as heβs saying,
\begin{align*} x &= ny \[.5em] x &= (Β±1)y \end{align*}
ππ΄π’: Which is, again,
showing us that division is not ever going to be symmetric unless
weβre just talking about an integer dividing itself, basically β
that is, plus or minus itself.
[murmurs of agreement] \
ππ―π°π²π©π: [looking at the
Weissman text] So then he does transitivity with divisibility, and
itβs the same as we did before. Then he does [writing on the board]
\begin{align*} d,x,y β \mathbb{Z}\; β§\; d \mid x \implies d \mid xy \end{align*}
ππ―π°π²π©π: Thereβs his proof, that is [writing on the board]
\begin{align*}
x &= md \[.5em]
xy &= (md)y \quad \text{(multiply both sides by
ππ―π°π²π©π: So
[murmurs of agreement] \
ππ―π°π²π©π: Next, is this
one [writing on the board]
If
$d \mid x$ and$d \mid y$ , then$d \mid (x + y)$ and$d \mid (x - y)$ .
ππ―π°π²π©π: [continuing]
And the proof is we can say [writing on board] for
\begin{align*} x Β± y = (md) Β± (nd) = (m Β± n)d \end{align*}
ππ―π°π²π©π: [continuing]
And this shows that
Let
$a$ ,$b$,$c$ be integers satisfying the equation$a + b = c$ . Let$d$ bye an integer. If two of the set$\{a,b,c\}$ are multiples of$d$ , then the third number must also be a multiple of$d$ .
[silence]
ππ±π’: This is just the
previous one reworded, right? The basic situation [writing on the
board]
Demonstrate that
$2\,999\,997$ is a multiple of$3$ .
ππ΄π’: Okay, my
turn. [going to the board and writing] Since
\begin{align*} 3 &\mid 3\,000\,000 \quad &\text{(first known)}\[.5em] 3 &\mid 3 \quad &\text{(second known)} \[.5em] \therefore \;\; 3 &\mid (3\,000\,000 - 3) \end{align*}
ππ±π’: Exactly. We knew
two were divisible by
[murmurs of satisfaction] \
ππ΄π’: Hey, weβre really
going down this rabbit hole. \
ππ―π°π²π©π: [perusing
Weissman] Itβs only one, no, two more exercises, then it goes on to
something else. Letβs do this next one and go back to Cummings. \
[murmurs of agreement] \
ππ΄π’: No matter what,
Iβll never see division the same again. \
[laughter] \
ππ±π’: Hey, I just
searched on haskell divisibility
and a stackoverflow came
up[fn:10]. It basically asks whether an integer is divisible by
divisibleBy11 x = x `rem` 11 == 0
ππ―π°π²π©π: Iβll try it [typing into her monitor-connected laptop and running]
divisibleBy11 33
True
ππ―π°π²π©π: I assume that
rem
means remainder, as in, Give me the remainder of a division. And
then thatβs checked if equal to
[murmurs of agreement] \
ππ΄π’: Again, weβre
getting the true-false nature of divisibility. Itβs not just dividing
a number by another. Itβs asking yes or no whether a number properly
divides another. \
ππ―π°π²π©π: Okay, hereβs
the next problem
Find all integers
$x$ which satisfy$x \mid (x + 6)$ .
[silence]
ππ―π°π²π©π: [reading on]
Then heβs solving it with his two out of three principle. So if we can
find two parts of this that are divisible, then the sum or difference
of these is then divisible as well. \
[silence] \
ππ―π°π²π©π: A hint is that
weβre supposed to assume the
\begin{align*} x \mid (x + 6) - 7 = x \mid x - 1 \end{align*}
ππ΄π’: β¦that doesnβt
help us much. Itβs just a new βwhat can
ππ±π’: Something tells me
we want to get rid of stuff on the right hand side of the
\begin{align*}
x &\mid x \quad \text{β¦second given after
[silence]
ππ±π’: What thatβs saying
β as far as I can tell [writing on the board]
[x | x <- [-20,-19..20], ((x `rem` 6) == 0)]
[-18,-12,-6,0,6,12,18]
ππ―π°π²π©π: No, wrong, Iβve
got the 6
trying to go into the x
. Need to reverse them.
[x | x <- [-20,-19..20], ((6 `rem` x) == 0)]
[-6,-3,-2,-1*** Exception: divide by zero
ππ―π°π²π©π: And obviously
we canβt divide by zero. We need to filter out the zero.
ππ±π’: Right. [searching
on her laptop] Okay, thereβs a filter
function. All you need to do
is say [writing on the board] filter (\=0) [-20,-19..20]
and with
that not equals zero in the middle, 0
should get filtered out. \
ππ―π°π²π©π: Got
it. [typing]
[x | x <- filter (/=0) [-20,-19..20], ((6 `rem` x) == 0)]
[-6,-3,-2,-1,1,2,3,6]
ππ―π°π²π©π: Or I could do it this way [typing]
:{
xDivides6 = [x | x <- sampleList, ((6 `rem` x) == 0)]
where sampleList = [-20,-19..(-1)] ++ [1..20]
:}
xDivides6
[-6,-3,-2,-1,1,2,3,6]
ππ―π°π²π©π:
ππ―π°π²π©π:
ππ΄π’: Good. gold
standard for figuring out lowest common denominator.
ππ―π°π²π©π: Iβd say so, but
now we need to see how Haskell does it internally, and how The
Haskell Road⦠does it and stop being amateurs. \
[laughter] \
ππ΄π’: I feel like you
and the professor are like very strong bakers kneading and kneading
and kneading my brain [demonstrates with imaginary brain-dough]
[laughter] \
ππ΄π’: No, this had
really worked out, you, Ursula, racing ahead with the Haskell. And I
going ahead with the set theory, and you, Ute, going on ahead with the
math logic. I mean, weβre definitely making progress. Itβs just that
we have so much to learn! \
[affirmations]
ππ΄π’: Our parents are
both firmly in the empirical world.
[murmurs of agreement] \
[fn:1] Versuchskaninchen: test rabbit
[fn:2] Proofs; A Long-Form Mathematics Textbook by Jay Cummings
[fn:3] She holds up A Computational Introduction To Number Theory and Algebra by Victor Shoup; cite:&shoup2009computational. }
[fn:4] The Whole Truth About Whole Numbers by Sylvia Forman and Agnes M. Rash;
[fn:5] An Illustrated Theory of Numbers by Martin H. Weissman.
[fn:6] See The Encyclopedia of Mathematics.
[fn:7] Reflexivity; Encyclopedia of Mathematics.
[fn:8] Antisymmetric Relation.
[fn:9] Uwe uses the
[fn:10] See Testing divisibility of Ints by 11.
[fn:20] Professor Chandra has demonstrated at the Racket command line
how rationals could be directly added, e.g.,
> (+ 1/32 1/943720)
\
and get back \
117969/3774880
[fn:19] Check out anonymous or lambda functions here.
[fn:18] See Why it is impossible to divide Integer number in Haskell?
[fn:17] See Typeclasses 101 in Learn You a Haskellβ¦.
[fn:16] See the article here.
[fn:15] β¦In arithmetic and number
theory, the least common multiple, lowest common multiple, or
smallest common multiple of two integers
[fn:14] Available here. The page dealing with sections is here in 3.2.1. Also The wiki.haskell.org has a page on sections as well.
[fn:13] A famous line from a Stefan Georg poem: Ich fΓΌhle Luft von anderem Planeten or I feel (the) air of (the other) another planet.
[fn:12] See this from LYAHFGG.
[fn:11] See Wikipediaβs Set-builder notation