Solutions to 116-118.

I included 118 because it was basically two problems, and breaking it up
into two days would have meant one page with 11 lines and another with 39
- so I'll probably do this in a funny way; the first updated solutions
  will be 116+118, and the second 117 by itself.