Before Eid, the sweet shop near your house packs ten identical laddus into a box, and your aunt wants to share them among her four children. The children are not the same person, so it matters who gets how many: Rahim with three laddus and Salma with none is a different day from Salma with three and Rahim with none. In how many ways can the laddus be shared? A week later you are on the footbridge at Farmgate, ten steps up, and a small girl ahead of you climbs one step or two at a time, whichever she feels like. In how many different ways can she reach the top?
Both are "in how many ways" questions, and neither yields to the slot method of the counting lesson. The laddus are all alike, so a slot for each laddu would count the same sharing again and again. The girl's climb has no fixed number of moves, so there is nothing to put in slots. They need two new ideas, which are the two halves of this chapter. The laddus need a picture, a row of stars and bars, that turns the sharing into an ordinary choice. The footbridge needs a habit: ask what the last move was, and the big problem shrinks into smaller copies of itself. That shrinking is a recurrence, and once you can write one you can solve it, run it as a program, and use it to generate the answers themselves. (The laddus can be shared in 286 ways and the girl can climb in 89. You will see why in Parts 1 and 2.)