Showing posts with label order. Show all posts
Showing posts with label order. Show all posts

Tuesday, December 11, 2018

Permutations

Background

We know how to figure out the number of ways to organize distinct things if there are sufficient places for them (such as books on a shelf) from the Factorials entry. But what if there are more spots than there are things? Or more things than spots?

Question
An action figure collector has ten figures to put into a display case, but the case only holds eight figures. In how many ways can the collector display eight figures in the case? 
What if the collector has a display case that holds twelve figures? Now how many ways can the collector display the collection? 
Answer
 
Analysis

Remember from the Factorials entry that we can figure out the number of ways to arrange things by multiplying all the natural numbers up to the number given. For instance, if there were ten spots in the case, we could simply say that there are 10! = 3,628,800 ways to arrange the figurines. Unfortunately, we don't have 10 spots - we only have 8.

So how would this work? Well... we can put any of the 10 figures into that first display slot. And then any of the remaining 9 in the next slot. And then any of the remaining 8 in the next slot. And so on. We end up with:

10 x 9 x 8 x 7 x 6 x 5 x 4 x 3

which will take a minute to work out on a calculator, but we can do it the long way:

10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 = 1,814,400

What would be great is if we could use factorials to calculate this. And it turns out we can.

Remember that 10! = 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1

To get from 10! to what we want, we need to get rid of the 2 x 1. Notice that that is the same as 2!. And so we can get to the number we want by doing this:



Ideally, it'd be great to put this into terms that are in the question - 10 figurines and 8 spots. Well, we can:



If we call the number of figurines n and the number of spots k, we can express the general formula this way:



This is called a permutation and we can notate the calculation this way (there are several ways it can be notated - this is just one):



Another way to do it is this way:

nPk

And so our first question can be expressed as:



So what happens if the reverse happens and there are 10 figurines but 12 slots?

Well... we can't simply do what we did above - that will leave 2 display slots unaccounted for. But what we can do is to look at the problem in reverse and see that when we place the first figurine, there are 12 spots we can put it into. And then we place the next figure and there are 11 slots to choose from. And so on, so that we end up with:

12 x 11 x 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3

and this is the same thing as:



This highlights an important concept: 

Vocabulary used:
  • Factorial - the calculation that allows for multiplying counting numbers up to a given number n, symbolized as n!
For more information check out these links (comment to add your favourite link):

Where might you have come from?

Fact-orials Index

Combinatorics:
Where might we go?

Combinatorics:

Tuesday, October 30, 2018

Order of Operations - Practice Problems

Background

Let's work a few examples focusing on the Order of Operations

Question
Evaluate:
  •  
  •  
Answer
Analysis

Let's first remember Order of Operations:

  • P = Parentheses (also known as Brackets)
  • E = Exponentials
  • M = Multiplication (same weight as Division)
  • D = Division (same weight as Multiplication)
  • A = Addition (same weight as Subtraction)
  • S = Subtraction (same weight as Addition)
Using this order, let's work the questions:

Question 1


There are a couple of parts here: there's the fraction on the left side of the minus sign (in the middle) and then a series of brackets to work through on the right. 

Ok - in the fraction we have a parenthesis, so we'll work that first. Also, on the right side, there is a parenthesis inside the square brackets - we'll work that first as well:


We still have brackets to work through - the numerator of the fraction (the top number) is an implied bracket, as is the denominator (the bottom number of the fraction) - so let's work those. We also have the brackets on the right hand side of the minus sign. 

Ok - details as to what we're going to do in the next couple of steps:
  • In the numerator, we'll square the 5
  • In the denominator, we'll do the multiplication first, then the addition
  • In the right hand term, we'll square the -1, then do the multiplication, and lastly the addition.






And now we work the division in the fraction and then do the subtraction:



Therefore,



Question 2



We have 3 terms: the -2 being cubed, the division in the middle, and then a more complicated fraction on the right side. We can work the different parts of the expression:







Therefore we can say that:




Vocabulary used:


For more information check out these links (comment to add your favourite link):

Where might you have come from?

Fact-orials Index

Operations:
Where might we go?

Monday, October 1, 2018

Order of Operations (PEMDAS)

Background 

As mathematical expressions get more and more complicated, we need to develop a set of rules that tell us which operations to do first, second, and so on. This is known as the Order of Operations. Oftentimes, to help people remember, you'll see acronyms such as PEMDAS and BEDMAS.

Question 
What is the Order of Operations? And what do PEMDAS and BEDMAS stand for?
Answer 
The Order of Operations is like grammar for math. It tells us in what order we should do the operations that are written. It helps to make sure that the person writing an expression and the person reading it get to the same answer - the one intended by the writer. 
Analysis  

The order in which we work expressions is:
  • P = Parentheses (also known as Brackets)
  • E = Exponentials
  • M = Multiplication (same weight as Division)
  • D = Division (same weight as Multiplication)
  • A = Addition (same weight as Subtraction)
  • S = Subtraction (same weight as Addition)
Now let's talk about why we order in this way.
  • P = Parentheses (also known as Brackets)
We use brackets to group terms - they let us know that a group of terms needs to be calculated first before moving on.
  •  E = Exponentials
Exponentials are a combination of parentheses (we're doing an operation that is grouped) and multiplication (a certain number being repeatedly multiplied).
  • M = Multiplication (same weight as Division)
  • D = Division (same weight as Multiplication)
Multiplication and Division are essentially the same operation but are inverses of each other, and so they carry the same weight in the Order of Operations. Unlike Parentheses and Exponentials, they aren't specifically grouped and so come after those two.
  • A = Addition (same weight as Subtraction)
  • S = Subtraction (same weight as Addition)
Addition and Subtraction are essentially the same operation bur are inverses of each other, and so just like with Multiplication and Division above, they carry the same weight in the Order of Operations. 
  • Read from Left to Right
The last rule, which isn't part of the acronym, is to read the expression being evaluated from Left to Right. It helps to clarify something like this:


If we do the division first, we get

If we do the multiplication first, we get

Which should we do first? The Order of Operations says it doesn't matter!

This is where the rule of reading Left to Right comes into play. We do the division first and the multiplication second to get to 6.

For more information check out these links (comment to add your favourite link): 

Where might you have come from?

Fact-orials Index

Operations:
Where might we go?

Operations:
Operations with different kinds of numbers:
Properties: