Homework 1 -- Solutions

The assignment:

The solutions: