Working through D&D.Sci, problem 2 (solution) — LessWrong