Computing 2n

Define the function exp2: nat -> nat such that (exp2 n) is the number 2n.

Solution

Look at this file