Uncategorized

Scatterbrained Creations

Hi All,

I wanted to put an update for this blog, because I haven’t been active for a while now. Over the past year or so, I’ve been working on a lot of new projects including inventing a card game, taking up photography, and writing a novel. Don’t worry, I’m still doing plenty of math as my day job, but at night I’ve been trying other creative pursuits.

If you’d like to take a look at such pursuits you can visit my new website at

www.scatterbrainedcreations.com

How Many Pokémon do you need to Catch ‘Em All in Pokémon Go?

The easy answer is 151. Obviously.

Let me rephrase the question. What’s the maximum number of Pokémon you need to catch in Pokémon Go to catch them all?

Given how rare some Pokémon are and how candies allow Pokémon to evolve I wanted to investigate the worst case scenario. Let’s say you never caught a Pokémon that’s in an evolved form already. Let’s say you never hatched any eggs. And also, let’s say that restrictions such as continent specific Pokémon or some being unreleased isn’t an obstacle for you.

If you caught only unevolved forms and worked your way up from there just how many would you need to catch them all? Also, how many candies would it take?

1. Completing the Pokedex.

I’ll quickly review the math I used to figure this out.

There are 25 Pokémon that don’t evolve at all. So our count starts at 25 and you would get 3 candies each for each one caught.

Next there are 40 Pokémon that only have one evolution and 37 when you exclude Eevee (we’ll get to that in one second). You need 50 candies to evolve any of these Pokémon. To evolve one you would need to catch 13 of them, receiving 39 candies and another 11 candies from trading that many in. This would take 481 Pokémon and 1,850 candies.

Now for Eevee. Eevee has the 3 evolutions which only require 25 candies each to evolve to. Better yet, all of the evolutions all come from Eevee candy. So, when you evolve your first one, then you actually have 2 candies leftover that can be applied to the next one (capture 7 and trade in 6 for a total of 27 candies). You would need to capture 20 Eevees and use 79 candies.

Lastly, there are 16 Pokémon that evolve twice and require 125 candies total to make that happen. You would need to capture 32 then trade 29 for the total of 125 candies. This adds up to 512 Pokémon necessary and 2,000 candies.

Edit: Realized after first posting that there are more special cases for Magikarp-Gyarados, Pidgey-Pidgeot, Weedle-Beedrill, and Caterpie-Butterfree. These adjustments are factored in below.

Our totals then are 1,072 Pokémon needed to catch ’em all. They would use up 4,193 candies.

This is definitely the hardest path to take, which no one would recommend as its the absolute maximum requirements. This would complete your Pokedex and as proud as the professor would be there is still a little bit more to do if you’re truly a diehard fan.

2. Capturing Every Pokémon.

Since you would need to evolve Pokémon to fill the Pokedex you would lose their unevolved forms. If you wanted to own all 151 entirely and completely then you would need some extra ones.

That means one extra Eevee. You also wouldn’t need to catch any more Pokémon with a single evolution, because we caught 13, but only traded in 11. One of the remaining two of them stays unevolved and the other evolves.

For the double evolutions we traded in 29 of the 32 captured, leaving you with 3 remaining. One of them is evolved to the highest form, one stays in the lowest form, and the other would need to evolve just once. This would take 25 candies and another 7 Pokémon captured for each.

All in all, our new totals for being a Pokémon Master.

Pokémon: 1,177

Candies: 4,635

3. Time Factor

Going this far with the data there was one more thing I wanted to find out – how long would it take to catch them all. Given a quick estimate of 30 seconds to catch each Pokémon and requiring 1,177 Pokémon total it would take at least 9.8 hours. This is just for capturing them, it doesn’t take into account how long you need to be out there searching for the rare ones.

Let me know what you think! Also, let me know if there’s any errors in the math or special cases like Eevee that I need to take into account.

 

 

3D Nonagram Puzzle 9x9x9

My first time attempting to solve a nonagram was part of the British Spy Christmas Puzzle. The first challenge was to complete a nonagram which revealed a QR code that led to further questions.

British Spy Christmas Puzzle

A nonagram is basically a grid puzzle, where the numbers along each column and row reveal what cells are shaded. A sequence of 3 – 2 – 3 – 1, means that a set of 3 cells are shaded, then 2, then 3, and finally 1. What the numbers do not reveal is how many unshaded cells are in between the shaded ones.

Recently, I advanced this style of puzzle into the third dimension. The puzzle below is a 9x9x9 cube, comprised of rows, columns, and diagonal lines. Each of the 9 squares are slices that have been cut from the cube. Follow the instructions on the document to try to solve it.

3D Nonagram Puzzle – 9x9x9

Feel free to message me for the solution: kcourtemanche@gmail.com

 

Good luck!

The Google Weighing Problem Extension

When Google is interviewing potential employees they are given a series of seemingly outrageous questions to test their problem solving ability. How many piano tuners are in the world? How would you design an evacuation plan for San Francisco? Why are manhole covers round?

The full list of revealed questions can be found on this website: http://www.impactinterview.com/2009/10/140-google-interview-questions/

A functional knowledge of mathematics is needed to know how to approach these problems, and some are rooted in famous math historical questions. The piano tuners question is a Fermi Problem, named after Enrico Fermi, who posed many estimation problems with little information and had startlingly accurate results. (I plan to simulate a Fermi Problem in a future post). On another note, I once attended a seminar at a math conference where the guest speaker spoke entirely about the manhole problem and its extensions.

The problem I would like to look at today from Google is the following:

  • You have eight balls all of the same size. 7 of them weigh the same, and one of them weighs slightly more. How can you find the ball that is heavier by using a balance and only two weighings?

I highly encourage to spend some time attempting to solve it before reading onward – its challenging, but can be done with some thought.

Here’s how I went about solving it:

  1. Start with weighing 6 of the balls – 3 on each side of the scale.
  2. If the scale is perfectly balanced, then weigh the remaining 2 and find the one that is heavier.
  3. If the scale was not balanced, then take the 3 balls from the heavier side.
  4. Weigh 2 of them.
  5. Either the heavier one will be identified, or if they are balanced then the remaining one is heaviest

I kept thinking about this problem for another week and wanted to investigate further. What is the maximum number of balls where a heavier one could be identified in two weighings? What about three weighings?

My approach was to solve for a certain number of cases and see if a pattern would appear that would predict the number of balls versus weighings needed.

Some cases were trivial, such as with 1, 2, or 3 balls. At 4 for the first time you would need to do a second weighing. 5, 6, 7, 8, and 9 followed suit. To describe it, with 9 balls your first weighing would be between two sets of 3 balls. The outcome (the scale revealing the heavier set or balancing to reveal it was the unmeasured ones) would whittle down the possibilities to 3 balls. The second weighing would determine which one it was.

At 10 balls you finally need a third weighing, and the reason why ties into the groupings. I realized that a key component to this problem is that the process of weighing separates the balls into three groups. Thus, the number of weighings increases each time the number of balls surpasses a power of 3. Below is a table that shows select cases that demonstrate this transition.

# of Balls # of Weighings
3 1
4 2
8 2
9 2
10 3
26 3
27 3
28 4

Using this information I was able to find an equation to help illustrate this. By inputting the number of balls, b, you can find the maximum number of weighings, w, required to single out a heavier one.

Untitled picture

And using it, I could find out the number of weighings for ridiculous numbers of balls.

# of Balls # of Weighings
100 5
12345 9
999999 13
1000000 13

The Greatest Tile on 2048

For the past few weeks I have been completely addicted to the game of 2048. 2048 has a simple design and concept, but it has had amazing popularity, last week being #1 free app on Apple Appstore. The game involves sliding tiles together, starting with 2s. Each time two identical tiles collide then they join together to form a new one that is twice the value of the previous. So, two 2s slide together to form a 4. Two 4s make an 8…so on and so forth.

This type of doubling is exponential growth and can be modeled by the formula f(x) = 2x.

Exponential growth tends to explode rapidly out of control. The main examples used to describe it is a population of multiplying bunnies, or having your allowance doubled each day for a month starting at a penny (you become an instant millionaire!) Suddenly the 2s and 4s tiles are sliding together to form 8s, 16s, 32s, 64s, 128s, 256s, 512s, 1024s, and 2048s. Experienced players know that the game is not over at 2048, despite being the name of the game. I’ve gone as far as 4096 after an unhealthy and concerning amount of time trying.

Is there a limit to how high the tiles can get? The answer is yes. Given the allotted space on the 4×4 grid the tiles are eventually constricted from doubling any higher. The largest possible tile is 131,072 and is achieved by creating a long string of progressively smaller numbers and randomly receiving a 4 for the final one ( I wonder what color that one would be? ) Take a look at this link to understand just how much work would go into achieving this score : http://imgur.com/Tl7Nldi

131,072 is 217. 17 is not a “random” number, it is derived from the fact that there are 16 spaces on the board. Technically, this should mean the answer is 216, but this is not always the case because the game is programmed so that a 2 or 4 could appear in the final cell. Since 4 is 2 squared, it raises the maximum from 216 to 217.

From this we can determine what the maximum tile would be for larger game boards, say instead of a 4×4 that it was 5X5. A 5X5 board would have the largest tile be 226 or 67,108,864, again depending on the last one being a 4 and not a 2. Looking in the other direct, a 2×2 board can only have a maximum tile of 25 or 32. This depends on the last tile being randomly generated as a 4, but it tends to be a 2 so personally I have never made it past 16. This game can be played here: http://2048.mobi/4/

Since 2048 is 2 to the eleventh power, a more politically correct game would only have 10 tiles (perhaps arranged as a 2×5 rectangle). An incredible number of variations to 2048 exist with different board sizes, styles, numbers, etc. For a look at some of the many variations of 2048 and the classic game itself go to this link: http://mathmunch.org/2014/03/24/2048-2584-and-variations-on-a-theme/

A Palindromic Week

A palindrome is a group of numbers or letters that can be written the same way backwards. For example, the word radar is a palindrome, because reversed it is still radar. Every so often the date is a palindrome. One of the best examples was on November 11, 2011 (11/11/11), but the 22nd of that month would have been a palindrome too (11/22/11).

This entire week of 4/13 – 4/19 has an amazing quality: that every single day is a palindrome giving us a palindromic week. Take a look:

4-13-14 – 41314

4-14-14 – 41414

4-15-14 – 41514

4-16-14 – 41614

4-17-14 – 41714

4-18-14 – 41814

4-19-14 – 41914                                                  

                The following day, April 20th, breaks this pattern (42014). The only other palindrome days we will have this year are 4/10, 4/11, and 4/12. This decade is full of palindromic weeks – 2012, 2013, 2014, 2015, 2016, and 2018.

                Granted, these are not entirely true palindrome days, because the year is abbreviated. So far in the 21st century we have had 7 days that were entirely palindromes.

October 2, 2001 – 10022001

January 2, 2010- 01022010

January 10, 2011 – 11022011

November 2, 2011 – 11022011

February 10, 2012 – 2102012

March 10, 2013 – 3102013

April 10, 2014 – 4102014

                Palindrome days are occurring much more frequently lately, because we are in the early part of the 21st century. After the year 2040 these dates become much rarer (in fact there are only 6 entire palindrome days after 2039), because the years do not “flip” as easily. While palindromic days will still happen, having an entire week won’t be possible.

 

For more cool calendar dates check out this link:

http://www.kcra.com/national/111213-and-other-odd-dates/4728324

The Abbott and Costello Math Method

Famous comedic duo Abbott and Costello have a routine in which Costello performs clearly incorrect math, but somehow continues to arrive at the same answer. Abbott is baffled to see how Costello’s outrageous claim proves to be true time and time again. Before going any further take a look at their skits, the first showing how 25 divided by 5 is 14, and the second how 7 x 13 = 28.

Costello shows that 25 divided by 5 is 14 by addition, multiplication, and by division. However, he performs each of these operations incorrectly, because of how he handles the ones and tens places. When adding the five 14s together, he counts each number individually: 1 + 4 + 1 + 4 + ….. instead of using their place values ( 10 + 4 + 10 + 4…). When multiplying Costello similarly does 14 x 5 as 4 x 5 added with 1 x 5. The correct way is 4 x 5 added to 10 x 5. The same holds for division, where his method disregards place values.

What is astounding about this incorrectness is that he always arrives back at the same conclusion that 5 x 14 = 25, by those three operations. However, he makes the same mistake in each operation, which is the reason why it always works out the same way. In the second skit, Costello uses the same flawed methodology to show that 7 x 13 = 28. This led me to wonder if these select examples were special and unique, if other numbers would have a similar outcome, or if all numbers would behave this way.

After some experimenting with 16 x 6 (which equals 42 by the Costello Method) among other number combinations, the results continued to hold true. The numbers selected for the skit are more impressive than some that could be chosen. Evidence shows that if you commit to the Costello Method for addition, multiplication, and division then you can usually manipulate your way to the same answer each time. Two exceptions would be if there is a 0 in the ones place, or if you are multiplying by 1.

Example: Consider 3 x 20. By ignoring place value this adds as 2 + 0 + 2 + 0 + 2 + 0 = 6, which is so wrong that it is just goofy. It would take clever misdirection to even try to pull off that 6 divided by 3 is 20.

Example: 1 x 14 by the Costello Method = 5. The addition step for 1 x 14 is adding 14 to nothing, and I would love to see Costello try to explain that one.

There are certainly more exceptions that could be considered, such as if both numbers were each one digit, if it was being multiplied by zero, etc.

So – why does this happen?

Consider the case of 29 x 3.

29 x 3 would be 2 x 3 + 9 x 3 = 33. By adding this it would be 2 + 2 + 2 + 9 + 9 + 9 = 33. If I rewrite the addition step in this way 3(2) + 3(9) then it becomes clear how the mistake in the multiplication example leads you astray in both cases. Again, you are multiplying 3 to both digits, regardless of their place value.

As a teacher, these videos are among my favorites for the shock value and then the discussion about where Abbott and Costello made their mistakes.

Finding Yourself in Pi

“Pi, the ratio of the circumference of a circle to its diameter, and this is just the beginning; it keeps on going, forever, without ever repeating. Which means that contained within this string of decimals, is every single other number. Your birthdate, combination to your locker, your social security number, it’s all in there, somewhere. And if you convert these decimals into letters, you would have every word that ever existed in every possible combination; the first syllable you spoke as a baby, the name of your latest crush, your entire life story from beginning to end, everything we ever say or do; all of the world’s infinite possibilities rest within this one simple circle. Now what you do with that information; what it’s good for, well that would be up to you” – Person of Interest

Pi is easily one of the most popular numbers in mathematics. Most numbers used in everyday life can be categorized as rational numbers, which means they can be written as a simple fraction or decimal. Pi is an irrational number, a number that is non-repeating and non-terminating. Pi is often given the most praise for this property, but it holds true for any irrational number and there are infinite amounts of irrational numbers. In fact, its been proven that between every two rational numbers is an irrational one.

Irrational numbers have random digits that stretch on towards infinity. This fact is a cause for wonder. While all of pi’s digits are not known, mathematicians have used an impressive amount of computing power to determine trillions of digits. Within the infinite digits any other number can be found. For example, if you look for the number 37 it is first found at the 46th digit of pi. This leads to more startling ideas, such as that your birthday could be found inside pi at some point. My birthday happens to be found at the 128,993,362nd digit of pi. This is not the only time it appears as well, it is just the first time. As the quote suggests, your phone number, Social Security number, locker combination, bank account number, license plate number, etc can all be found in pi between 3.14 and infinity.

If a code was designed to translate the digits into letters, then it follows that any combination of letters can be found inside of pi as well. The most basic method of coding would be to assign A – 01, B – 02, C – 03, and so on, but there is no reason why it has to be done in this order (you could assign A – 19, B – 04, C – 23…). Now it is possible to look for combinations of letters inside of pi, such as your initials, your name, your street address, your first words, your to do list, and this very sentence.

One of my favorite videos elaborating on this concept is Vihart’s Are Shakespeare’s Plays Encoded within Pi? (https://www.youtube.com/watch?v=uXoh6vi6J5U). The answer was inconclusive, because pi may not be a normal number, but it is still entertaining to consider the possibility (and yes, the Persons of Interest quote may be a little too optimistic about what can be found inside of pi). This video also shows that an infinite many different versions of the letters could lead to surprising new outcomes – even a version where Romeo and Juliet that live happily ever after.

By now you may be wondering about where your own name appears inside of pi. There are a few websites where you can search the digits to find it or anything that you would like. The Pi Search Page is my personal favorite ( http://www.angio.net/pi/piquery ), because it searches through the first 200 million digits, and reveals some of the mathematics at work. This website boasts that 86% of birthdays can be found within these numbers, and shows the probabilities of finding certain combinations based on the length. As someone with a 12 digit last name, it is exceeding unlikely to find it in the first 200 million. However, anything under 7 digits is almost certainly within the first 100 million digits and is searchable. Happy searching!

On The Barenaked Ladies Spending Habits

 

Lyrical Time Wastr - If I had $1000000

Lyrical Time Wastr – If I had $1000000 (Photo credit: jah~)

A look at the song If I Had a Million Dollars by the Barenaked Ladies, in terms of just what it would actually cost them for all of these things.

If I had a million dollars

If I had a million dollars

Well, I’d buy you a house

I would buy you a house

 

According to one article about a typical millionaire the average price of their home is about $320,000. By typical millionaire the article excludes celebrities, people that win the lottery, etc, and instead looks at self made millionaires. (http://www.cbn.com/finance/MMWmillionaire.aspx)

And if I had a million dollars

If I had a million dollars

I’d buy you furniture for your house

Maybe a nice chesterfield or an ottoman

Some resources say a good estimate of the cost to completely furnish a home is 25% of the home’s value. This would be $80,000. That’s definitely a high estimate, but with a million dollars you would spend extra to really make the place look nice. Also, this would obviously be included (http://www.grandinroad.com/chesterfield-tufted-ottoman/453033?redirect=y)

And if I had a million dollars

If I had a million dollars

Well, I’d buy you a K-Car

A nice reliant automobile

And if I had a million dollars,

I’d buy your love

Chrysler made a limousine style K-car, which is their most expensive model for $22,000.

If I had a million dollars

I’d build a tree-fort in our yard

If I had a million dollars you could help

It wouldn’t be that hard

$200

If I had a million dollars

Maybe we could put a little tiny fridge

In there somewhere

We could just go up there and hang out

$200

Like open the fridge and stuff

And there’d all be foods laid out for us

Like little pre-wrapped sausages and things

$10

They have pre-wrapped sausages

But they don’t have pre-wrapped bacon

Well, can you blame them?

Yeah

Pre Wrapped Bacon is $0, because it sadly does not exist.

If I had a million dollars

If I had a million dollars

Well, I’d buy you a fur a coat

But not a real fur coat, that’s cruel

$300

http://www.faux.uk.com/view/Faux-Fur-Coats/FF052/CAVALESE-LONG-HOODED-CHINCHILLA-COAT/

And if I had a million dollars

If I had a million dollars

Well, I’d buy you an exotic pet

Yep, like a llama or an emu

Llama: $55,000

This site lists out the breakdown of cost for the animal itself, food, shelter, and other purchases for startup. Their analysis is throwing down $40,000 just for two breeding llama. For a single llama and startup it would be more like $15,000, but we’ll use the $55,000 as our figure and consider the millionaire as having a serious interest in becoming a llama farmer. http://www.chesapeakealpacas.com/pages/alpaca_startup_costs.html

And if I had a million dollars

If I had a million dollars

Well, I’d buy you John Merrick’s remains

All them crazy elephant bones

And if I had a million dollars

I’d buy your love

We’re just going to skip this one. For reasons.

If I had a million dollars

We wouldn’t have to walk to the store

If I had a million dollars

We’d take a Limousine ’cause it costs more

We already purchased a limousine so this is taken care of.

If I had a million dollars

We wouldn’t have to eat Kraft dinner

But we would eat Kraft dinner

Of course we would, we’d just eat more

And buy really expensive ketchups with it

That’s right, all the fanciest Dijon ketchups

It’s $2.25 for one Kraft dinner. We’re going to go with three, because they would eat more.

$6.75

Fancy ketchup: $15

http://compare.ebay.com/like/271226097354?var=lv<yp=AllFixedPriceItemTypes&var=sbar

If I had a million dollars

If I had a million dollars

Well, I’d buy you a green dress

But not a real green dress, that’s cruel

$200

And if I had a million dollars If I had a million dollars

Well, I’d buy you some art

A Picasso or a Garfunkel

Art Garfunkel is not for sale. Picasso’s works sell anywhere between 150,000 for a drawing to 5 million euros for the most expensive painting. 150,000 euros is about $200,000 when converted.

If I had a million dollars

If I had a million dollars

Well, I’d buy you a monkey

Haven’t you always wanted a monkey?

If I had a million dollars I’d buy your love

A baby capuchin monkey would cost about $7,000. Adding in the expensives for food, medicine, and a habitat would be about $9,000. http://www.slate.com/articles/news_and_politics/recycled/2009/02/how_much_for_that_monkey.html

If I had a million dollars

If I had a million dollars

If I had a million dollars

If I had a million dollars

If I had a million dollars

I’d be rich

The grand total is…..$ 686,931.75. With this we have purchased a house, all of the furniture for it, a limo, a tree fort, a fridge, sausages, a fake fur coat, a llama, a fancy kraft dinner, a green dress, a Picasso, and a baby capuchin monkey. We have $313,068.25 left to spend (although, some of this would be needed to buy John Merrick’s remains, the one thing not taken into account).

Except we forgot love! How much does it cost to buy love? Some estimates run a yearly cost of about $2,000 for dating. The cost for the average wedding is $25,000.

Taking this last bit into account…

Total Expenses: $713,931.75

Money Left Over: $286,068.25

Ta Da.