For a natural number n, the n-cube is a figure created by the following recipe. The 0-cube is simply a point. For n>0, we construct an n-cube by taking two disjoint copies of an (n-1)-cube and then joining corresponding points in the two cubes by line segments. Thus, a 1-cube is simply a line segment and a 2-cube is a quadrilateral. The figure shows the construction of a 4-cube from two copies of a 3-cube. Note that an n-cube has twice as many points as an (n-1)-cube; therefore, an n-cube has $2^n$ points. The questions is, how many line segments does an n-cube have? Let $a_n$ denote the number of line segments in an n-cube. We have $a_0 = 0, a_1 = 1, a_2 = 4, a_3 = 12, \text{ and } a_4 = 32$.
a. Calculate $a_5$
b. Find a formula for $a_n$ in terms of $a_n-_1$
c. Find a formula for $a_n$ just in terms of n (and not in terms of $a_n-_1$) and use part (b) to prove that your formula is correct.
I am trying to self teach myself recurrence relations but I am stuck on this question. A clear explanation would be appreciated.
Regard the figure showing the construction of a 4-cube from two copies of the 3-cube. How do line segments arise in the 4-cube? There are three types:
Of course, a similar description holds for any $(n+1)$-cube constructed from a pair of $n$-cubes.
You should be able to use this description (and the known formula for the number of points in the $n$-cube) to write down a recurrence relation for $a_n$.