[25] Jessica the jackrabbit wants to climb down a wall. The wall consists of 2026 horizontal layers stacked vertically. The nn -th layer from the top is partitioned into 2n−12^n - 1 identical rectangular bricks arranged side by side. Jessica begins in the topmost layer, which contains a single brick. A move consists of Jessica going down one layer to a brick that shares a side with the brick she is currently on. Determine, with proof, the total number of distinct sequences of moves Jessica can take to reach the 2026th layer. (combinatorics, pathfinding, layers, sequences)

Answer: 220252^{2025}

Step-by-step solution

Step 1: Analyze the structure of the wall layers

The problem states that the nn -th layer from the top is partitioned into 2n−12^n - 1 identical rectangular bricks. Let LnL_n denote the number of bricks in the nn -th layer. So, L1=21−1=1L_1 = 2^1 - 1 = 1 brick, L2=22−1=3L_2 = 2^2 - 1 = 3 bricks, L3=23−1=7L_3 = 2^3 - 1 = 7 bricks, and so on. Jessica starts in the topmost layer, which is layer 1.

Step 2: Determine the number of possible moves from one layer to the next

A move consists of Jessica going down one layer to a brick that shares a side with the brick she is currently on. Since the bricks are arranged side by side, a brick in layer kk can connect to either one or two bricks in layer k+1k+1. Specifically, if a brick in layer kk is at an edge, it connects to one brick in layer k+1k+1. If it's in the middle, it connects to two bricks in layer k+1k+1. However, the problem implies that the bricks in layer k+1k+1 are directly below the bricks in layer kk, and the total width of the wall increases. The key is that each brick in layer kk can connect to exactly two bricks in layer k+1k+1, except for the outermost bricks in layer k+1k+1. But since the number of bricks in layer k+1k+1 is 2k+1−12^{k+1}-1, which is always odd, there is always a central brick in layer k+1k+1 that aligns with the center of a brick in layer kk. The problem implies that any brick in layer kk can connect to two bricks in layer k+1k+1 if it's not at the edge of the layer, and one if it is. However, the structure of 2n−12^n-1 bricks suggests a binary tree-like expansion. Each brick in layer nn can be thought of as having two 'children' in layer n+1n+1. This means from any brick in layer nn, there are 2 possible bricks in layer n+1n+1 that it can move to.

Step 3: Calculate the number of paths for a few initial layers

Let PnP_n be the number of distinct sequences of moves to reach layer nn. Jessica starts in layer 1, which has 1 brick. So, P1=1P_1 = 1. To reach layer 2, from the single brick in layer 1, there are 2 possible bricks in layer 2 she can move to. So, P2=2P_2 = 2. To reach layer 3, from each of the 2 bricks in layer 2, there are 2 possible bricks in layer 3 she can move to. So, P3=2×2=4P_3 = 2 \times 2 = 4. This pattern suggests that for each step down, the number of paths doubles.

Step 4: Formulate a general rule for the number of paths

From the observation in the previous step, the number of distinct sequences of moves to reach layer nn is 2n−12^{n-1}. This is because for each of the n−1n-1 moves (from layer 1 to layer 2, from layer 2 to layer 3, ..., from layer n−1n-1 to layer nn), there are 2 choices. Therefore, the total number of sequences is 2×2×⋯×22 \times 2 \times \dots \times 2 (n−1n-1 times).

Step 5: Calculate the total number of sequences to reach the 2026th layer

We need to find the total number of distinct sequences of moves Jessica can take to reach the 2026th layer. Using the formula derived, we substitute n=2026n = 2026 into Pn=2n−1P_n = 2^{n-1}.

Solve your own maths question free →