Section 1.2 states the tower recurrence with and lists the first values 0, 1, 3, 7, 15, 31. Section 1.3 builds one summation template whose term and next-value slots are arguments.
Derive a closed form for that uses no recursion. Then show that the summation template of section 1.3 returns the same number when its term slot holds , its next slot holds , and it runs from to . Give and .
This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.
Worked solution
The step that removes the recursion is to add one to both sides: Write . The line above says , so each step doubles the previous value. Unrolling times gives Subtract one: . Check the listed values: , , , and , which is the value E1.3 computes.
Now the sum. The template of section 1.3 adds a term between two whole numbers, with the term and the next value supplied as procedures. Set the term slot to and the next slot to . Running from 0 to produces To evaluate it, multiply by and telescope: Every interior power cancels against the double of the power before it; only and survive. So the sum equals . At the template adds , and the recurrence gives . The same template that summed the integers from 1 to 10 performs the tower count, because only its two slots changed.