In how many ways can you put lions into n cages so that in each cage there's no more than 1 lion and every two adjacent cages are not occupied (lions cant be located next to each other). We have an unlimited number of lions and there's at least one lion (so at least one cage is occupied).
Thanks in advance for any help!
Edit: I think I could find the generating function if I had the reccurent sequence
Let $f(n)$ be the number of the ways you want.
Also, let $g(n)$ be the number of the ways with a lion in the $n$-th cage, and let $h(n)$ be the number of the ways without any lion in the $n$-th case.
So, we have $$f(n)=g(n)+h(n).$$
Now you'll easily get $$g(n+1)=h(n)$$ $$h(n+1)=g(n)+h(n).$$
Hence, you'll get $$h(n+1)=h(n)+h(n-1).$$
This is a well-known sequence...