Solution to Problem 31