Here is another puzzle to act as your mind's screen saver (i.e. keep it busy when it is idle..

)
You are given a sequence of n symbols and are told that this sequence was generated by the in-order traversal of a binary tree. How many binary trees can you generate from this sequence, whose in-order traversal gives you back the sequence?
As always, I don't have a closed-form solution for it yet (and am not too keen on searching for a solution over the web). So, I'll applaud promising directions giving even first-order solutions like a recurrence relation, etc.