Problem 50 with notes from math irc.