Skip to content

Rory Parle

Tagged “maths”

12 posts

Differentiating the Sexes

My higher level maths class for Leaving Certificate (the state exam at the end of secondary school in Ireland) was entirely populated with boys. I think there were one or two girls in the class at the beginning of the year, but they found the subject too time-consuming relative to the six or seven others that students study at that age; they dropped maths to ordinary level pretty early in the year.

My Leaving Cert. physics class was similarly populated.

In my first year of theoretical physics in university, one of my thirteen peers was a lady. In second year, she was no longer around. I studied almost entirely under male lecturers, and I graduated surrounded by male classmates.

My life is one big anecdote in support of the proposition that men are better at maths and hard sciences than women are. It’s particularly important, then, for me to always be aware of that wonderful assertion that “the plural of anecdote is not data”.

Continue reading “Differentiating the Sexes”


Lose the 10¢ — it’s worthless

Inspired by this analysis of coin efficiency at the Freakonomics blog, I’ve written a short Python script to calculate the efficiency of the Euro coin set. Like in the blog post, efficiency here means the lowest average number of coins needed to sum to any sub-Euro total (where all totals are assumed to occur equally frequently). For example it requires five coins to sum to 48¢: two 20¢, a 5¢, a 2¢, and a 1¢.

It turns out the average number of coins you’ll need is about 3.43, given the current set of six coins (I exclude the Euro and two Euro coins, since they’re no help in reaching sub-Euro totals). The maximum number of coins you ever need to reach any total is six. Note that we get this efficiency, much higher than the US’s 4.70, by cheating. We have six coins to play with, where they have only four.

Continue reading “Lose the 10¢ — it’s worthless”


Four Glass Puzzle

I learned this puzzle from a friend in work. He posed it one morning before everyone had had their coffee and ended up costing a small handful of engineers a whole morning of productivity as we each solved it. I’ve been meaning to post about it here for a while. Here’s the formulation as best I can describe it:

You have in front of you one of those tables you get in Asian restaurants with the rotating centre—what one of our product managers described as a lazy susan, though I’ve never heard that phrase from anyone else. Picture the restaurant from the beginning of Indiana Jones and the Temple of Doom if you really want to set the scene.

On the table are four glasses, each of which is either standing upright or turned upside down. They’re evenly spaced around the table, in a square. You sit at the table blindfolded. Your aim is to turn the glasses such that they are either all upright or all upside down, subject to the following rules.

Continue reading “Four Glass Puzzle”


Maths Fun

If you watched the video of Randall Munroe at Google you might have heard him mention a site called Project Euler. It’s a cool collection of short but interesting mathematical problems that are intended to be solved with a computer. That said, there’s nothing stopping you from using good old practical mathematics.

The most solved puzzle on the site is this one:

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.

Now, this didn’t look to me like a computer was required to solve it, so I nibbled the end of my pencil for a second and came up with the following solution:

Continue reading “Maths Fun”


Rice Rice Baby

Did you ever hear the old Chinese story about the rice and the chessboard? The specifics are hazy, and I’m sure there are lots of variations anyway, but I remember the important details. Someone having performed some important task for the king asked that he be paid in rice. The king was to put one grain of rice on the first square of a chessboard, two on the next, four on the next and so on to fill the board with each square containing twice as much rice as the previous one. How much rice do you think this adds up to?

The answer is easy to calculate but difficult to imagine. There are 2N – 1 grains on the Nth square. 20 = 1 on the first, 21 = 2 on the second, 22 = 4 on the third, and so on. The last square, number 64, has , 263 = 9×1018 grains on it. That’s a nine followed by 18 zeros or nine billion billion. Let’s try to cut that down to something we can imagine.

Continue reading “Rice Rice Baby”


Funny. Welcome. Crash

Just lost a long-ish post to that stupid Firefox flash crash bug. Here’s the gist of it: Funny. Welcome.

Okay, it may not be fair to be that brief. That first link is a video of some brilliant maths humour. Check it out if you’re in the 0.001% of people who might think it’s funny. The second link is to a new blog by a friend of mine. Joe was one of my (very few) classmates back in the old theoretical physics days.


Your Ma’s Theorem

Fermat’s last theorem states that the equation xn + yn = zn has no solutions in integers x, y, z, and n where n > 2. Try this in a calculator: 178212 + 184112 = 192212.

That equation was generated by a program written by David X Cohen, at the time a writer for The Simpsons, subsequently executive producer of Futurama. He put it in the background of the three-dimensional realm in the episode Homer3. It’s not a counter-example to the theorem—which at the time hadn’t been completely proved, but had been proved up to a certain exponent (much higher than 12)—but it will look like one on any calculator that truncates numbers after ten or fewer digits.

Found in a mathematical interview with Cohen.



Earthquakes and Logarithmic Scales

I’m hoping not to hear a lot more news about today’s earthquake in Indonesia, on the grounds that no news is good news. Quite frankly, the less newsworthy this turns out to be the better. About half an hour after the event I hit on Sky News’ live coverage. They were talking about a magnitude 8.2 quake, as reported by the US Geological Survey. A few minutes later they mentioned the Associated Press report saying it was an 8.5. I think that was attributed to a Japanese meteorological organisation. A glance at Google News tells me it’s up to 8.7 now. Thankfully there’s no news (and that’s good news, remember) of a tsunami, and the death toll seems reasonably low (though it’s about 300 more than any of us wants it to be).

Continue reading “Earthquakes and Logarithmic Scales”


Busy Doing Nothing

For some reason my otherwise logical mind is unable to find fault with the fact that, despite spending several hours online today actively surfing, reading blogs and responding to forum questions, I continue to claim that I haven’t got time to write for SoylentRed.net. Out of a 24 hour day (give or take) I can only really see myself spending about three hours studying. Four at a push when I’m less than a week from exams. Yet I find the excuse "I have to study" impinging on every activity that I consider. Blogging has suffered. My birthday celebrations, such as they were, have been cancelled. Time with friends has reduced, possibly because of their false impression of my amount of free time, possibly because I’m not the only one experiencing Farnham.

Continue reading “Busy Doing Nothing”