Math, Josephus problem.