And, just for fun, here's my answer for problem 1 there: http://www.effectedcause.com/blog/?p=228
Of course, you could recognize that it's a geometric series... and (3^15 - 1) / 2 would give you the answer, but what fun is it if you don't even get to use a simple for loop when you have a perfectly good opportunity to do so. :)