c01 · E2

Derive: Rules That Turn Inputs Into Outputs

c01.E2.1E2 · expression

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.

c01.E2.2E2 · expression

A notebook records four tasks: 60 seconds written as 1 minute, 120 as 2, 180 as 3, and 240 as 4. Two candidate rules reproduce all four rows. Round down divides by sixty and keeps the whole part. Round to nearest divides by sixty and takes the closer whole number, with an exact half rounding up. Both score 0 on all four rows.

(a) Explain why no test whose input is one of the four rows can separate the two rules. (b) Give the smallest whole number of seconds greater than 60 on which the two rules return different answers, and give both answers.

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

c01.E2.3E2 · expression

The delegating program that totals readings expands into a nest of additions, as in section 1.2. Show that immediately before the -th addition runs, exactly additions wait outside it, so the deepest point of the process has waiting additions. Use that count to compare the storage the delegating process needs with the storage the looping process needs. State the count for .

This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.

Other tiers

E1 Practise · E3 Open

Every hint opened, solution viewed and answer checked is recorded in this browser only. See Progress to export or delete it.