A Reflection on A Mathematician’s Apology by G. H. Hardy

It lures me in like a siren calling out to sea. In the back of my mind, I am screaming that this is not a good idea, but I go forth without showing the trepidation that I feel. This siren comes into view and it is ugly and yet so beautiful. When its mouth opens, there are fangs, but the sound its razor-filled mouth emits is otherworldly. Her name is mathematics.

The first things I recall are, of course, the numbers. When I was young, I was quite ambitious and loved learning. I was so enamored with multiplication that when we got to the section where we multiplied by multi-digit numbers, instead of carrying the number and adding it, I just kept multiplying. Let me give an example: Let’s take 654 · 3: when I was about 8 years old, I would have taken the following steps to retrieve the answer:

4 · 3 = 12

Now, we carry the one

6154

So, obviously (in my little head), we take 3 · 15 (I actually knew the correct answer) = 45

4654

Now, we have 46 · 3. Hm…this is really hard, I thought…

 

Let’s just say, I had a tough time, but I was so determined to get it right. Not too long after I tried this method, I was shown more examples of the proper way and quickly picked up on it. In fact, when I was in elementary school, I always had the top marks.

In middle school, I joined the Krypto club. Krypto[1] is a mathematical card game designed by Daniel Yovich in 1963 that promotes proficiency with basic arithmetic operations. The Krypto deck consists of 56 cards: three each of numbers 1-6, four each of the numbers 7-10, two each of 11-17, one each of 18-25. Six cards are dealt: a common objective card at the top and five other cards below. Each player must use all five of the cards’ numbers exactly once, using any combination of arithmetic operations (addition, subtraction, multiplication, and division), to form the objective card’s number. The first player to come up with a correct formula is the winner. In sixth grade, my best friend and I were the first sixth graders to ever win in a tournament; we won third place. That is probably my only mathematical claim to fame; I still have the trophy.

I have a confession. I do not claim to be ‘good’ at mathematics. People that know me have this misconception that I am some sort of mathematical genius or ‘math whiz’. I really am not. In fact, it is my struggle with mathematics that keeps me coming back for more. If I were to pursue what I am ‘good’ at, my life would be that of an artist, I would write, act and sing. I am good, or, at the least, very decent at doing those things. However, realistic as I am, I sought to do something ‘useful’. I decided to take this mathematic horror on face-to-face.

My college career has certainly been a struggle. I have to constantly justify the reasoning behind my madness. ‘Why are you doing this to yourself?’ Well, what else was I going to do? Waste my time paying for a degree that would never get me a career? I knew that this would not be easy and that is what makes it all the more alluring.

My Calculus II professor, after my having asked him how to calculate something, told me that I was stupid and asked what I was doing in his class. Well, I got an ‘A’ in Calculus I, so this is the next step, right? That semester almost ended my mathematics endeavor, but it would take more than one bad professor to stop me. I thirsted for more. In Calculus III, my professor would constantly berate us all, telling us that we were idiots for not recalling things we learned, it seemed, eons ago. It certainly did not help that I could not remember formulas to save my life. In theatre, I have had leading roles that required me to memorize pages and pages of script, but I cannot remember a simple formula! Alright, now I have you, too, wondering, what in the blazes is this girl doing pursuing a degree in mathematics? Let me tell you.

Mathematics is so beautiful. It is given a bad name because the masses think it is scary. Well, it can be at times, but there is so much to learn and through learning and gaining more insight, I have gained such respect for mathematicians. When I took Linear Algebra, I had this professor that I thought, and still kind of do, was off his rocker. He assigned every problem in the book, which I ended up spending over 30 hours per week working on (This does not count the Calculus III homework I had on top of that!). I swear my dreams looked like The Matrix! What made matters worse, he did not discuss the work in class, and rather, he would prattle on about how ‘spectacular’ algebra was and the beauty of it all; that just made me all the more angry. However, after the semester was over, I laughed. I got a good grade, but, more than that, I actually gained an even greater love for mathematics. That crazy old guy was right, this was worthwhile and I became more passionate about it. I was actually excited to take Advanced Matrix Theory & Applications the following semester.

I had this ‘ah-hah!’ moment that year. I wanted to become a teacher. Your suspicions have been confirmed, she is crazy. Yes! It may be masochistic, but I love mathematics. For ages, schools have taught mathematics and tried cramming it down students’ throats. This is not my plan of action. I want to paint the portrait of mathematics with the fine lines and intricate details, as difficult as that may be. This reflection is turning into a reassuring epiphany.

G.H. Hardy’s defense of mathematics was compelling to read because I felt as though he were, in a way, defending me, too. Now, if I were to have met Hardy, he surely would have deemed me incompetent and better suited in another field, but I would have told him otherwise. I may not a mathematician in the sense that Hardy was, in fact, I may never be considered a mathematician at all! It is not the way of things. I am, however, devoted. I have devoted my time and my passion towards mathematics and that is significant.

Nevertheless, I will carry with me the message that I understood from his defense. I will become a mathematics teacher and share with the public the beauty of mathematics, the fun and joy it can bring. I have heard the siren’s call and I am singing along.

 

[1] Definition of Krypto: http://en.wikipedia.org/wiki/Krypto_(game)

 

 

 


Ex-plane something to me…

happy

Planar Graphs & Euler’s Theorem

A planar graph is a graph which can be drawn in the plane without any edges crossing. Some pictures of a planar graph might have crossing edges, but it’s possible to redraw the picture to eliminate the crossings.

There are also many practical applications with a graph structure in which crossing edges are a nuisance, including design problems for circuits, subways, utility lines. Two crossing connections normally means that the edges must be run at different heights.

When a planar graph is drawn with no crossing edges, it divides the plane into a set of regions, called faces. By convention, we also count the unbounded area outside the whole graph as one face.

Suppose that we have a graph with e edges, v nodes, and f faces. We know that the Handshaking theorem holds, i.e. the sum of  the degrees of the vertices is 2e. For planar graphs, we also have a Handshaking theorem for faces: the sum of the face degrees is 2e.

For connected planar graphs, we have Euler’s formula: v − e + f = 2. We’ll prove that this formula works.

Before we try to prove Euler’s formula, let’s look at one special type of planar graph: trees.

A tree doesn’t divide the plane into multiple regions, because it doesn’t contain any cycles. In graph theory, a tree has only one face: the entire plane surrounding it. So Euler’s theorem reduces to v − e = 1,
i.e. e = v − 1. Let’s prove that this is true, by induction.

Proof by induction on the number of edges in the graph.

Base Case: If the graph contains no edges and only a single vertex, the formula is clearly true.

IHOP: Suppose the formula works for all trees with up to k vertices. Let T be a tree with k + 1 vertices.
We need to show that T has k edges.
Now, we find a vertex with degree 1 (only one edge going into it). To do this start at any vertex r and follow a path in any direction, without repeating edges. Because T has no cycles, this path can’t return to any vertex it has already visited. So it must eventually hit a dead end: the vertex at the end must have degree 1. Call it p.

Remove p and the edge coming into it, making a new tree T′ with k vertices. By the IHOP, T′ has k − 1 edges. So T has k edges. Therefore the formula holds for T.

Spanning-Tree1

We can now prove Euler’s Formula (v − e + f = 2) works in general, for any connected planar graph.

Proof by induction on the number of edges in the graph.

Base Case: If e = 0, the graph consists of a single node with a single face surrounding it. So we have 1 − 0 + 1 = 2 which is clearly right.

IHOP: Suppose the formula works for all graphs with no more than n edges. Let G be a graph with n + 1 edges.

Case 1: G doesn’t contain a cycle. So G is a tree and we already know the formula works for trees since we proved it! Check!

Case 2:  G contains at least one cycle. Pick an edge p that’s on a cycle. Remove p to create a new graph G′.

Since the cycle separates the plane into two faces, the faces to either side of p must be distinct. When we remove the edge p, we merge these two faces. So G′ has one fewer faces than G.

Since G′ has n edges, the formula works for G′ by the IHOP.

That is, v′ − e′ + f′ = 2.

But v′ = v, e′ = e − 1, and f′ = f − 1.

Substituting, we find that

v − (e − 1) + (f − 1) = 2
So, v − e + f = 2                   as desired.

Euler-Formula-for-Planar-Graph2

 

Exam Time!

Use Euler’s Planar Graph Theorem to prove whether the graph is planar or nonplanar.

planar8

 

 

 

 

Euler’s Formula and the Utilities Problem


“Trix are for kids…”

A quick vocabulary review:

Path: A path of length n is the graph Pn on n+1 vertices {v0, v1, v2, …, vn} with n edges (v0,v1), (v1,v2), …, (vn-1,vn).

Cycle: A cycle of length n is the graph Cn on n vertices {v0, v2, …, vn-1} with n edges (v0,v1), (v1,v2), …, (vn-1,v0).

Walks, Trails, and Circuits: A walk in a graph is a sequence of adjacent edges. A trail is a walk with distinct edges. A circuit is a trail in which the first and last edges are adjacent.

circuit

The Adjacency Matrix

The most common form of matrix in social network analysis is a very simple square matrix (n × n), which is a matrix where the number of rows equals the number of columns. In social network analysis, this represents information about the relationship between each pair.

We represent the relationship using binary. That is, if a tie is present, a one is entered in a cell; if there is no tie, a zero is entered. This kind of a matrix is the starting point for almost all network analysis, and is called an “adjacency matrix” because it represents who is next to, or adjacent to whom in the “social space” mapped by the relations that we have measured.

In graph theory, adjacency matrices are used to represent the existence of edges between vertices. Any graph can be represented by an adjacency matrix, where the (i, j) entry of the matrix is 1 if vertices i & j are adjacent and is 0 otherwise.

adj

For a graph, G, then we say that there is a walk from i to j. If we walked along k edges, then the walk has length k. The adjacency matrix of G is denoted by A. To find the number of walks of length k from i to j, we compute Ak­­, which will be the matrix obtained by multiplying A with itself k times. The entry on row i, column j of Ak  corresponds to the number of walks of length k from vertex i to vertex j in the graph.

Example:

How many walks of length 5 exist from vertex 2 to vertex 4 on the third graph in the figure above?

We are given the adjacency matrix

A

To compute the number of walks of length 5 from vertex 2 to vertex 4, we must compute A5 and look at the (i, j) = (2, 4) entry.

A5

The (2, 4) entry of A5 is 61. Thus, the number of walks of length 5 from vertex 2 to vertex 4 is 61. For this course and the exam, we will likely be asked to list all of the possible walk cycles to a problem similar to this. However, our numbers will more realistic. (I hope!)

So… In any case, it’s your turn! What time is it? …

Exam Time!

Find the adjacency matrix A for the graph and find the number of walks of length 3 that exist between vertices A & D and list the possible cycles.

ex

 

 

http://faculty.ucr.edu/~hanneman/nettext/C5_%20Matrices.html#adjacency

Click to access MITHFH_lecturenotes_9.pdf


The key to happiness is encrypted.

encryption_joke

The RSA Algorithm

Fun Fact: The RSA Algorithm was named after its three inventors: Ron Rivest, Adi Shamir and Leonard Adleman, who first published the RSA method in 1977. There are three main phases of the public-key encryption system:

  1. Key Generation: Whoever wants to receive secret messages creates a public key (published) and a private key (kept secret). The keys are generated in a way that conceals their construction and makes it ‘difficult’ to find the private key by only knowing the public key.
  2. Encryption: A secret message to any person can be encrypted by their public key (that could be officially listed like phone numbers).
  3. Decryption: Only the person being addressed can easily decrypt the secret message using the private key.

How do we implement this?

(1.) Generate a pair of keys.

  • To generate a pair of keys, two large prime numbers p and q are chosen randomly.
  • The product n = pq is calculated. Calculate φ(n)=(p-1)(q-1).
  • Choose a private decryption key, d, such that (d, φ(n)) = 1.
  • Find a public encryption key, e, so that e·d + φ(n)·f = 1.

(2.) Encrypt the message with the public key. To obtain the encrypted message C from plaintext message M, the following operation is performed:

C = Me (mod n)

(3.) Decrypt the message with the private key.

To recover the original message from the encryption operation, we compute:

M = Cd (mod n)

Example:

Let p = 3 & q = 11. n = pq = 33

Calculate φ(n)=(p-1)(q-1) = (2)(10) = 20

Choose a private decryption key, d, such that (d, φ(n)) = 1.

Let d = 3

 Find a public encryption key, e, so that e·d + φ(n)·f = 1.

Find e, so that e·3 + 20·f = 1.

Let e = 7

Now, we want to send message “5”, so let M = 5.

C = Me (mod n)

C = 57 (mod 33) = 52 · 52 · 52 · 5 (mod 33)

≡ 25 · 25 · 25 · 5 (mod 33) = 25 · 25 · 125 (mod 33)

≡ (-8) (-8) (26) (mod 33) ≡ 64 · 26 (mod 33)

≡ (-2) · (-7) (mod 33) ≡ 14 (mod 33)

So our encrypted message C is 14.

Now, to recover the original message from the encryption operation, we compute:

M = Cd (mod n)

M = 143 (mod 33) = 196 · 14 (mod 33)

≡ (-2) · 14 (mod 33) = -28 (mod 33)

≡ 5 (mod 33)

which is our original message, M.

Exam Time!

Choosing two primes: p=11 and q=13. Let the modulus n=p×q=143. Encrypt the message, M,  “3”, then decrypt it.

 

 


 

http://doctrina.org/How-RSA-Works-With-Examples.html


Φ! Fi! Fo! Fum!

Φ! Fi! Fo! Fum!

Let’s talk about Euler’s Theorem!

Let n be prime or let n be composite,

Use in encryption so nobody knows it!

The Euler Φ Function

(Totient Function or Indicator Function)

For m ≥ 1, let Φ(m) be the number of numbers in the set {1, 2, …, m} that are relatively prime to m. Thus if m is a positive integer, then Φ(m) is the number of integers k in the range 1 ≤ k ≤ m, for which gcd(m, k) =1.

Example: Φ(10) = 4. There are 4 numbers in the set {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} that are relatively prime to 10, that is the set {1, 3, 7, 9}.

How do we calculate Φ(m) for larger numbers? There’s a theorem for that!

Theorem: If m has prime factorsp1 to kthen

phi

Example:

504

The more you know… 

This function is multiplicative. If two numbers m and n are relatively prime, (m, n) = 1, then Φ(mn) = Φ(m)Φ(n).

For m = p, a prime number, Φ(p) = p – 1. This counts 1, 2, …, p – 1 since p is prime, all the numbers in the set {1, 2, …, p} are relatively prime to p, beside p itself. You will notice this property in the following table. (Note: it says Φ(n) rather than Φ(m).)

totient

What is the point?

Well, you have heard of Fermat’s Little Theorem, right? Well, let’s take a look:

Fermat’s Theorem states that if p is prime, then

fermat 2

when (a, p) = 1, we can divide both sides by a to getfermat

Euler’s Φ Function (or Totient Function) is used to generalize Fermat’s theorem to composite moduli.

Euler’s Generalized Theorem states: Let (a, n) = 1, then

a

Example: Let n = 10 and a = 7. Since (10, 7) = 1 and we know from our first example that Φ(10) = 4, then

7

Euler’s Φ Theorem is useful in the real world, mainly in the world of cryptography and cryptanalysis. Euler’s Φ Theorem & Fermat’s Little Theorem are used in the encryption and decryption of data, specifically the RSA encryption system. We will learn about this in the next chapter so I hope this served as a little preparation.

EXAM TIME!

Find the last digit of 77Hint: Think about the number modulo 10 & recall Φ(10).


Blog (mod 6)

Parity is a term we use to express if a given integer is even or odd. The parity of a number depends only on its remainder after dividing by 2. An even number has parity 0 because the remainder after dividing by 2 is 0, while an odd number has parity 1 because the remainder after dividing by 2 is 1.

Some useful arithmetic rules of parity: {O: Odd; E: Even}

E ± E = E

O ± O = E

E ± O = O

E · E = E

E · O = E

O · O = O

Parity is often useful for verifying whether equality is true or false by using the parity rules of arithmetic to see whether both sides have the same parity.

Leunig Parrot

We learned about modular arithmetic in class. If you are like me, you had never even heard of it, but even if you have, here are some neat properties:

Modular Arithmetic is based on the idea that different bases can be used in notating numbers. We commonly use the base 10 system in nearly all scenarios, but we encounter others when dealing with things like days of the week (base 7) or the time of day (base 12). The idea is simply that instead of going from 1 to 9 and then starting over on a particular place value, we could choose some other digit as the start over point instead. Consequently, this leads to changes in each place value. While we use 100 for the ones place, 101 for tens, 102 for hundreds and so forth for base 10 with 9 being our highest possible single digit, base 7 would be 70, 71, 72, etc, where 6 is the highest possible single digit.

Image

This was a “lightbulb” moment for me because I tell time using “military time”, i.e. the 24-hour clock, which means to tell someone what time it is, I usually convert to the 12-hour clock time. I had no idea this was “mod 12”!

Image

The modulo operation (abbreviated “mod”, or “%” in many programming languages) is the remainder after dividing by a specific value. In modular arithmetic, numbers are never bigger than the “modulus.” For example, for “mod 12” numbers are never bigger than 11. Think of a regular clock.

Notation: When we say “mod m” that means that the whole expression is modular, not just the last number. For instance,

12 · 29 · 408 (mod 13)      *(mod 13) applies to the whole expression, so we can reduce the parts before multiplying.

12 mod 13 ≡ 12

29 mod 13 ≡ 3

408 mod 13 ≡ 5

So, 12 · 29 · 408 (mod 13) ≡ 12 · 3 · 5 (mod 13) ≡ 36 · 5 (mod 13)

36 mod 13 ≡ 10

10 · 5 (mod 13) ≡ 50 mod 13 ≡ 11.

This method is useful whenever the numbers are bigger than the modulus.

Modular arithmetic can come in handy when solving systems of equations because any arithmetic done with integers translates to arithmetic done to integers modulo 2.

Since any integer solution of an equation reduces to a solution modulo 2, it follows that if there is no solution modulo 2 then there is no solution in integers.

For example, assume that x is an integer solution to

2x – 3 = 12, which using mod 2, reduces to

0 · x + 1 ≡ 0 mod 2

1 ≡ 0 mod 2

This is a contradiction because 0 and 1 are different numbers mod 2 (Even # ≠ Odd #) Therefore, the congruence has no solution, so x could not have been an integer. This proves that the original equation, 2x – 3 = 12 has no integer solution, as well.

Now consider the system of equations:

8x – 19y = 6,

12x + 5y = 17.

Applying (mod 2), these equations reduce to:

0 + 1y ≡ 0 mod 2,

0 + 1y ≡ 1 mod 2.

This result says that y is both an even and an odd number, which is a contradiction. Therefore, we know the original system of equations has no integer solutions. We didn’t even have to look at x to figure this out!

As shown by the preceding examples, one of the powers of modular arithmetic is the ability to show that certain equations and systems of equations have no integer solutions. Without modular arithmetic, we would have to find all of the solutions and then see if any turned out to be integers.

I hope you found this as interesting as I did!

EXAM TIME!

Eleven gears are arranged in a chain as shown here.

Can the gears rotate?

 Image

Hint: Assume one gear rotates clockwise and see how the other ones behave.

References:

http://math2033.uark.edu/wiki/index.php/Explanation_of_Modular_Arithmetic

http://www.math.rutgers.edu/~erowland/modulararithmetic.html

https://brilliant.org/assessment/techniques-trainer/parity/


G c’s D & L c’s M, but who sees me?!

Hello there, folks! Today we are going to take a look at the greatest common divisor. Let’s start with some definitions, shall we?

Given two positive integers, a & b, we can find:

Greatest Common Divisor (gcd): denoted gcd(a, b) or (a, b), is the largest positive integer that divides both a and b without a remainder. It is useful for reducing fractions to lowest terms.

Least Common Multiple (lcm): denoted lcm(a, b) or [a, b] is the smallest integer that is a multiple of both a and b.

How do we compute these things?! Let’s start with the gcd.

Greatest Common Divisor

There are several methods to find the gcd. Let’s examine a few:

Method 1: Prime Factorization

Using this method, first find the prime factorization of each number.

168 = 2 · 2 · 2 · 3 · 7
180 = 2 · 2 · 3 · 3 · 5

Then we find the common prime factors of these two numbers.

168 = 2 · 2 · 2 · 3 · 7
180 = 2 · 2 · 3 · 3 · 5

The common prime factors are 2, 2 and 3. Then, the gcd of 168 and 180 is the product of these common prime factors:

The gcd(168, 180) is 2 · 2 · 3 = 12.

Method 2: Division by Primes

(a, b)

x

2

2

3

a

168

84

42

14

b

180

90

45

15

 First divide all the numbers by the smallest prime that can divide all of them. The smallest prime that divides 168 or 180 is 2. Continue the steps until we can’t find any prime number that can divide all the numbers in the previous column. Now, looking at the prime factors that we used, we find:

The gcd(168, 180) is 2 × 2 × 3 = 12,

which is the same value we got before!

Method 3: Euclidean Algorithm

This algorithm finds GCD by performing repeated division starting from the two numbers we want to find the GCD of until we get a remainder of 0.

This algorithm is a useful method to find the GCD. When computing (a, b), begin by dividing the larger number by the smaller one. Let’s use our original example numbers of 168 and 180. In this case, we divide 180 by 168 to get a quotient of 1 and a remainder of 12. Next, we divide 168 by our remainder (i.e. 12). So 168 divided by 12 gives us a quotient of 14 and a remainder of 0. Since we have reached a remainder of zero, the last remainder we divided by is the GCD. In this case, 12.

Example: Find gcd(2520, 825). For this first example, the steps are narrated.

  • 2520 ÷ 825 = 3 with a remainder of 45
  • 825 ÷ 45 = 18 with a remainder of 15
  • 45 ÷ 15 = 3 with a remainder of 0.
  • We stop here since we’ve already got a remainder of 0. The last number we used to divide is 8 so gcd(2520, 825) = 15

Euclid’s algorithm is based on the following two observations:

  1. If b|a then gcd(a, b) = b.
  2. If a = bq + r, for integers q and r, then gcd(a, b) = gcd(b, r).

Every common divisor of a & b also divides r, thus (a, b)|r.

Note that 0 ≤ remainder ≤ divisor.

Now put on your big kid pants and let’s do this!

Example: Let a = 662, b = 414 find the greatest common divisor, i.e. (662, 414)

Note: a = bq + r represents dividend equals divisor times quotient plus remainder

a =

bq    + r

 662

414(1)  + 248

414

248(1)  + 166

248

166(1)  + 82

166

82(2)    + 2

82

2(41)    + 0
STOP!

Therefore, gcd(662, 414) = 2

Now you know a few ways to calculate the greatest common divisor. We will not go into too much detail this time around, but since you have the GCD, you can find the LCM with this useful formula:

lcm

Looking back at our most recent example, we know gcd(662, 414) = 2, so what is the lcm(662, 414)?

lcm2

Exam Time!

Use all three methods to find gcd(244, 354) & gcd(128, 423).

Which method is the most efficient?

References: http://www.idomaths.com/hcflcm.php


Oh, yah? …Prove it!

Patterns & Proofs with Pascal’s Triangle

blog 4 2

Relationships among binomial coefficients can often be proved either algebraically or combinatorially. An algebraic proof is one that applies formulas. Combinatorial proofs are based on the meaning of the binomial coefficients. In the following theorem which illustrates some of the patterns in Pascal’s Triangle, I will provide combinatorial proofs for parts (a.) and (c.)

Let n be a positive integer and k be an integer such that 0 ≤ k ≤ n.

(a.)Binomial Theorem:for\ x, y \in \mathbb{R},

(x+y)^{n}=\sum_{k=0}^{n}= \binom{n}{k}x^{k}y^{n-k}

(b.)\binom{n}{k}=\binom{n}{n-k}.

(c.)\binom{n}{k}=\binom{n-k}{k}+ \binom{n-1}{k-1} for k\geq 1.
proof

To explain the relationship among coefficients in part (c), we refer to Pascal’s Triangle.

blog 4 1

The triangle provides a simple means for computing binomial coefficients. For example, we read on row n = 4 the coefficients for x^{k}y^{n-k} for k increasing from 0 to 4. Thus

binomial 4 Pascal’s Triangle illustrates part (c ) of the theorem previously mentioned. The triangle is constructed with the first two rows,

1

1          1

and constructing the next row by putting 1 on the far left and right. All other entries in a row are found by adding the two entries immediately to the left and right in the preceding row. Thus, the first entry of 10 in the fifth row is the sum of the entries 4 and 6 from the fourth row. Part (c) of the theorem illustrates precisely how each entry in one row of the triangle is formed from the two entries in the row above. Amazing!

This version of Pascal’s Triangle clearly demonstrates the relationship with binomial coefficients.

blog 4

Exam Time!

A square is bisected vertically and horizontally into 4 smaller squares, and each of the 4 smaller squares is to be painted so that adjacent squares have different colors. If there are 20 paints available, in how many ways can the 4 smaller squares be painted?

Reference: Smith, Douglas, Maurice Eggen, and Richard St.Andre. A Transition to Advanced Mathematics. Boston, MA: Brooks/Cole, 2011. Print.


Prepare to be inducted!

Let’s begin with a joke:

Q: How do mathematicians induce good behavior in their children?

A: ‘If I’ve told you n times, I’ve told you n+1 times…’

Image

Once upon a mathematical era, there was an Italian mathematician by the name of Giuseppe Peano (1858-1932), who made many contributions to mathematical logic and set theory, especially its language and symbolism.

In 1889, Peano set forth five axioms that provided a complete and rigorous definition of the natural numbers based on the notion of successors. The fifth axiom was this:

If a property is possessed by 1 and possessed by the successor of every natural number that possesses it, then the property is possessed by all natural numbers, ℕ.

Peano’s fifth axiom can be restated as a property of sets of natural numbers… BEHOLD!

The Principle of Mathematical Induction (PMI)

Let S be a subset of ℕ with these two properties:

(i.)  1 ∈ S,

(ii.)  ∀ k ∈ ℕ, if k ∈ S, then k+1 ∈ S.

Then S = ℕ

A set S of natural numbers is called an inductive set iff it has the property that whenever n ∈ S, then n+1 ∈ S.

Many sets of natural numbers have the inductive property, but only one set is inductive and contains 1. By the Principle of Mathematical Induction, that set is ℕ.

An important use of the PMI is to make inductive definitions.

 Example: Prove that for every natural number n,

1 + 3 + 5 + … + (2n – 1) = n2.

Proof. Let S = { n ∈ ℕ: 1 + 3 + 5 + … + (2n – 1) = n2}.

*We have defined S to be the set of natural numbers for which the statement is true. We show the statement is true for all natural numbers by showing that S = ℕ.

              (i.) 1=12, so 1 ∈ S.

              (ii.) Let k be a natural number such that k ∈ S. Then

1 + 3 + 5 + … + (2k – 1) = k 2.

*We have assumed that some k is in S. From this assumption we will show that k+1 ∈ S. Showing k+1∈ S is accomplished by verifying that

1 + 3 + 5 + … + [2(k + 1) – 1] = (k +1)2.

At this point, it is essential to compare the statements for k and k + 1. Notice that the left-hand sides of the two equations are almost identical, but the statement about k + 1 has one more term.

By adding 2(k + 1) – 1 to both sides of 1 + 3 + 5 + … + (2k – 1) = k 2, we have

1 + 3 + 5 + … + (2k – 1) +[2(k + 1) – 1]            = k2 + [2(k + 1) – 1]

                                                                                                = k2 + 2k + 1

= (k + 1)2.

This shows that if k ∈ S, then k+1 ∈ S.

                 (iii.)  By the PMI, S = ℕ. That is, 1 + 3 + 5 + … + (2n – 1) = n2 for every natural number n.

In reference to the proof above:

Step 1: Define the set S as the set of all natural numbers for which the statement was true. In general, for an open sentence P(n), the statement (∀ n ∈ ℕ)P(n) is true iff the set of numbers for which P(n)is true equals ℕ.

Step 2: Assume that some natural number k is in S. This assumption is called the hypothesis of induction (IHOP). Notice that we must not assume that k ∈ S for all k ∈ ℕ, because that would be assuming what we want to prove. For a direct proof of the inductive step, we begin from the assumption that k ∈ S and deduce that k + 1 ∈ S.

Step 3: Compare the statement about k with the statement about k + 1. Every good proof by induction will use the IHOP to show that k + 1 ∈ S. Finding the connection between these statements is the heart of a proof by induction.

*In actual practice, the preferred form for the outline of a proof using the PMI is this:

Proof of (∀ n ∈ ℕ) P(n)Using the PMI

Proof.

(i.)   (Basis Step) Show that P(1) is true.  n = 1

(ii.) (Inductive Step) Suppose P(k) for some k ∈ ℕ.  n = k

…

Therefore P(k + 1).

(iii.) Therefore, by the PMI, (∀ n ∈ ℕ)P(n)is true.

Exam Time!

Use the PMI to prove the following:

equation

 

 

Reference: Smith, Douglas, Maurice Eggen, and Richard St.Andre. A Transition to Advanced Mathematics. Boston, MA: Brooks/Cole, 2011. Print.


“There will be no meals…”

Multinomials, that is!

A multinomial series is a generalization of the binomial series to more than two variables.

Just check out the  prefix: (Multi- vs. Bi-)

That’s your hint…

The multinomial theorem provides a formula for expanding an expression such as (x1 + x2 +⋯+ xk)n for integer values of n.

To specify, the expansion is given by:

1

where n1, n2 , … , nk can be any nonnegative numbers that sum to n. (i.e. n1 + n2 +⋯+ nk = n)

2

For example, the expansion of (x1 + x2 + x3)3 is

x13 + 3x12x2 + 3x12x3 + 3x1x22 + 3x1x32 + 6x1x2x3 + x23 + 3x22x3 + 3x2x32 + x33.

In this example, n1 = n2 = n3 = 1, so (1 + 1 + 1= 3 choose 1, 1, 1)

In combinatorics, the multinomial coefficient (n choose n1, n2, …, nk) can represent:

  1. The number of ways to split n distinguishable objects into k distinguishable groups, of sizes n1, …, nk, respectively.
    1. In the case that n1 = … = nk = 1, this represents the number of ways to permute all n objects.
    2. Example: The number of ways to place 16 toys in 4 toy chests with 4 toys in each chest is (16 choose 4, 4, 4, 4) = 16! / (4!)4
    3. The number of n-letter words formed with k distinguishable letters, say, A1, …, Ak, used n1, …, nk, times, respectively.
      1. For instance, in the word ALABAMA, the letter A is used 4 times, but each A is distinguishable: A1LA2BA3MA4

So how ways are there to rearrange the letters of the word ALABAMA?

(A +L + B + M)7 = (7 choose 4A,1L,1B,1M) = 7! / (4!1!1!1!) = 210

  1. The coefficient of x1n1 … xknk when expanding (x1 + … + xk)n

3

Now that’s what I call COmbinatOriaL!

 

“EXAM”-INE your knowledge!

The Spring Fling Dance is approaching and the student council’s decorating committee must decorate the gymnasium. They want to hang a string of lights in front of the entrance. The string will contain 480 lights. They have 144 red bulbs, 144 blue bulbs, 120 green bulbs, and 72 yellow bulbs. How many visually distinguishable strings of light can the decorating committee create?


Create your own website, free on WordPress.com.Create your own website.
Start free