In the land of Mathematica, a remote tribe made totem poles out of square-heads and big-heads (which were twice as tall as square heads). The square-heads were made of pine, whereas the big-heads were made of ash or birch. The heads were stacked upright to form these totem poles.
Find the number of different totem poles of height 11 (that is, equivalent to 11 square-heads) that were possible.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Relevant wiki: Recognizing Recursion
We will create a recursion for the number of totem poles there are of height n . Let f n denote the number of totem poles possible of height n . Firstly, f 1 = 1 and f 2 = 3 . We also note that f n = f n − 1 + 2 f n − 2 for n ≥ 3 since totem poles of height n are either a totem pole of height n − 1 topped with a square-head or a totem pole of height n − 2 topped with an ash or birch big-head. Thus, it follows:
f 3 f 4 f 5 f 6 f 7 f 8 f 9 f 1 0 f 1 1 = 3 + 2 × 1 = 5 = 5 + 2 × 3 = 1 1 = 1 1 + 2 × 5 = 2 1 = 2 1 + 2 × 1 1 = 4 3 = 4 3 + 2 × 2 1 = 8 5 = 8 5 + 2 × 4 3 = 1 7 1 = 1 7 1 + 2 × 8 5 = 3 4 1 = 3 4 1 + 2 × 1 7 1 = 6 8 3 = 6 8 3 + 2 × 3 4 1 = 1 3 6 5
Thus, there are 1 3 6 5 totem poles of height 11.
Bonus: Prove that the general formula for the totem poles of height n is
k = 0 ∑ n ( − 1 ) k 2 n − k = 3 2 n + 1 + ( − 1 ) n