Consider selecting integers from such that no two are successive. Let these be . Then , . Setting , , we have that form a partition of . Thus the number of solutions are .
We now give a generating function approach. It is a 2-parameter problem. Let denote the number of solutions. Set . Divide the solutions into and . If , then and the rest of the sequence is from satisfying original condition. So there are many solutions with . Now if , then ’s form a solution for . Thus such solutions are . So
Easy to derive solution from this recursion too. But what about generating functions ?
Set . Trivially and if and even if . Also set if or . Thus,
This gives that .
Let be the number of horizontally convex (HC) polyominoes of area . This consists of layers of squares such that successive layers overlap with squares in total. Let be the number of -HC polyominoes.
Let be number of HC polyominoes with cells at the bottom. Then , for and . Suppose there are cells in the second layer, there are -ways in which these cells can be placed on top of the first layer such that they overlap. This reasoning gives rise to the following recursion.
Define Then . Set Thus we derive that
So
Differentiating w.r.t. and taking gives,
Find and substitute in and set . Then we derive that
Thus . Matching up coefficients of for on both sides, we have