Answers to problems 19-21, including recursive solution to 21