Sunday, 7 October 2012

Do not try proving stuff late at night


I have to be honest and say that I find blogging a strange way to earn marks for a mathematical – logic course. It is, however, an interesting twist and I might as well have fun while at it.

I always liked proof oriented courses and CSC236 is no exception. I find proving things fun (yes, people do say that I have a weird sense of fun), since by proving something you can persuade anyone that something that makes sense to you is actually true.
However, I have also had some "bad" moments in this course so far, such as the "embarrassing" story I am about to write down (I am laughing at myself just thinking about it, before I even start typing it).

Last weekend i was determined to finish assignment 1. I went through questions 1 and 2 quite easily and then i started reading question 3, which seemed like an interesting problem. In that question, we were asked to find the formula that works and then continue with the proof. When reading the question, I realized that the formula I was looking for reminded me of something I recently learned in statistics (I had a quiz on it the previous day). I thought, however, that it would be fun to play around with it and see how it works.
I must admit that I stayed up till 3 am that night, playing around with objects in my bedroom such as pencils and rubbers (the way that our statistics prof played with "fuzzy balls"), putting them into groups and taking combinations and observing the number of 3 – subsets each time.

After wasting so many pages of my poor notebook (I feel bad for the trees that were sacrificed for this), I came up with something like:

if p <= 2 : the number of 3-subsets in a set of n elements is p + 3p(n – 3)
if p > 2 and k = 0, that number is p + 3p(n – 3) + 3^k and
if p > 2 and k != 0, it is p + 3p(n – 3) + (3^p)k.

Where p and k are numbers such that n = 3 * p + k.

I was still not done, there were more cases I needed to look into.

I got too carried away trying to derive the formula myself that I did not realize that it is exactly the "(n + 3) choose 3" formula. I was determined to figure it out, even though it was 3 am, I had a bad headache and was getting quite frustrated.

You can imagine how annoyed I was when while lying in bed trying to sleep, I suddenly realized that the formula I needed is something known that I could use without deriving.
It was a fun night and I am hoping that there are more like that to come. If anything, they make cool blog stories!



No comments:

Post a Comment