I got this question:
In the famous Atlantis city BlackWhite the houses have five levels and each level is painted either by black or by white paint, but two adjacent floors can’t be both black or they would anger the gods.
(It is allowed to have adjacent white stories.)
a) How many different ways are there to paint a house in BlackWhite?
b) Try and find the different permutations for a certain number of levels per house.
Do you spot a pattern?
c) Explain why this pattern exists.
a) and b) are quite simple -- a) requires a simple tree diagram and b) requires a little bit of thinking:
1) B W 2
| / \
| / \
| / \
| / \
| | \
| | \
| | \
| | |
2) W B W 3
/ \ | |
/ \ | / \
| | | / \
| | | / \
3) B W W B W 5
| / \ / \ | / \
4) W B W B W W B W 8
/ \ | / \ | / \ / \ | / \
5) B W W B W W B W B W W B W 13
You can trace the lines for a), and find the pattern for b): 2, 3, 5, 8, 13. It's the Fibonacci sequence! You can generalise how many possibilities there are per story if s is the number of stories with the Binet formula: $$\frac {(\phi)^{s+2} - (\frac {-1}{\phi})^{s+2}}{\sqrt 5}$$ But I still can't see why this house problem, along with other problems I've seen like the rabbit problem, or Dudeney's cows all link to the Fibonacci sequence!