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