Woooowwww, must say that they're 2 very interesting problems. :!) :!)
Spent like 2 hours working on the #5, the
Tilings one, =.=" and finally, I got it. Yyyyeaaaahhh.
Well, it's definitely not the most elegant way to go about solving this problem, but well, it's one way to go.
Here's my approach.
I attach 2 pictures. The first one show the
only two styles to make up a 2 x 2 square: Style 1 on the left, and style 2 to the right.
And picture 2 shows all possible cases to makeup a 2 x k rectangle, divided into k cases.
Say, we define W
k to be all the possible ways to make a rectangular strip of 2 x k. We'll now find the relation between W
k, and those that goes before it, i.e W
k - 1, W
k - 2, ..., and W
1.
We'll divide it into k separate cases, base on the
last style 2 square seen on the whole block of tiles.
Case 1:
No style 2 square can be seen. Obviously, there's only
one way to make up the 2 x k rectangle, with no style 2 square.
Case 2: The
last style 2 square lies at the end of the whole block. Since the last 2 tiles are fixed, the total possible ways to make such arrangement would be all the possible ways to build up the (k - 2) tiles that stand before it. So there are W
k - 2 ways to make such arrangement.
Case 3: The
last style 2 square locates at the (k - 2)th, and (k - 1)th tiles of the whole block. The last 3 tiles are fixed, so there are W
k - 3 ways to make such arrangement.
...
Case k - 1: Only
one style 2 square, it locates at the second, and third tiles. There is W
1 = 1 way to make such arrangement.
Case k: Only
one style 2 square, it locates at start of the whole block. There is 1 way to make such arrangement. To make it more convenient, we may
define W0 = 1. So there are W
0 to make such arrangement.
Summing all the cases above, in general, we have the formula:
W_k = 1 + \sum_{i = 0} ^ {k - 2} W_i , \ \ \ \ k \geq 2
Hopefully, you can go from here, right? :)
Just wonder if it's clear enough? It's well past mid-night over here, and I am in a little bit rush. I need to get some sleep now, feeling somewhat
spinned arround, and arround

.
Btw, the last 2 parts are pretty much the same.

.