Showing posts with label investigation. Show all posts
Showing posts with label investigation. Show all posts

Monday, 26 December 2011

On the first day of christmas...

You all know the song... 

On the first day of Christmas my true love gasve to me a artridge in a pear tree..

And so on. For mathematicians everywhere, there are three questions about this song that are just screaming to be asked, and one of those questions can easily be answered.

The second one is a little more difficult, and the third especially so in this day and age.

The first question that tends to get asked is "how many presents does this mean my true love gives me?"

You do need to be careful here, it is not necessarily as easy as people first think (much of maths isn't!). The most common response is to do 1+2+3+ ... +12 = 78, but a little further inspection suggests this may not be the full answer.

Day 1 - A partridge in a pear tree. 1 present

How many presents on day 2? It's not 2...

Day 2 - 2 Turtle Doves and a partridge in a pear tree, That's three presents, so after 2 days you have already been given 4 presents.

What about day three? How many presents on day 3? How many does that make altogether? Now, day 4, day 5, and so on all the way to day 12.

How many presents have you got altogether?

How many of each present (I hope you like gold rings!)

Question 2 is what about the 'n' days of christmas. There is a formula for the total number of presents you get over n (any number of)  days, but it is not a trivial solution.

Question 3 is less maths, and more economics... For the twelve days of christmas, how much would it cost!! Good luck ith that; whilst gold rings may be in the Argos catalogue, or on Amazon, and you may be able to source a pear tree at Whitehall Garden Centre, you may struggle a little more with the French Hens, Turtle Doves, and as for Lords a Leaping, I've no idea where to even start!

Good luck!

Wednesday, 2 February 2011

QR Codes, what are they?


Do you know what a QR code is?

It's one of those 2-D barcodes you see cropping up all over the place. The QR stands for Quick Response. You may have seen this one around school...

A QR code can be a number of things.
  • It can be a link to a website (like the one on the right).
  • It could simply be a piece of text with some information on.
  • It can write a SMS (text) on your phone, with the number to send it to already there
  • It can be a mobile phone contact, ready to save.
  • An iTunes link, or an Android Marketplace link.
Go and have a look at http://www.qrstuff.com/ for easy ways to create your own.

There are three main ways to read QR codes like the one above...
  1. On an iPhone. Go to the App store, and search for a QR reader.
  2. On an Android. Again, go to the App market, and search for a QR reader.
  3. Using a PC and webcam. You will need software to read the codes. I recommend QuickMark (which is also available for iPhone / Android).

Look out; here comes the maths bit.

A QR code is a 2-dimensional array. Each pixel is either black or white. QR codes like the one above are 32 pixels by 32 pixels. How many different QR codes do you think there can be?

Mathematicians would try to make it simpler to work out (at first). What about a 4 x 4 QR code? How many do you think there would be. If you want to practice colouring some there is a blank grid here...

Be careful - even with the smaller grid there are a huge number of possible codes - think systematically.